Direct3D User Input

Started by
1 comment, last by Darzin 22 years, 10 months ago
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
Advertisement
The direct x 8.0 "Pick Poly" example has all the information you need.
Joseph FernaldSoftware EngineerRed Storm Entertainment.------------------------The opinions expressed are that of the person postingand not that of Red Storm Entertainment.
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.

This topic is closed to new replies.

Advertisement