Black in back of opengl cube example,how do u get rid of it?

Just starting out? Need help? Post your questions and find answers here.
coderchris
New User
New User
Posts: 5
Joined: Sun May 23, 2004 11:06 pm

Black in back of opengl cube example,how do u get rid of it?

Post by coderchris »

In the opengl cube example, when the cube is at a cirtain angle, cirtain parts of the cube that are past a cirtain z-point will disapear...why is this and how can i get rid of it?

The disapearing im talking about is circled in red:

Image
DarkDragon
Addict
Addict
Posts: 2347
Joined: Mon Jun 02, 2003 9:16 am
Location: Germany
Contact:

Post by DarkDragon »

download the glwrapperlibrary at purearea.net and try this code before the main-loop:

Code: Select all

glMatrixMode_(#GL_PROJECTION)
glLoadIdentity_()
gluPerspective__(0.0, WindowWidth()/WindowHeight(), 0.001, 10.0) ;The last param is the seeing range.
glMatrixMode_(#GL_MODELVIEW)
bye,
Daniel
coderchris
New User
New User
Posts: 5
Joined: Sun May 23, 2004 11:06 pm

Post by coderchris »

Thanks a ton :D :D
Post Reply