Feral Heart

Help & Guidance => Game Help => Topic started by: damiian on March 14, 2014, 06:20:11 pm

Title: Manes on preset
Post by: damiian on March 14, 2014, 06:20:11 pm
i was wondering if anyone has a code or anything to fix a preset mane to stop it looking like paper?
ty if anyone can help
Title: Re: Manes on preset
Post by: AlphaEclipse on March 14, 2014, 07:16:54 pm
Open the .mat with notepad and replace the mane's code with this:
Quote
material preset_#_maneMat
{
        technique
        {
                pass
                {
                        cull_hardware none
                        cull_software none
                        alpha_rejection greater_equal 128
                        texture_unit
                        {
                                texture preset_#mane.png
                        }
                }
        }
}

Make sure you save it as a .png!
Title: Re: Manes on preset
Post by: damiian on March 14, 2014, 08:02:25 pm
Hm, it doesnt seem to wanna work i've put it as the preset 4 Mat and its saved as PNG but the mane comes up white
Title: Re: Manes on preset
Post by: AlphaEclipse on March 14, 2014, 08:03:39 pm
Hm, it doesnt seem to wanna work i've put it as the preset 4 Mat and its saved as PNG but the mane comes up white

Paste the whole .mat here. :3 I want to review it.
Title: Re: Manes on preset
Post by: damiian on March 14, 2014, 08:09:02 pm
material preset_4_bodyMatL
{
   technique
   {
      pass
      {
         texture_unit
         {
            texture preset_4body.jpg
         }
      }
   }
}

the mane mat was edited to:
material preset_4_maneMat
{
        technique
        {
                pass
                {
                        cull_hardware none
                        cull_software none
                        alpha_rejection greater_equal 128
                        texture_unit
                        {
                                texture preset_4mane.png
                        }
                }
        }
}
material preset_4_bodyMatR
{
   technique
   {
      pass
      {
         texture_unit
         {
            texture preset_4body.jpg
         }
      }
   }
}
material preset_4_headMatL
{
   technique
   {
      pass
      {
         texture_unit
         {
            texture preset_4head.jpg
         }
      }
   }
}
material preset_4_headMatR
{
   technique
   {
      pass
      {
         texture_unit
         {
            texture preset_4head.jpg
         }
      }
   }
}
material preset_4_eyeMatL
{
   technique
   {
      pass
      {
         cull_hardware none
         cull_software none
         texture_unit
         {
            texture preset_4eye.jpg
         }
      }
   }
}
material preset_4_eyeMatR
{
   technique
   {
      pass
      {
         cull_hardware none
         cull_software none
         texture_unit
         {
            texture preset_4eye.jpg
         }
      }
   }
}
material preset_4_tailMat
{
   technique
   {
      pass
      {
         texture_unit
         {
            texture preset_4tail.jpg
         }
      }
   }
}
material preset_4_maneMat
{
   technique
   {
      pass
      {
         lighting off
         cull_hardware none
         cull_software none
         scene_blend alpha_blend
         depth_write off
         texture_unit
         {
            texture preset_4mane.png
         }
      }
   }
}
Title: Re: Manes on preset
Post by: AlphaEclipse on March 14, 2014, 08:11:21 pm
When coloring the mane, make sure you "lock the alpha channel." Otherwise the mane won't work.
Are you sure you saved it as a .png? The script is perfectly fine.
Title: Re: Manes on preset
Post by: damiian on March 14, 2014, 08:13:10 pm
yes it was saved as Png however the preset was made a few weeks ago maybe that effected the mane? i cant remember when making it if i locked it or not
Title: Re: Manes on preset
Post by: CrazyCatLady on March 14, 2014, 08:15:48 pm
damiian, if you were using GIMP to make your preset then it will work whether you locked the alpha channel or not. /heads up/
Title: Re: Manes on preset
Post by: AlphaEclipse on March 14, 2014, 08:18:09 pm
yes it was saved as Png however the preset was made a few weeks ago maybe that effected the mane? i cant remember when making it if i locked it or not

If you don't lock the alpha channel, the mane can appear "see-through" or something similar. If you enter in that code and lock the alpha channel, the mane will appear normal. Usually when the mesh turns up that white, it means there's no texture. I could make you the mane if you need.
Title: Re: Manes on preset
Post by: Sherlockian on March 14, 2014, 11:59:03 pm
yes it was saved as Png however the preset was made a few weeks ago maybe that effected the mane? i cant remember when making it if i locked it or not

If you don't lock the alpha channel, the mane can appear "see-through" or something similar. If you enter in that code and lock the alpha channel, the mane will appear normal. Usually when the mesh turns up that white, it means there's no texture. I could make you the mane if you need.

Locking the alpha channel actually doesn't cause the see-through problem on manes, it's all in the coding. c: Locking the alpha channel simply makes it so that you can't draw on the alpha channel, the transparent bit basically. And perhaps this tutorial will help you? :3 http://www.feral-heart.com/index.php?option=com_jfusion&Itemid=2&jfile=index.php&topic=19335.0 (http://www.feral-heart.com/index.php?option=com_jfusion&Itemid=2&jfile=index.php&topic=19335.0)