blend prob

im making a 3d pong game… and so i made a cube stretched on the z axis with textures on each side, i blended the textures so you can see inside but some of the faces were only blending on one side!!! please help me!

Have you tryed with

glFrontFace() ?

Two things,

  1. Face winding is important (vertex order clockwise vs counter clockwise) see previous post. Face culling will eliminate some faces based on face winding, this is known as back face culling or front face culling. This can be disabled.

  2. Blended transparency does not play nicely with the zbuffer. You need to sort transparent faces or at least draw transparent stuff last and turn off depth writes when drawing transparent stuff.

[This message has been edited by dorbie (edited 06-25-2003).]