GluMouseCallback HELP


I need to get input from my mouse but the problem is GluMouseCallback returns the mouse coordinates in relation to Windows - window. I need to get the coordinates in terms of my landscape (in the window). Does anybody have any ideas how to do this? Is the only way for me to create another object and have the mouse control it (while keeping the behaviour of a mouse… ie… the pointer can be seen as you’re moving the mouse around). Please help! Thanks.


Check out gluUnProject. It should get you where you want to go.

Later, Guy

Awesome!.. thanks!