Sign in to follow this  

Calculate ray from eye point to projection plane

Recommended Posts

You can go by using the built-in D3DX function D3DXVec3Unproject. It gives you world coordinates(your desired mouse position in world space) from screen coordinates(mouse position). Then simply construct your ray from world space mouse position and the eye position.

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