I’m searching for a way to read a pixels color at the mousepoint. In OpenGL it was done by calling the function “glReadPixels” after drawing the scene (or parts of it). I want to make a simple color picking routine in the background, for identifing a shapes / lines in 3D Space.
So, is there any equivalent method/function/suggestion for doing the same in SharpDX (DirectX10 / DirectX11) ?
This is perfectly possible with Direct3D11: simply follow these steps:
There is plenty of discussion about this topic around the net (for example: “Reading one pixel from texture to CPU in DX11“)