In c++ look at D3DXVec3Project and D3DXVec3Unproject
In managed, look at Vector3.Project or Unproject.
You supply these functions with the current viewport, and the world, view and projection matrices. The return value is the position in world or screen space.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.