[vtkusers] Z-buffer to Depth: formula

Atul Kumar sharmaatul11 at gmail.com
Wed Dec 7 13:15:51 EST 2011


Hi,
I am trying to find the depth at each pixel in the rendered window.
I have used 'GetZbufferData<http://vtk.org/doc/nightly/html/classvtkRenderWindow.html#ade6ec79f06dc182164962b88ca1d646e>
 ' function of 'vtkRenderWindow' class.
Now I wish to convert this data into real depth for each pixel of the
rendered window.
I am not sure what is the  formula for VTK to convert Zbuffer into actual
depth.

Please suggest if any of you have idea regarding that.

I will really appreciate your help.

Regards,
Atul
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20111208/eff5ff45/attachment.htm>


More information about the vtkusers mailing list