# Objects disappear after Z-120[solved]

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

## Recommended Posts

Hey all. There is something I have recently noticed - when an object is moving on the Z axis - after it reaches a certain number (I think it is -120) the object disappears. Is there any way to increase this number to -200 or to any other number? Thanks in advance [Edited by - Yhonatan on June 25, 2008 3:59:07 PM]

##### Share on other sites
Although we could use more info, first thought is the far clipping plane. Try increasing the z_far distance. Found in the projection matrix.

##### Share on other sites
Quote:
 Original post by Mike nlAlthough we could use more info, first thought is the far clipping plane. Try increasing the z_far distance. Found in the projection matrix.

Thanks, I think that's it, but can you please give me some more information on how doing this? I was searching the web and didnt find anything

##### Share on other sites
i found out how!!!!!!1
thanks!

##### Share on other sites
glOrtho(left, right, bottom, top, zNear, zFar)
glOrtho(left, right, bottom, top, 1.0, 1000.0)

or if you are using Perspective projection

void gluPerspective(fovy, aspect, zNear, zFar)
gluPerspective(fovy, aspect, 1.0, 1000.0)

##### Share on other sites
Quote:
 Original post by MARS_999glOrtho(left, right, bottom, top, zNear, zFar)glOrtho(left, right, bottom, top, 1.0, 1000.0)or if you are using Perspective projectionvoid gluPerspective(fovy, aspect, zNear, zFar)gluPerspective(fovy, aspect, 1.0, 1000.0)

for some reason it didnt work

glMatrixMode( GL_PROJECTION );
gluPerspective( 45.0, ratio, 0.1, 11450.0 );

##### Share on other sites
there was something that changed my Matrix later on.
Sorry for the trouble guys and thanks for the help!

• ### What is your GameDev Story?

In 2019 we are celebrating 20 years of GameDev.net! Share your GameDev Story with us.

• 10
• 11
• 13
• 9
• 11
• ### Forum Statistics

• Total Topics
634089
• Total Posts
3015426
×