rifter1818 Posted January 14, 2004 Posted January 14, 2004 I need help getting the Screen Position of an object in a 3d space. Anyone know how this could be done? Quote
halobear333 Posted January 14, 2004 Posted January 14, 2004 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. Quote
rifter1818 Posted January 14, 2004 Author Posted January 14, 2004 K that function works, Except It returns a .z value, and is a bit off if i just use x and y, i need the just x and y coordinants..... Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.