Black Spots
Hello, i recently implemented a polygonization algorithm in order to render an implicit surface in opengl. This algorithm returns three vertices each time it computes a valid polygon, and using GL_TRIANGLES I try to render them. However, I get black spots in my model. I am enabling lights, giving each vertex a normal normalized according to the gradient of the surface in that point, checking the vertex order according to the right hand rule, but I can't remove these spots yet. Also, when I change the location of the viewer with gluLookAt using the arrow keys I observe that some polygons that had been rendered well now become black spots, and viceversa. What's wrong? I hope someone can help me.
The result I get looks like this:
http://www.angelfire.com/trek/xero0/poly.JPG
http://www.angelfire.com/trek/xero0/poly.JPG
could it have anything to do with not clearing the z-buffer properly, I know I had similar looking problems in directX
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement