[Paraview] How to generate a depth map from a ParaView scene

David E DeMarle dave.demarle at kitware.com
Tue Dec 7 08:20:58 EST 2010


I'ld try this path:

from the python shell get a hold of the current render view proxy
http://www.paraview.org/ParaQ/Doc/Nightly/html/classvtkSMRenderViewProxy.html

from that get a hold of the vtkRenderWindow
http://www.vtk.org/doc/nightly/html/classvtkRenderWindow.html

on that call GetZBufferData

David E DeMarle
Kitware, Inc.
R&D Engineer
28 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-371-3971 x109


On Tue, Dec 7, 2010 at 4:07 AM, Marc Baaden <baaden at smplinux.de> wrote:

>
> Hi,
>
> We are experimenting with some 3D visualization of data/paraview scenes,
> where we need
> both an image of the scene and the corresponding depthmap (or z-buffer;
> grayscale image
> where each pixel color corresponds to the distance from the camera
> viewpoint).
>
> I was wondering how to achieve such a depthmap within paraview (from some
> 3D data such
> as a surface or a polygonal object). I guess such a filter does not exist
> right out of
> the box?
>
> Probably the elevation filter could be used for this, but I was wondering
> how I could get
> it to use the right axis (perpendicular to the screen from the camera
> position)?
> Thanks in advance for any hints.
>
> Kind regards,
> Marc Baaden
>
> _______________________________________________
> 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 ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20101207/e20711d6/attachment.htm>


More information about the ParaView mailing list