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 <[email protected]> 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 >
_______________________________________________ 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
