[vtkusers] z- buffer to distances from camera

Bill Lorensen bill.lorensen at gmail.com
Wed May 29 10:14:12 EDT 2013


The code in vtkWorldPointPicker::Pick shows how to convert from zbuffer
values to world values.



On Wed, May 29, 2013 at 9:59 AM, Umer Rafi <umer.rafi at rwth-aachen.de> wrote:

> Hi Everyone,
>
>   I am new to VTK and rendering. I have a rendered depth map from VTK
> (file attached). What I want is to get the distance of each pixel in this
> depth map from camera. Can any body tell me how to convert z-buffer values
> to actual distances from camera. I will really appreciate any help and a
> sample code snippet to get me started.
> Thanks in  advance.
>
> Regards
> Umer
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>


-- 
Unpaid intern in BillsBasement at noware dot com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130529/0f23959a/attachment.htm>


More information about the vtkusers mailing list