Depth buffer and Display co-ordinates
Damini Dey
ddey at irus.rri.on.ca
Fri Mar 24 11:35:24 EST 2000
Hi,
I am trying to compare the distance of a PolyData point from the
camera to the corresponding
depth buffer value. I convert the world co-ordinates of the point to
Display co-ordinates.
However, I have a problem - the depth buffer values range from 0 to 1
(they are read
from the OpenGL render window with glReadPixels) and do not match the
Display co-ordinates.
How can I convert the depth buffer values to Display co-ordinates ? I
tried simple
scaling using the camera clipping range but it does not work correctly.
Has anyone
solved this problem before ?
Thanks,
Damini.
--------------------------------------------------------------------
This is the private VTK discussion list. Please keep messages on-topic.
Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
<majordomo at public.kitware.com>. For help, send message body containing
"info vtkusers" to the same address.
--------------------------------------------------------------------
More information about the vtkusers
mailing list