Feral Heart

Help & Guidance => Game Help => Topic started by: FlyingGrass on September 02, 2017, 11:15:41 pm

Title: Wings used to work
Post by: FlyingGrass on September 02, 2017, 11:15:41 pm
I changed the wings and they turned completely white, what went wrong?

I made sure that the name of the texture matched the name of the file.
Code:
Code: [Select]
material preset_1_equipMatL
{
technique
{
pass
{
                        ambient 1.000000 1.000000 1.000000 1.000000
                        diffuse 1.000000 1.000000 1.000000 1.000000
                        specular 0.2 0.2 0.2 1.0
                        emissive 0.5 0.5 0.5 1.000000
cull_hardware none
cull_software none
scene_blend alpha_blend
alpha_rejection greater_equal 128
texture_unit
{
texture GuiWingsCleared.png
}
}
}
}
material preset_1_equipMatR
{
technique
{
pass
{
                        ambient 1.000000 1.000000 1.000000 1.000000
                        diffuse 1.000000 1.000000 1.000000 1.000000
                        specular 0.2 0.2 0.2 1.0
                        emissive 0.5 0.5 0.5 1.000000
cull_hardware none
cull_software none
scene_blend alpha_blend
alpha_rejection greater_equal 128
texture_unit
{
texture GuiWingsCleared.png
}
}
}
}
What did I do wrong? The wing file is a .png, and the code was not altered from the time before I changed the wings.
Title: Re: Wings used to work
Post by: VortexAlive on September 02, 2017, 11:26:20 pm
I changed the wings and they turned completely white, what went wrong?

I made sure that the name of the texture matched the name of the file.
Code:
material preset_1_equipMatL
{
   technique
   {
      pass
      {
                        ambient 1.000000 1.000000 1.000000 1.000000
                        diffuse 1.000000 1.000000 1.000000 1.000000
                        specular 0.2 0.2 0.2 1.000000
                        emissive 0.5 0.5 0.5 1.000000
         cull_hardware none
         cull_software none
         scene_blend alpha_blend
         alpha_rejection greater_equal 128
         texture_unit
         {
            texture GuiWingsCleared.png
         }
      }
   }
}
material preset_1_equipMatR
{
   technique
   {
      pass
      {
                        ambient 1.000000 1.000000 1.000000 1.000000
                        diffuse 1.000000 1.000000 1.000000 1.000000
                        specular 0.2 0.2 0.2 1.000000
                        emissive 0.5 0.5 0.5 1.000000
         cull_hardware none
         cull_software none
         scene_blend alpha_blend
         alpha_rejection greater_equal 128
         texture_unit
         {
            texture GuiWingsCleared.png
         }
      }
   }
}
What did I do wrong? The wing file is a .png, and the code was not altered from the time before I changed the wings.
The numbers I marked in red specify how much the Alpha will be affected by each type of lighting (1 would basically mean "Make it glow!"), setting them to 0 or removing them could help.
The diffuse and ambient Alpha lighting should remain at 1.0 so that the wings do not completely vanish.

Edit: Corrected a small mistake.
Title: Re: Wings used to work
Post by: FlyingGrass on September 03, 2017, 05:05:55 am
The numbers I marked in red specify how much the Alpha will be affected by each type of lighting (1 would basically mean "Make it glow!"), setting them to 0 or removing them could help.
The diffuse and ambient Alpha lighting should remain at 1.0 so that the wings do not completely vanish.

Edit: Corrected a small mistake.
Thank you! It works!