-
I tried making a preset following a tutorial, but when I tried to use the preset ingame it's just a textureless white figure. Why could this have happened? Did I need to change the .material file?
-
In the .material file, make sure the file extensions off of the "texture preset_#(bodypart).FILE match. For example, if the file you made is a .png, make sure the .material says .png inside.
material preset_#_bodyMatL
{
technique
{
pass
{
texture_unit
{
texture preset_#body.png
}
}
}
}
Basically if it's .png in the .material, save it as .png.
-
How do I open the .material file? What program?
-
Open it in notepad, or any other program in which you can edit text.
-
Open your material file with Notepad or Notepad++ (http://notepad-plus-plus.org/) (I recommend Notepad++) In your material file you should have this (depending on what number preset file you're using:
material preset_6_bodyMatL
{
technique
{
pass
{
texture_unit
{
texture preset_6body.png
}
}
}
}
material preset_6_bodyMatR
{
technique
{
pass
{
texture_unit
{
texture preset_6body.png
}
}
}
}
material preset_6_headMatL
{
technique
{
pass
{
texture_unit
{
texture preset_6head2.png
}
}
}
}
material preset_6_headMatR
{
technique
{
pass
{
texture_unit
{
texture preset_6head.png
}
}
}
}
material preset_6_eyeMatL
{
technique
{
pass
{
cull_hardware none
cull_software none
texture_unit
{
texture preset_6eye.png
}
}
}
}
material preset_6_eyeMatR
{
technique
{
pass
{
cull_hardware none
cull_software none
texture_unit
{
texture preset_6eye.png
}
}
}
}
material preset_6_tailMat
{
technique
{
pass
{
texture_unit
{
texture preset_6tail.png
}
}
}
}
material preset_6_maneMat
{
technique
{
pass
{
lighting off
cull_hardware none
cull_software none
scene_blend alpha_blend
depth_write off
texture_unit
{
texture preset_6mane.png
}
}
}
}[
For a better result change the image file to .png instead of .jpg. Also make sure that your preset image is also saved as a .png so that it matches what is in the material file. Your preset image also needs to be the size of 512x512 pixels if it isn't already. The information in GREEN needs to be the same name as what you named the image. Example: Your preset head image is named "Headthing" so where you see "preset_6head.png" that would need to be changed to "Headthing.png" so it is EXACTLY the same~
Make sure you save and re-launch FH once you're done!
-
Yay, I got it to work! Thank you so much. But is there any way to have the marking only show up on one side?
-
Indeed there is! Take this for an example:
material preset_6_bodyMatL
{
technique
{
pass
{
texture_unit
{
texture IMAGE.png
}
}
}
}
material preset_6_bodyMatR
{
technique
{
pass
{
texture_unit
{
texture IMAGETWO.png
}
}
}
}
All you need to do is change the name and make your second side of the preset~ c: remember to make the name in the material and the name on the image the same~ ^^
-
Fantastic! Thank you so so much!
-
You're very welcome! ^^