Retrieve the coordinates of the *occluding* (closest/drawn) pixels during 3D overlap, using OpenGL?
- by Big Rich
Hi,
Sorry if the question is not worded well, I'm a new to both 3D and OpenGL.
How could I go about obtaining the 3D coordinates of the occluding object, at the point where occlusion is happening (i.e. the 'intersection' of the object in front/closest to the screen)?
Just to offer a [very] rudimentary, visual, example, if you were to form an index-finger cross, with your right hand closest to your face, I'd like to know the coordinates of the part of your right finger which obscures the other finger (obviously back within the OpenGL context - no jokers ;-) ).
If there is a way to find out both about the occluder (hider) and the occluded (hidden) objects in OpenGL, then that would be of great use, also.
Cheers
Rich