Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Guy

Simple question about tutorials.

This topic is 6927 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

I''ve only been trying out 3d for a couple days now As I back away from objects (ie moving around in my own world), as they reach a certain distance, they just disappear into black. How to stop this?

Share this post


Link to post
Share on other sites
Advertisement
The objects are clipped against the far clipping plane. As I understand it you cannot turn off this clipping, but you can move the plane further away by setting a larger distance when calling glFrustum(), or any other function that sets up the projection matrix (glOrtho(), gluPerspective(), etc).



- WitchLord

(Removed gluLookAt() for the reason mentioned below)

Edited by - WitchLord on 4/30/00 9:56:19 AM

Share this post


Link to post
Share on other sites
(gluLookAt has nothing to do with the far clipping plane.)

Furthermore you won''t have to worry about the far clipping plane because when you have a full 3d scene normally the scene has so many objects that you can''t "see" the far clipping plane.

----------
Drago

Share this post


Link to post
Share on other sites
Thanks for correcting me. I don''t know how that got in there. gluLookAt() is for setting up the view matrix not the projection matrix.

Sorry about that.

- WitchLord

Share this post


Link to post
Share on other sites
to ANSWER your question thou, find THIS line.

gluPerspective(45.0f,(GLfloat)width/(GLfloat)height,0.1f,100.0f);

The 0.1f, 100.0f is the starting point and ending point for how deep we can draw into the screen, if you would like to push that back, change this to 200.0f that will double the depth of how far u can draw

Axehandler

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

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

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!