View Full Version : Mouse coord to glScene coord
07-20-2002, 11:58 AM
Catching the mouse coordinate and show them with a label i easy. But what if one want the glscene coordinates to label with instead.
Is there some way to transform from screen coordinates to glScene coordinates.
07-20-2002, 01:15 PM
There's a function in the GLU library that converts 2D screen coords to 3D scene coords. It is : gluUnProject. I've never used it, but a search on this board will certainly be fruitful. You could also look for help about gluUnProject in the MSDN collection or on this site. Here's a link I've found by searching for gluUnProject at the opengl.org homepage :
Hope this helps
Powered by vBulletin® Version 4.2.3 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.