Feral Heart

Help & Guidance => Game Help => Topic started by: WolfQueen on December 21, 2013, 07:25:05 pm

Title: Can anyone help me with transparency in my preset? :^) (FIXED)
Post 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?

Code: [Select]
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!!
Title: Re: Can anyone help me with transparency in my preset? :^)
Post by: Sherlockian on December 21, 2013, 07:34:51 pm
Your code would have to be:
Code: [Select]
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
Title: Re: Can anyone help me with transparency in my preset? :^)
Post by: WolfQueen on December 21, 2013, 07:41:08 pm
It works! I just need to edit! Thanks again!
Title: Re: Can anyone help me with transparency in my preset? :^) (FIXED)
Post by: Sherlockian on December 21, 2013, 07:44:48 pm
Glad I could help! c: