Direct3D User Input
Greetz to everyone...
I just started programming (or try to) an RPG. The grafx i got to work using Direct3D.
My problem currently is:
How do i get the Object the player clicked in the main window?
My first idea of an approach is to get the projected vieport coordinate of the click and do the projection reverse to 3D-space and do an collision detection to the point along the z axis starting at the near clipping plane ''til hitting the first object.
Is there a simpler and/or less expensive way for getting these information ?
Thnx,
Marcus
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement