DJKAOS
06-04-2001, 11:30 AM
Hi, I have a Sphere that I created with
glutSolidSphere, and on that sphere there is some cyllinders that I put on it, however when I rotate the entire object the Cylinders show up at all times, even when they should be "behind" the sphere, you can see them through the sphere...How do I stop it from doing this?
I tried
glEnable(GL_CULLING);
glCullFace(GL_BACK);
and that didn't seem to do anything..
Thanks for any help.
glutSolidSphere, and on that sphere there is some cyllinders that I put on it, however when I rotate the entire object the Cylinders show up at all times, even when they should be "behind" the sphere, you can see them through the sphere...How do I stop it from doing this?
I tried
glEnable(GL_CULLING);
glCullFace(GL_BACK);
and that didn't seem to do anything..
Thanks for any help.