View Full Version : blend prob

06-23-2003, 09:38 AM
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!

Leyder Dylan
06-24-2003, 08:31 AM
Have you tryed with

glFrontFace() ?

06-25-2003, 02:02 AM
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).]