Author Topic: Mane Issues??  (Read 860 times)

Offline IcexWolf1

  • Familiar Grounds Dweller
  • **
  • Posts: 93
  • Country: us
  • Floof-O-Meter: 4
    • http://icexwolf1.deviantart.com/
    • View Profile
    • HollowedWyld
Mane Issues??
« on: November 18, 2016, 05:53:04 pm »
For whatever reason my mane keeps appearing black where it should be transparent on the preset.
Help >.<
This is the code I have. As you can see, I have it set up so I can have glowing parts if I want, not that it's likely, but you never know. The layer named "preset_1maneG.png" is 100% transparent, but when I go into the preset maker, it shows up as being black.
Code: [Select]
material preset_1_maneMat
{
technique
{
pass
{
ambient 0.5 0.5 0.5
texture_unit
{
texture preset_1mane.png
}
}
pass
{
emissive 1.0 0.0 0.0
scene_blend alpha_blend
texture_unit
{
texture preset_1maneG.png
}
}
}
}
This is "preset_1mane.png"
Not sure what's going on here. I've had this setup since I started making presets and never had this issue.

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: Mane Issues??
« Reply #1 on: November 18, 2016, 07:53:32 pm »
It could be that the texture_unit above the preset_1mane.png layer doesn't have the mane fix applied to it, or it's missing the cull_hardware or cull_software codes. I'm not entirely sure. Looking at this, it seems to be something to do with whats above your texture unit.

Try this: (Just add the cull_hardware none cull_software none alpha_rejection greater_equal 128 portion above the ambient 0.5 0.5 0.5

Code: [Select]
material preset_#_maneMat
{
        technique
        {
                pass
                {
                        cull_hardware none
                        cull_software none
                        alpha_rejection greater_equal 128
                        texture_unit
                        {
                                texture preset_#mane.png
                        }
                }
        }
}
Profile pic by Edolicious

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


Offline IcexWolf1

  • Familiar Grounds Dweller
  • **
  • Posts: 93
  • Country: us
  • Floof-O-Meter: 4
    • http://icexwolf1.deviantart.com/
    • View Profile
    • HollowedWyld
Re: Mane Issues??
« Reply #2 on: November 18, 2016, 08:05:51 pm »
Well, I'm not sure why it worked, but it worked. Thank you. ^3^

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: Mane Issues??
« Reply #3 on: November 18, 2016, 08:07:26 pm »
Oh I'm glad ^^ I thought that might be why. Glad I could help!

A staff member will lock this now, if it's been resolved :)
Profile pic by Edolicious

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


Offline Warriorstrike

  • . "The truth is often what we make of it; you heard what you wanted to hear, believed what you wanted to believe."
  • Ancient Silver Mane
  • *****
  • Posts: 4,221
  • Country: us
  • Floof-O-Meter: 346
  • . Remember… the Force will be with you. Always.
    • warriorstrike
    • warriorstrike
    • View Profile
    • My Tumblr
Re: Mane Issues??
« Reply #4 on: November 19, 2016, 12:36:47 am »
Glad to see that things have been resolved! I'll lock this topic up for you.

If you define yourself by the power to take life, the desire to dominate, to possess… then you have nothing.