Feral Heart

Help & Guidance => Game Help => Topic started by: Koori on September 22, 2016, 07:14:48 am

Title: Preset transparency(?) help [Fixed!]
Post by: Koori on September 22, 2016, 07:14:48 am
I'm really not even sure if it's a transparency problem. I'm not preset savvy. I just know that, using a material code I found buried on this forum, I fixed the transparency of the mane, and now there's black lines on the edges of the mane.
http://imgur.com/a/MpeUc
http://imgur.com/a/tIeZp
What's the problem? Is this even something I can fix?

The material file:
material preset_4_maneMat
{
        technique
        {
                pass
                {
                        cull_hardware none
                        cull_software none
                        alpha_rejection greater_equal 128
                        texture_unit
                        {
                                texture preset_4mane.png
                        }
                }
        }
}

Edit: For those having the same problem, I changed the alpha_rejection code from 128 to 255! The black lines are gone, the mane shape stays the same, and it looks lovely.
material preset_4_maneMat
{
        technique
        {
                pass
                {
                        cull_hardware none
                        cull_software none
                        alpha_rejection greater_equal 128
                        texture_unit
                        {
                                texture preset_4mane.png
                        }
                }
        }
}
Title: Re: Preset transparency(?) help
Post by: Morgra on September 22, 2016, 07:20:26 am
Your screenshots aren't showing up so I can't tell what the exact issue is but it sounds like it's an issue with your edges.

Make sure that the edges of your mane texture don't stick out past the mane Mask "fmaneMask.png" found in FeralHeart>media>textures>masks.

Edit: Change alpha_rejection greater_value number in coding from 128 to 255. (For people who also have this issue and come to this topic)
Title: Re: Preset transparency(?) help
Post by: Morgra on September 22, 2016, 09:01:48 am
In this code, the value next to alpha_rejection greater_equal is now 255
Code: [Select]
material preset_#_maneMat
{
        technique
        {
                pass
                {
                        cull_hardware none
                        cull_software none
                        alpha_rejection greater_equal 255
                        texture_unit
                        {
                                texture preset_#mane.png
                        }
                }
        }
}

Code tutorial where the original Mane preset fix was from with 128 value: Updated 9/16/16 Material Coding for Beginners! Glow, metal, transparent, more! (http://www.feral-heart.com/smf/index.php?topic=26062.0)