Feral Heart
Help & Guidance => Game Help => Topic started by: WolfQueen on December 21, 2013, 07:25:05 pm
-
I tried to work with transparency, but my first try didn't really work (the whole body didn't show). The part I want to make transparent is the body part, the back legs to be exact. Is there anyway to edit my code below so it can actually work?
material preset_3_bodyMatL
{
technique
{
pass
{
texture_unit
{
texture preset_3body.jpg
}
}
}
}
material preset_3_bodyMatR
{
technique
{
pass
{
texture_unit
{
texture preset_3body.jpg
}
}
}
}
material preset_3_headMatL
{
technique
{
pass
{
texture_unit
{
texture preset_3head.jpg
}
}
}
}
material preset_3_headMatR
{
technique
{
pass
{
texture_unit
{
texture preset_3head.jpg
}
}
}
}
material preset_3_eyeMatL
{
technique
{
pass
{
cull_hardware none
cull_software none
texture_unit
{
texture preset_3eye.jpg
}
}
}
}
material preset_3_eyeMatR
{
technique
{
pass
{
cull_hardware none
cull_software none
texture_unit
{
texture preset_3eye.jpg
}
}
}
}
material preset_3_tailMat
{
technique
{
pass
{
texture_unit
{
texture preset_3tail.jpg
}
}
}
}
material preset_3_maneMat
{
technique
{
pass
{
lighting off
cull_hardware none
cull_software none
scene_blend alpha_blend
depth_write off
texture_unit
{
texture preset_3mane.png
}
}
}
}
If you need how I made the body, I can show you here. http://gyazo.com/99490c8a33cb94769ed115e2819f6166 (http://gyazo.com/99490c8a33cb94769ed115e2819f6166) I can give you the actual file if you need it.
Thanks! Please tell me if I need to be more specific!!
-
Your code would have to be:
material preset_3_bodyMatL
{
technique
{
pass
{
alpha_rejection greater_equal 128
texture_unit
{
texture preset_3body.jpg
}
}
}
}
material preset_3_bodyMatR
{
technique
{
pass
{
alpha_rejection greater_equal 128
texture_unit
{
texture preset_3body.jpg
}
}
}
}
material preset_3_headMatL
{
technique
{
pass
{
texture_unit
{
texture preset_3head.jpg
}
}
}
}
material preset_3_headMatR
{
technique
{
pass
{
texture_unit
{
texture preset_3head.jpg
}
}
}
}
material preset_3_eyeMatL
{
technique
{
pass
{
cull_hardware none
cull_software none
texture_unit
{
texture preset_3eye.jpg
}
}
}
}
material preset_3_eyeMatR
{
technique
{
pass
{
cull_hardware none
cull_software none
texture_unit
{
texture preset_3eye.jpg
}
}
}
}
material preset_3_tailMat
{
technique
{
pass
{
texture_unit
{
texture preset_3tail.jpg
}
}
}
}
material preset_3_maneMat
{
technique
{
pass
{
lighting off
cull_hardware none
cull_software none
scene_blend alpha_blend
depth_write off
texture_unit
{
texture preset_3mane.png
}
}
}
}
If that doesn't work, could you send me the file via PM please? cx
-
It works! I just need to edit! Thanks again!
-
Glad I could help! c: