PDA

View Full Version : Transparent texture error



bobtedbob
11-12-2011, 02:31 AM
Hi

I have a cube with semi transparent textures round the out side. I have some objects behind it from the camera perspective and I have an object in the cube.

My problem is I can see though both sides of the cube to the background objects but I can't see the object in the cube. When I move in to the cube by moving the camera I can see the inside cube object and the objects outside the cube through the transparent texture

Can anyone help in working out why an object is not visible through transparent textures?

V-man
11-13-2011, 01:56 AM
You probably are not drawing the object inside your cube first, so depth testing fails for the object.

http://www.opengl.org/wiki/Transparency_Sorting