Author Topic: Wings used to work  (Read 1068 times)

Offline FlyingGrass

  • ~🛠 The avant-garde doctor of mechanical beings. 🔧 🔬
  • Elder Grey Pelt
  • ****
  • Posts: 2,516
  • Country: 00
  • Floof-O-Meter: 121
  • Avatar=Me|Signature=Me
    • FlyingGrass
    • channel/UCA7RfqQ1KLl4s8JhxIXNs_Q
    • View Profile
    • Mechanicafeles Discord link
Wings used to work
« 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.

My presets.

Good things take time, so I'll take an eternity and create something so good that the human brain can't handle the sheer goodness of it.

Offline VortexAlive

  • Eevee Knight
  • Honored Hero
  • *****
  • Posts: 5,080
  • Country: us
  • Floof-O-Meter: 180
  • A wild floof has appeared!
    • VortexAlive
    • VortexAlive
    • VortexAlive
    • View Profile
    • VortexAlive is Rawrsome
Re: Wings used to work
« Reply #1 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.
« Last Edit: September 03, 2017, 12:00:04 am by VortexAlive »
For the sake of my own health and interests, I've left FH and I won't be looking back.

Offline FlyingGrass

  • ~🛠 The avant-garde doctor of mechanical beings. 🔧 🔬
  • Elder Grey Pelt
  • ****
  • Posts: 2,516
  • Country: 00
  • Floof-O-Meter: 121
  • Avatar=Me|Signature=Me
    • FlyingGrass
    • channel/UCA7RfqQ1KLl4s8JhxIXNs_Q
    • View Profile
    • Mechanicafeles Discord link
Re: Wings used to work
« Reply #2 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!

My presets.

Good things take time, so I'll take an eternity and create something so good that the human brain can't handle the sheer goodness of it.