I'm trying to find out exactly how to create an invisibility code so I can finish a preset for a friend.
I'm trying it on one of my own to see how it'll work out, but always the body parts that have invisible parts always go white.
I made the background in the desired areas transparent and followed the tutorials as best as I could.
Did I mess something up with the file? Here is the code.
material preset_7_bodyMatR
{
technique
{
pass
{
texture_unit
{
texture presetright_7body.jpg
}
}
}
}
material preset_7_headMatR
{
receive_shadows on
technique
{
pass
{
ambient 1.000000 1.000000 1.000000 1.000000
diffuse 1.000000 1.000000 1.000000 1.000000
specular 0.050000 0.050000 0.050000 1.000000 12.500000
emissive 0.000000 0.000000 0.000000 1.000000
cull_hardware none
cull_software none
scene_blend alpha_blend
alpha_rejection greater_equal 128
texture_unit
{
texture preset_7head.jpg
tex_address_mode wrap
filtering trilinear
}
}
}
}
texture_unit
{
texture preset_7head.jpg
}
}
}
}
material preset_7_headMatL
{
receive_shadows on
technique
{
pass
{
ambient 1.000000 1.000000 1.000000 1.000000
diffuse 1.000000 1.000000 1.000000 1.000000
specular 0.050000 0.050000 0.050000 1.000000 12.500000
emissive 0.000000 0.000000 0.000000 1.000000
cull_hardware none
cull_software none
scene_blend alpha_blend
alpha_rejection greater_equal 128
texture_unit
{
texture preset_7head.jpg
tex_address_mode wrap
filtering trilinear
}
}
}
}
texture_unit
{
texture preset_7head.jpg
}
}
}
}
material preset_7_eyeMatR
{
receive_shadows on
technique
{
pass
{
ambient 1.000000 1.000000 1.000000 1.000000
diffuse 1.000000 1.000000 1.000000 1.000000
specular 0.050000 0.050000 0.050000 1.000000 12.500000
emissive 0.000000 0.000000 0.000000 1.000000
cull_hardware none
cull_software none
scene_blend alpha_blend
alpha_rejection greater_equal 128
texture_unit
{
texture preset_7eye.jpg
tex_address_mode wrap
filtering trilinear
}
}
}
}
texture_unit
{
texture preset_7eye.jpg
}
}
}
}
material preset_7_eyeMatL
{
receive_shadows on
technique
{
pass
{
ambient 1.000000 1.000000 1.000000 1.000000
diffuse 1.000000 1.000000 1.000000 1.000000
specular 0.050000 0.050000 0.050000 1.000000 12.500000
emissive 0.000000 0.000000 0.000000 1.000000
cull_hardware none
cull_software none
scene_blend alpha_blend
alpha_rejection greater_equal 128
texture_unit
{
texture preset_7eye.jpg
tex_address_mode wrap
filtering trilinear
}
}
}
}
texture_unit
{
texture preset_7eye.jpg
}
}
}
}
material preset_7_tailMat
{
receive_shadows on
technique
{
pass
{
ambient 1.000000 1.000000 1.000000 1.000000
diffuse 1.000000 1.000000 1.000000 1.000000
specular 0.050000 0.050000 0.050000 1.000000 12.500000
emissive 0.000000 0.000000 0.000000 1.000000
cull_hardware none
cull_software none
scene_blend alpha_blend
alpha_rejection greater_equal 128
texture_unit
{
texture preset_7tail.jpg
tex_address_mode wrap
filtering trilinear
}
}
}
}
texture_unit
{
texture preset_7head.jpg
}
}
}
}
material preset_7_maneMat
{
receive_shadows on
technique
{
pass
{
ambient 1.000000 1.000000 1.000000 1.000000
diffuse 1.000000 1.000000 1.000000 1.000000
specular 0.050000 0.050000 0.050000 1.000000 12.500000
emissive 0.000000 0.000000 0.000000 1.000000
cull_hardware none
cull_software none
scene_blend alpha_blend
alpha_rejection greater_equal 128
texture_unit
{
texture preset_7mane.png
tex_address_mode wrap
filtering trilinear
}
}
}
}
texture_unit
{
texture preset_7mane.png
}
}
}
}