Detect if a mesh is clicked?
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.
You should probably take a look at the 'picking' example in the DirectX SDK, if you're using Direct3D that is.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement