Archived

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

Determining mouse clicks in 3d

This topic is 6600 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Most 3d games uses a raycasting function that gets all the objects it hits and stores it in an array, but I dunno how to do that.
Sorry

Share this post


Link to post
Share on other sites
I have a 3d mesh (IM 7.0) that is serving as a ground layer in my game. The iso view is obtained by camera alteration. I've constructed it from a height map so I'm able to retain the "tile" aspect that made data storage/access easy in 2d. Now I'm trying to determine where in the mesh I'm clicking when using the mouse. I understand some of the 2d methods but unfortunately they don't seem to apply well since the rendered tile will often be altered by D3D IM for the obvious reasons. Any suggestions would be greatly appreciated and, as always, thanks in advance!

Share this post


Link to post
Share on other sites
there's a similar thread in the Graphics Programming and Theory section, titled as "Clickin in 3D space?"

Share this post


Link to post
Share on other sites