me_go_fast
12-03-2006 19:07:17
Hello, I am trying to get a tree with textures to show up inside my ogre game with transparency around the leaves. The tree shows with tranpsarency properly inside the oFusion render window, but when I export it and put it into my game, it displays the tree without the transparency around the leaves. Any idea what would cause this? Below is the material script that was generated by oFusion. Thanks for your help!
material Material_#44/Leaves
{
transparency_casts_shadows on
technique
{
pass
{
ambient 0.7 0.7 0.7 1
diffuse 0.7 0.7 0.7 1
specular 0.9 0.9 0.9 1 20
alpha_rejection greater_equal 128
texture_unit
{
texture Textures/leaves.png
max_anisotropy 5
colour_op_ex source1 src_texture src_current
colour_op_multipass_fallback one zero
}
}
}
}