Author Topic: Transparent Wings Not Working  (Read 1424 times)

Offline MementoMors

  • Curious Wanderer
  • *
  • Posts: 45
  • Country: us
  • Floof-O-Meter: 1
  • cursed goatman
    • Memento-Mors
    • View Profile
    • My Toyhou.se
Transparent Wings Not Working
« on: October 04, 2016, 09:25:30 pm »
I'm trying to make a preset with invisible wings. When I load the preset in-game, the wings become yellow and black but everything else looks how it's supposed to.



Here's my code:

Code: [Select]
material preset_1_bodyMatL
{
technique
{
pass
{
texture_unit
{
texture MementoBody_Left.png
}
}
}
}
material preset_1_bodyMatR
{
technique
{
pass
{
texture_unit
{
texture MementoBody_Left.png
}
}
}
}
material preset_1_headMatL
{
technique
{
pass
{
texture_unit
{
texture MementoHead_Left.png
}
}
}
}
material preset_1_headMatR
{
technique
{
pass
{
texture_unit
{
texture MementoHead_Left.png
}
}
}
}
material preset_1_eyeMatL
{
technique
{
pass
{
cull_hardware none
cull_software none
texture_unit
{
texture MementoEyes_Left.png
}
}
}
}
material preset_1_eyeMatR
{
technique
{
pass
{
cull_hardware none
cull_software none
texture_unit
{
texture MementoEyes_Left.png
}
}
}
}
material preset_1_tailMat
{
technique
{
pass
{
texture_unit
{
texture MementoTail.png
}
}
}
}
material preset_1_maneMat
{
        technique
        {
                pass
                {
                       cull_hardware none
                       cull_software none
                       alpha_rejection greater_equal 128
                       texture_unit
                       {
                                texture MementoHair.png
                }
          }
     }
}
material preset_1_equipMatL
{
technique
{
pass
{

                        alpha_rejection greater_equal 128
texture_unit
{
texture preset_1equip.jpg
}
}
}
}
material preset_1_equipMatR
{
technique
{
pass
{
                        alpha_rejection greater_equal 128
texture_unit
{
texture preset_1equip.jpg
}
}
}
}

I'm not sure what to do, and I would appreciate any help.
I'll be the hyena. You'll see.

Offline CosmoFursi

  • Community Champion
  • ****
  • Posts: 1,751
  • Country: us
  • Floof-O-Meter: 97
  • . steal my starbucks and i'll steal your soul
    • SSFireWolf
    • channel/UC4pX64nRbfEuRcBaNlVxlJw
    • View Profile
    • YouTube
Re: Transparent Wings Not Working
« Reply #1 on: October 04, 2016, 09:41:38 pm »
after a few minutes of looking at your code, i saw you had a .jpg file as the invisible wings.

invisible things don't work well on a .jpg image. i suggest remaking the wings as a .png image, see if that helps.

Offline MementoMors

  • Curious Wanderer
  • *
  • Posts: 45
  • Country: us
  • Floof-O-Meter: 1
  • cursed goatman
    • Memento-Mors
    • View Profile
    • My Toyhou.se
Re: Transparent Wings Not Working
« Reply #2 on: October 04, 2016, 09:46:10 pm »
after a few minutes of looking at your code, i saw you had a .jpg file as the invisible wings.

invisible things don't work well on a .jpg image. i suggest remaking the wings as a .png image, see if that helps.

I see! I forgot to change the file format in the code. I'll try that. Thanks!
I'll be the hyena. You'll see.

Offline D-ead7Dog

  • AFK NPC
  • Pack & Pride Representative
  • ****
  • Posts: 1,451
  • Country: us
  • Floof-O-Meter: 97
  • BUMPY SNOW
    • D-ead7Dog
    • d-ead7dog
    • View Profile
Re: Transparent Wings Not Working
« Reply #3 on: October 04, 2016, 09:46:49 pm »
Yeah to make something transparent you need to make the file a png since that's the only thing that works well with transparency.
Change the material code [wing code area] to

material preset_1_equipMatL
{
 technique
 {
  pass
  {

                        alpha_rejection greater_equal 128
   texture_unit
   {
    texture preset_1equip.png
   }
  }
 }
}
material preset_1_equipMatR
{
 technique
 {
  pass
  {
                        alpha_rejection greater_equal 128
   texture_unit
   {
    texture preset_1equip.png
   }
  }
 }
}
« Last Edit: October 04, 2016, 09:50:24 pm by Pkf7 »

Artwork (c) Lynxbrush & CosmicFatality

Originally registered January 15, 2011

ArcticGalaxy

  • Guest
Re: Transparent Wings Not Working
« Reply #4 on: October 04, 2016, 11:29:40 pm »
If that doesn't work, you can look through Ruby1234's preset tutorials here. They have all kinds of tips for every sort of preset pretty much. cx