Jump to content
  • Advertisement
Sign in to follow this  
Mathy

Detect if a mesh is clicked?

This topic is 3054 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
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!