Mouse, Camera and Glu
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
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...
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
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
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
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
Popular Topics
Advertisement