Game Development Community

Trees, transparency and water

by Thomas Bang · in Torque Game Engine Advanced · 03/12/2011 (7:42 am) · 2 replies

Hi

Why are the leaves of the trees invisible, when i am underwater?
The second image shows the same trees like the first image. But at this time from underwater.

Where is the problem?

darkware.de/tree_normal.jpg
darkware.de/tree_underwater.jpg

#1
03/12/2011 (12:18 pm)
Are the leaves using blending to be partially see-through?
Try switching them to no blending, but instead alpha-testing. This should place them in the same bin as the tree and other opaque objects and should fix this.
#2
03/14/2011 (5:14 am)
It works. I made the surface of the waterblock translucent.