Sign in to follow this  

basic gluPrespective question

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

Hi. In gluPrespective, does direction of camera should change near and far clip ?. e.g as shown below if camera is looking down -z axis, near clip could be -0.01 and -10.f, but when I rotate the camera so that its looking down +z axis, then should I change mNearClip and mFarClip to +0.01, and +10.0f; gluPerspective (mFovH, mAspectRatio, mNearClip, mFarClip); gluLookAt(eyePos.x, eyePos.y, eyePos.z, dir.x, dir.y, dir.z, upvec.x, upvec.y, upvec.z); Any help will be appreciated. Regards

Share this post


Link to post
Share on other sites
You should apply gluLookAt to your modelview matrix otherwise lighting will not look correct. Also, it effect glTexGen and other things.

Share this post


Link to post
Share on other sites

This topic is 3297 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this