Feral Heart
Help & Guidance => Game Help => Topic started by: IcexWolf1 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 >.< (http://prntscr.com/d8y5ra)
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.
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" (http://prnt.sc/d8y5ht)
Not sure what's going on here. I've had this setup since I started making presets and never had this issue.
-
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
material preset_#_maneMat
{
technique
{
pass
{
cull_hardware none
cull_software none
alpha_rejection greater_equal 128
texture_unit
{
texture preset_#mane.png
}
}
}
}
-
Well, I'm not sure why it worked, but it worked. Thank you. ^3^
-
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 :)
-
Glad to see that things have been resolved! I'll lock this topic up for you.