[gameprogrammer] screen coordinates to object coordinates.
- From: ashwin.krishnakumar@xxxxxxxxxxx
- To: gameprogrammer@xxxxxxxxxxxxx
- Date: Mon, 14 Jun 2004 09:13:40 +0530
Hi,
I have only one object which is rendered.
Now when a mouse down occurs I need to find out where exactly in object
coordinates the mouse click has happened.
My problem is to get the z coordinates... I heard in opengl there is a
method glReadPixel to get the z coordinate from the
z buffer... (after that I think unproject() will give the coresponding
object coordinate)
Is there some thing similar in DirectX
Regards,
Ashwin
---------------------
To unsubscribe go to http://gameprogrammer.com/mailinglist.html
- Follow-Ups:
- [gameprogrammer] Re: screen coordinates to object coordinates.
- From: Andy Zivkovic
Other related posts:
- » [gameprogrammer] screen coordinates to object coordinates.
- » [gameprogrammer] Re: screen coordinates to object coordinates.
- [gameprogrammer] Re: screen coordinates to object coordinates.
- From: Andy Zivkovic