Sign in to follow this  

Moving a 3D object in screen space

Recommended Posts

Basically you'll need the object's position to go from model space to world space, from world space to camera space, from camera space to screen space and then reverse the order after you've shifted the screen space coordinate by 50 to get the new position. If you are using using DirectX or OpenGL there are built in functions for this. For DirectX these would be D3DXVec3Project and D3DXVec3Unproject, don't know the OpenGL function names.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this