Jump to content
  • Advertisement

Archived

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

SirTwist

Substitute for gluLookAt

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

Does anybody know how I can exchange gluLookAt() with standard gl code ? Well, surely anybody knows, but would you share this knowledge please ? Thing is, I don´t wanna use glu or glut in my programm and I am trying to build a camera class. Thanks in advance ! Twist

Share this post


Link to post
Share on other sites
Advertisement
Here''s the sourcecode to the gluLookAt function. Basically it does a few matrix calculations and then uses glMultMatrixd() and glTranslated() to transform the viewpoint.

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!