Author Topic: Preset transparency(?) help [Fixed!]  (Read 1199 times)

Offline Koori

  • Experienced Traveler
  • **
  • Posts: 122
  • Country: us
  • Floof-O-Meter: 11
  • Self-Proclaimed Official Hobo of Bonfire Island
    • Koori-Tora
    • View Profile
Preset transparency(?) help [Fixed!]
« 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
                        }
                }
        }
}
« Last Edit: September 22, 2016, 09:06:58 am by Koori »
Check out Myatar Legends! It's an IT server with a diverse choice of character models [including gryphon options], separate marking and eye colors, horns/antlers... Just take a look for yourself! http://myatarlegends.forumotion.com/

Offline Morgra

  • I don't like sand...
  • Immortal Legend
  • *****
  • Posts: 5,718
  • Country: us
  • Floof-O-Meter: 347
  • Ever been killed by a spider? I was
    • DinksterDaily
    • View Profile
Re: Preset transparency(?) help
« Reply #1 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)
« Last Edit: September 22, 2016, 08:56:33 am by MorgraWolf »
Profile pic by Edolicious

People don't think the universe be like it is, but it do.


Offline Morgra

  • I don't like sand...
  • Immortal Legend
  • *****
  • Posts: 5,718
  • Country: us
  • Floof-O-Meter: 347
  • Ever been killed by a spider? I was
    • DinksterDaily
    • View Profile
Re: Preset transparency(?) help
« Reply #2 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!
« Last Edit: September 22, 2016, 09:04:37 am by MorgraWolf »
Profile pic by Edolicious

People don't think the universe be like it is, but it do.