What is in DX9 that is similar to Selection in OpenGL
I just start to trun from OpenGL to DirectX. I'm writing a program that requires user to select 3D objects by mouse clicking. In OpenGL this is easily done by Selection mechanism. So what is the best way to achieve the similar effect in DirectX 9
In the Microsoft DirectX SDK there is a sample application that has a rotating Tiger. You hover your mouse over the tiger's polygons and it highlights them etc. I forget the function's name - its been too many years since I've touched it but if you open up that application's provided source code you will find it.
Remember that all this functionality is entirely done by the CPU, not by the GPU. There are ways to get the GPU to do it, but it's no better (and in many ways worse) than using the CPU to mathematically cast a ray through a mesh. So it really has very little to do with D3D or OGL - it's just maths.
What is in DX9 that is similar to Selection in OpenGL
What is in DX9 that is similar to Selection in OpenGL
Nicole3288
M. Nicholas
Vikas Hiran