Advertisement

Foreground/Background objects

Started by February 13, 2001 08:08 AM
0 comments, last by NasMan 23 years, 9 months ago
Hello, I''m new to OpenGL and I''m really getting into learning it. I was wondering if anyone could tell me... I''m writing a little OGL app that has a sun and planets revolving around it. I''m trying to get the planets to dissapear when around the backside of the sun. I can''t figure out how it''s done in OGL. I looked at the lesson31. This lesson shows what I''m talking about. The balls dissapear behind the posts...but I can''t figure out how it''s done. Can someone please enlighten me? Thanks NasMan
glEnable(GL_DEPTH_TEST);
glDepthFunc(GL_LEQUAL);

http://members.xoom.com/myBollux

This topic is closed to new replies.

Advertisement