Calculate ray from eye point to projection plane
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.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement