Possible Duplicate:
How to convert a 3D point into 2D perspective projection?
I am able to get the X Y Z coordinates of a Object in a 3D game. What I want to do is be able to set the cursor position to this location on the window. I am already familiar with mouse movements and do not need information about that. Thanks for any help provided on this subject . I am very clueless on how to accomplish this goal...
Ex: Say the Objects 3D position is (X,Y,Z) 145.435, 1765.74, 14.7 and the window size is 800x600 how would I be able to find out where to set the mouse coordinates on screen to match up to the object in the 3D plane.