PDA

View Full Version : Polygons, Cubes and Light



vitaliy
06-25-2002, 04:01 AM
Hi again. I have a scene constructed with cubes, every cube is constructed with 6 polygons. When I add light, it seems to be somewhat 'inside' out. I can see the things that are on the inside of a polygon. I applied a normal to every vertex and made sure that GL_SMOOTH is set. My question is, what cause this problem?

Deiussum
06-25-2002, 04:14 AM
Did you enable depth testing, and clear the depth buffer each frame?

vitaliy
06-25-2002, 04:54 AM
Originally posted by Deiussum:
Did you enable depth testing, and clear the depth buffer each frame?

Yes I did!

Deiussum
06-25-2002, 06:04 AM
Do you have face culling enabled? If you do it's possible that you are not using the correct winding order, or have the culling setup to cull the wrong faces.