Feral Heart

Help & Guidance => Game Help => Topic started by: MementoMors on October 04, 2016, 09:25:30 pm

Title: Transparent Wings Not Working
Post by: MementoMors 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.

(http://i.imgur.com/bacG27K.png)

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.
Title: Re: Transparent Wings Not Working
Post by: CosmoFursi 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.
Title: Re: Transparent Wings Not Working
Post by: MementoMors 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!
Title: Re: Transparent Wings Not Working
Post by: D-ead7Dog 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
   }
  }
 }
}
Title: Re: Transparent Wings Not Working
Post by: ArcticGalaxy on October 04, 2016, 11:29:40 pm
If that doesn't work, you can look through Ruby1234's preset tutorials here. (http://www.feral-heart.com/smf/index.php?topic=26062.0) They have all kinds of tips for every sort of preset pretty much. cx