Archived

This topic is now archived and is closed to further replies.

Darzin

Direct3D User Input

Recommended Posts

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

Share this post


Link to post
Share on other sites
Hi,

I''m using DirectX 7 (yep, I don''t like using newest MS Versions) in Immediate Mode, so I have to go ''by hand'' without the nice high-level''s of RM.

Share this post


Link to post
Share on other sites