Mouse, Camera and Glu

Started by
2 comments, last by ff8 18 years, 10 months ago
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
OpenGl + C++
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...

Alex BakerComputer science is dealing with computers as much as astronomy is dealing with telescopes.
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
OpenGl + C++
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

This topic is closed to new replies.

Advertisement