Author Topic: Updated 9/16/16 Material Coding for Beginners! Glow, metal, transparent, more!  (Read 144534 times)

Offline .General..

  • Experienced Traveler
  • **
  • Posts: 136
  • Country: 00
  • Floof-O-Meter: 23
  • Bowties are cool.
    • View Profile
    • Webbysite >83
Re: ? Material Codes for You! (Preset Mane Fix / Scrolling / Ghost Added! ?
« Reply #30 on: October 02, 2012, 07:27:58 pm »
I'm having the same problem as others...The body will show up with animation but the head just shows up base white 3: Help would be appreciated X3

Signature drawing by Cakeindafridge.
Avatar drawing by Zady.
Thanks for the drawings guys. <3
Whovian forever. <3

Offline Ruby1234

  • Mean Tutorial Queen
  • Elder Grey Pelt
  • ****
  • Posts: 2,794
  • Country: us
  • Floof-O-Meter: 297
  • aka Phloxenfree.
    • View Profile
Re: ? Material Codes for You! (Preset Mane Fix / Scrolling / Ghost Added! ?
« Reply #31 on: October 02, 2012, 11:20:17 pm »
Can you show a screenie and possibly PM me the material code so I can haz a lookie? c:

Offline greystar

  • Finest Floof
  • ***
  • Posts: 634
  • Country: 00
  • Floof-O-Meter: 24
  • hhhahahahahhhh...
    • Greystar2000
    • Quinnbee-s
    • View Profile
Re: ? Material Codes for You! (Preset Mane Fix / Scrolling / Ghost Added! ?
« Reply #32 on: October 02, 2012, 11:43:39 pm »
the head and tail wont appear! D: ~X3X~ Halp!  :'(
Happy Pride Month!

Offline Ruby1234

  • Mean Tutorial Queen
  • Elder Grey Pelt
  • ****
  • Posts: 2,794
  • Country: us
  • Floof-O-Meter: 297
  • aka Phloxenfree.
    • View Profile
Re: ? Material Codes for You! (Preset Mane Fix / Scrolling / Ghost Added! ?
« Reply #33 on: October 03, 2012, 12:33:50 am »
PM me your material code. c:

Offline Ruby1234

  • Mean Tutorial Queen
  • Elder Grey Pelt
  • ****
  • Posts: 2,794
  • Country: us
  • Floof-O-Meter: 297
  • aka Phloxenfree.
    • View Profile
Re: ? Material Codes for You! (Preset Mane Fix / Scrolling / Ghost Added! ?
« Reply #34 on: October 03, 2012, 10:39:14 pm »
Edit: (Lmao shoot double post.)

Original: All people that PM'd me have had fixes sent, please check your inboxes.
Also, I am now working on the next entries, which will be Transparent and Glowing. Hopefully those will be up this weekend.
Derrrp~

Offline SilverTW

  • Finest Floof
  • ***
  • Posts: 855
  • Country: 00
  • Floof-O-Meter: 54
  • Inactive account
    • View Profile
    • DeviantART
Re: ? Material Codes for You! (Preset Mane Fix / Scrolling / Ghost Added! ?
« Reply #35 on: October 04, 2012, 11:55:21 am »
Nice, I'm good at this too XD

This account is no longer in use, and any messages sent to here will not be read. If you need to reach me, head to https://softdiamond.net

Specialized in FeralHeart Maps,Presets,Objects,Mods,Markings,Textures and MORE.
Video Maker and more!

Offline aviannerd

  • Dedicated Supporter
  • ***
  • Posts: 358
  • Country: 00
  • Floof-O-Meter: 9
    • View Profile
Re: ? Material Codes for You! (Preset Mane Fix / Scrolling / Ghost Added! ?
« Reply #36 on: October 04, 2012, 08:22:48 pm »
Same problem, head won't show  up.

Offline Ruby1234

  • Mean Tutorial Queen
  • Elder Grey Pelt
  • ****
  • Posts: 2,794
  • Country: us
  • Floof-O-Meter: 297
  • aka Phloxenfree.
    • View Profile
Re: ? Material Codes for You! (Preset Mane Fix / Scrolling / Ghost Added! ?
« Reply #37 on: October 04, 2012, 09:28:06 pm »
Guys, if you are getting things that show up basewhite, you either replaced the numbers or names wrong, or your images are in the wrong format.
If that's not the case, then I really don't know what you're doing. xD

Offline Ruby1234

  • Mean Tutorial Queen
  • Elder Grey Pelt
  • ****
  • Posts: 2,794
  • Country: us
  • Floof-O-Meter: 297
  • aka Phloxenfree.
    • View Profile
Re: ? Material Codes for You! (Preset Mane Fix / Scrolling / Ghost Added! ?
« Reply #38 on: November 07, 2012, 04:55:14 am »
EDIT January 31st, 2022: This tutorial is being updated and moved to Google! Please refer to the new version wherever possible, as it has better optimisation & overall clarity.
https://docs.google.com/document/d/1otpZc7OyhgXwbK8KPFEl4ogVCACvSptYVBNI-uuFdac/edit?usp=sharing


Glow
-Make the entire preset glow in the dark! (DOES NOT COVER GLOWING MARKINGS)

We start with a preset.



(If you don't have a preset yet, you need one. I use preset 2 for the purpose of this tutorial, but you need your own. So go get one if you dun have one.)

Now, your preset's code probably looks something like this:
Code: [Select]
material preset_#_bodyMatL
{
technique
{
pass
{
texture_unit
{
texture preset_#body.jpg
}
}
}
}
material preset_#_bodyMatR
{
technique
{
pass
{
texture_unit
{
texture preset_#body.jpg
}
}
}
}
material preset_#_headMatL
{
technique
{
pass
{
texture_unit
{
texture preset_#head.jpg
}
}
}
}
material preset_#_headMatR
{
technique
{
pass
{
texture_unit
{
texture preset_#head.jpg
}
}
}
}
material preset_#_eyeMatL
{
technique
{
pass
{
cull_hardware none
cull_software none
texture_unit
{
texture preset_#eye.jpg
}
}
}
}
material preset_#_eyeMatR
{
technique
{
pass
{
cull_hardware none
cull_software none
texture_unit
{
texture preset_#eye.jpg
}
}
}
}
material preset_#_tailMat
{
technique
{
pass
{
texture_unit
{
texture preset_#tail.jpg
}
}
}
}
material preset_#_maneMat
{
technique
{
pass
{
cull_hardware none
cull_software none
alpha_rejection greater_equal 128
texture_unit
{
texture preset_#mane.png
}
}
}
}

Well, time for some glowyness.
Now, if we want just the whole preset to glow, then it's really quite simple. xD
You need only add one line, which is the emissive line.
Your best bet is to probably add
emissive 1.0 1.0 1.0 1.0
above every
texture_unit
'cause that's basically a standard glow.
However, we can add some color to our glowyness.
The way the emissive code works is really quite simple.
emissive 1.0 1.0 1.0 1.0
^ Basically explains it.
Each number controls a color value.
The first number controlling red, the second, green, the third, blue.
The last one, however, does not control white, it controls alpha. If you dunno what that is, then you best just leave it at 1.0
You'll end up with
Code: [Select]
material preset_#_bodyMatL
{
technique
{
pass
{
emissive 1.0 1.0 1.0 1.0
texture_unit
{
texture preset_#body.jpg
}
}
}
}
material preset_#_bodyMatR
{
technique
{
pass
{
emissive 1.0 1.0 1.0 1.0
texture_unit
{
texture preset_#body.jpg
}
}
}
}
material preset_#_headMatL
{
technique
{
pass
{
emissive 1.0 1.0 1.0 1.0
texture_unit
{
texture preset_#head.jpg
}
}
}
}
material preset_#_headMatR
{
technique
{
pass
{
emissive 1.0 1.0 1.0 1.0
texture_unit
{
texture preset_#head.jpg
}
}
}
}
material preset_#_eyeMatL
{
technique
{
pass
{
cull_hardware none
cull_software none
emissive 1.0 1.0 1.0 1.0
texture_unit
{
texture preset_#eye.jpg
}
}
}
}
material preset_#_eyeMatR
{
technique
{
pass
{
cull_hardware none
cull_software none
emissive 1.0 1.0 1.0 1.0
texture_unit
{
texture preset_#eye.jpg
}
}
}
}
material preset_#_tailMat
{
technique
{
pass
{
emissive 1.0 1.0 1.0 1.0
texture_unit
{
texture preset_#tail.jpg
}
}
}
}
material preset_#_maneMat
{
technique
{
pass
{
cull_hardware none
cull_software none
alpha_rejection greater_equal 128
emissive 1.0 1.0 1.0 1.0
texture_unit
{
texture preset_#mane.png
}
}
}
}

or something similar.
You can copy/paste that into your material file and then;

Quote from: Me lol
Now press Ctrl+H, or go to Edit->Replace...
And type _# in the "Find what:" section.
Then in the "Replace with:" section, put an underscore:
_
and then put your preset's actual number after that. Then click Replace all.

then you can change the emissive values to your liking.

Now, you may test this out in-game and be like,
Ruby,
I don't even see a difference.

Probably not. lol.
You see, FH doesn't ever really get dark.
At night, everything is still pretty bright, so it's hard to tell the difference between something that's glowing and something that's not.
Your best bet is to go crouch in the corner of Ficho.
You'll possibly see the difference then.

So now you're probably like,
okay,
so what's the point of glowyderpness if you can't even see the difference?
Truth is, there isn't one,
unless you are going to do part of the preset normal or ambient, and then have glowing markings or eyes.
Best results if you use ambience~
_______________________________________

Ambient
-Make presets/objects more sensitive to light changes!
--This covers ambience alone, THIS POST DOES NOT COVER GLOWING MARKINGS.

We start with a preset.



(If you don't have a preset yet, you need one. I use preset 2 for the purpose of this tutorial, but you need your own. So go get one if you dun have one.)

Now, your preset's code probably looks something like this:
Code: [Select]
material preset_#_bodyMatL
{
technique
{
pass
{
texture_unit
{
texture preset_#body.jpg
}
}
}
}
material preset_#_bodyMatR
{
technique
{
pass
{
texture_unit
{
texture preset_#body.jpg
}
}
}
}
material preset_#_headMatL
{
technique
{
pass
{
texture_unit
{
texture preset_#head.jpg
}
}
}
}
material preset_#_headMatR
{
technique
{
pass
{
texture_unit
{
texture preset_#head.jpg
}
}
}
}
material preset_#_eyeMatL
{
technique
{
pass
{
cull_hardware none
cull_software none
texture_unit
{
texture preset_#eye.jpg
}
}
}
}
material preset_#_eyeMatR
{
technique
{
pass
{
cull_hardware none
cull_software none
texture_unit
{
texture preset_#eye.jpg
}
}
}
}
material preset_#_tailMat
{
technique
{
pass
{
texture_unit
{
texture preset_#tail.jpg
}
}
}
}
material preset_#_maneMat
{
technique
{
pass
{
cull_hardware none
cull_software none
alpha_rejection greater_equal 128
texture_unit
{
texture preset_#mane.png
}
}
}
}

And all we are going to do is add one line above each
texture_unit
and that line is ambient.
The ambient line tells us how much light is going to be reflected off the object or character.
The default is
ambient 1.0 1.0 1.0 1.0
so using that won't help us.
Your best bet is probably
ambient 0.5 0.5 0.5 1.0
'cause it's right around the middle;

'course, you could go darker if you want.
But remember, to go darker, you must decrease the values, not increase them.

Code: [Select]
material preset_#_bodyMatL
{
technique
{
pass
{
ambient 0.5 0.5 0.5 1.0
texture_unit
{
texture preset_#body.jpg
}
}
}
}
material preset_#_bodyMatR
{
technique
{
pass
{
ambient 0.5 0.5 0.5 1.0
texture_unit
{
texture preset_#body.jpg
}
}
}
}
material preset_#_headMatL
{
technique
{
pass
{
ambient 0.5 0.5 0.5 1.0
texture_unit
{
texture preset_#head.jpg
}
}
}
}
material preset_#_headMatR
{
technique
{
pass
{
ambient 0.5 0.5 0.5 1.0
texture_unit
{
texture preset_#head.jpg
}
}
}
}
material preset_#_eyeMatL
{
technique
{
pass
{
cull_hardware none
cull_software none
ambient 0.5 0.5 0.5 1.0
texture_unit
{
texture preset_#eye.jpg
}
}
}
}
material preset_#_eyeMatR
{
technique
{
pass
{
cull_hardware none
cull_software none
ambient 0.5 0.5 0.5 1.0
texture_unit
{
texture preset_#eye.jpg
}
}
}
}
material preset_#_tailMat
{
technique
{
pass
{
ambient 0.5 0.5 0.5 1.0
texture_unit
{
texture preset_#tail.jpg
}
}
}
}
material preset_#_maneMat
{
technique
{
pass
{
cull_hardware none
cull_software none
alpha_rejection greater_equal 128
ambient 0.5 0.5 0.5 1.0
texture_unit
{
texture preset_#mane.png
}
}
}
}

Replace your code with that, and then;

Quote from: Me Again
Now press Ctrl+H, or go to Edit->Replace...
And type _# in the "Find what:" section.
Then in the "Replace with:" section, put an underscore:
_
and then put your preset's actual number after that. Then click Replace all.

That's basically it, but there are other options too.
Ambient works like emissive,
the first three values correspond to red, green, and blue.
This allows for tinting, by making one value slightly (or drastically) higher than the others.



Above, I increased the red value, and slightly decreased the other two on one side of the preset, tinting that side red.

Next post will cover glowing markings.

Meeeowww!~
« Last Edit: February 03, 2022, 09:55:32 am by Ruby1234 »

Offline greystar

  • Finest Floof
  • ***
  • Posts: 634
  • Country: 00
  • Floof-O-Meter: 24
  • hhhahahahahhhh...
    • Greystar2000
    • Quinnbee-s
    • View Profile
Re: ? Ze Big Book of Material Codes (Codes for your Presets and Objects!) ?
« Reply #39 on: December 21, 2012, 04:51:57 pm »
i fixed it by doing this : copying the mesh area (such as body) that works, paste it OVER eyes, replace body with eyes (MANUALLY, NOT CTRL+H OR IT WONT WORK XD) and voiala! hope dish helps.
Happy Pride Month!