Hi,

If you want to use the depth map to improve some rendering, I would 
recommend trying the multipass framework.
You can have a look in the Example/Plugin/RenderPassViews directory in the 
sources, or you can have some higher level description at 
http://www.vtk.org/Wiki/VTK/MultiPass_Rendering

Stephane

  
 
Stephane PLOIX
Pilote Opérationnel - Visualisation scientifique
EDF - R&D
SINETICS
1, Av du Général de Gaulle
92140 Clamart
 
[email protected]
Tél. : +33 (0) 1 47 65 51 10
  
Un geste simple pour l'environnement, n'imprimez ce message que si vous en 
avez l'utilité.




[email protected] 
Envoyé par : [email protected]
07/12/2010 14:21

A
[email protected]
cc
[email protected]
Objet
Re: [Paraview] How to generate a depth map from a ParaView scene






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




Ce message et toutes les pièces jointes (ci-après le 'Message') sont établis à 
l'intention exclusive des destinataires et les informations qui y figurent sont 
strictement confidentielles. Toute utilisation de ce Message non conforme à sa 
destination, toute diffusion ou toute publication totale ou partielle, est 
interdite sauf autorisation expresse.

Si vous n'êtes pas le destinataire de ce Message, il vous est interdit de le 
copier, de le faire suivre, de le divulguer ou d'en utiliser tout ou partie. Si 
vous avez reçu ce Message par erreur, merci de le supprimer de votre système, 
ainsi que toutes ses copies, et de n'en garder aucune trace sur quelque support 
que ce soit. Nous vous remercions également d'en avertir immédiatement 
l'expéditeur par retour du message.

Il est impossible de garantir que les communications par messagerie 
électronique arrivent en temps utile, sont sécurisées ou dénuées de toute 
erreur ou virus.
____________________________________________________

This message and any attachments (the 'Message') are intended solely for the 
addressees. The information contained in this Message is confidential. Any use 
of information contained in this Message not in accord with its purpose, any 
dissemination or disclosure, either whole or partial, is prohibited except 
formal approval.

If you are not the addressee, you may not copy, forward, disclose or use any 
part of it. If you have received this message in error, please delete it and 
all copies from your system and notify the sender immediately by return message.

E-mail communication cannot be guaranteed to be timely secure, error or 
virus-free.

<<image/gif>>

<<image/gif>>

_______________________________________________
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

Reply via email to