Jump to content
  • Advertisement
Sign in to follow this  
BeguiledFoil

OpenGL Odd black circle on glutSolidSpheres

This topic is 3992 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, haven't been able to find anything via the search: I've got a simple opengl windows app which draws a couple of spheres (drawn using glutSolidSphere routine). When I do the following : glMatrixMode (GL_PROJECTION); glLoadIdentity (); glFrustum (-2.0, 2.0, -2.0, 2.0, 1.5, 50.0); and recompile/run the program everything works fine EXCEPT there are two odd black circles on my spheres. <can't seem to post a pic, will add a link if I can't figure this out> Basically I'm wondering if there's an obvious reason that switching to projection mode/using my specified frustum would cause those circles to appear. When I move the sphere(s) to the far left side they turn from black to white, and it seems to be controlled by the lighting (one light in the scene). When they go to the right side it stays black. Any help appreciated, if its not obvious don't feel bad about just moving on :)

Share this post


Link to post
Share on other sites
Advertisement
Hmm... if you change your background colour, does this colour appear in the "spots", or do they remain black? If they do change with the background colour, then perhaps (although this seems odd to me, given their placement) the spheres are too close to your near plane, or, conversely, your near plane is too far out.

Share this post


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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!