Detect if a mesh is clicked?

Started by
1 comment, last by Mathy 14 years, 1 month ago
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.
Advertisement
You should probably take a look at the 'picking' example in the DirectX SDK, if you're using Direct3D that is.
I tried that, but I don't understand how it will work Managed DirectX. Any Managed DirectX examples on picking out there?

This topic is closed to new replies.

Advertisement