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?
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.