• Advertisement
Sign in to follow this  

Detect if a mesh is clicked?

This topic is 2878 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

I am using Managed DirectX to render a lot of "planets" in 3D, with the view angle put so that it looks like 2D. It is possible to zoom in the game though, to get a 3D effect. I would like a function that by a mouse X or Y coordinate can retrieve the clicked mesh in the rendered content. Is this possible? Or is there another approach that is? Thanks in advance.

Share this post


Link to post
Share on other sites
Advertisement
You should probably take a look at the 'picking' example in the DirectX SDK, if you're using Direct3D that is.

Share this post


Link to post
Share on other sites
I tried that, but I don't understand how it will work Managed DirectX. Any Managed DirectX examples on picking out there?

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement