Feral Heart

Help & Guidance => Game Help => Topic started by: PennsylvaniaRedneck on November 16, 2014, 05:31:54 pm

Title: Preset A White Blob?
Post by: PennsylvaniaRedneck on November 16, 2014, 05:31:54 pm
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?
Title: Re: Preset A White Blob?
Post by: AlphaEclipse on November 16, 2014, 05:43:20 pm
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.

Quote
material preset_#_bodyMatL
{
   technique
   {
      pass
      {
         texture_unit   
         {
            texture preset_#body.png
         }
      }
   }
}

Basically if it's .png in the .material, save it as .png.
Title: Re: Preset A White Blob?
Post by: PennsylvaniaRedneck on November 16, 2014, 05:45:28 pm
How do I open the .material file? What program?
Title: Re: Preset A White Blob?
Post by: AlphaEclipse on November 16, 2014, 05:46:06 pm
Open it in notepad, or any other program in which you can edit text.
Title: Re: Preset A White Blob?
Post by: Bawfle on November 16, 2014, 05:49:18 pm
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!
Title: Re: Preset A White Blob?
Post by: PennsylvaniaRedneck on November 16, 2014, 11:17:57 pm
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?
Title: Re: Preset A White Blob?
Post by: Bawfle on November 16, 2014, 11:27:20 pm
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~ ^^
Title: Re: Preset A White Blob?
Post by: PennsylvaniaRedneck on November 17, 2014, 12:16:01 am
Fantastic! Thank you so so much!
Title: Re: Preset A White Blob?
Post by: Bawfle on November 17, 2014, 08:06:42 am
You're very welcome! ^^