Advertisement Jump to content
Sign in to follow this  

Black Spots

This topic is 4908 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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.

Share this post

Link to post
Share on other sites
Guest Anonymous Poster
That will work for a simple convex models (a sphere) but may break for complex models.

Check if you are enabling the depth buffer

and if your window has depth buffer support.

-- Steven Ashley

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!