Transparency?

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
}
}
}
}

Lioric

13-03-2006 16:29:28

Try this:

1 What is the dislpayed result in the OSM Viewer made by IFASS?
2 What the render system used in your application? chaging it makes a difference?
3 Any hint on the possible cause of the material issue on the ogre.log that your application produces?
4 Dont use blend modes, just the alpha value (128 its ok)

me_go_fast

14-03-2006 03:58:39

I finally figured it out. I feel so stupid! :lol: It was because I had my shadowtype set to SHADOWTYPE_STENCIL_ADDITIVE. Thanks for your help!