Jump to content
  • Advertisement
Sign in to follow this  
bargasteh

Mouse, Camera and Glu

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

Hello I would like to use Mouse to navigate in a room, I am using Glaux library for windowing and etc, I would like to know if its possible to use Glu or Glaux to use mouse and control camera with it? Thank you so much

Share this post


Link to post
Share on other sites
Advertisement

ciao,

of course, this is possible. check out nehe.gamede.net, gametutorials.com or ultimategameprogramming.com; these sites have good tutorials on how to do this.

hope this helps...

Share this post


Link to post
Share on other sites
Ok I could figure out how to use Mouse in my scene.
I can find the x and y in my screen. now how can i calculate the Pitch and Heading of my camerca based on that x,y ???

Thank you in advance

Share this post


Link to post
Share on other sites
First calculate the Vector X and Vector Y then theta will equal
theta=tan-1(Vy/Vx);
tan-1 is inverse of tan

i hope i am not wrong :)
bye

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!