[vtkusers] Build depth map of a 3D model

David E DeMarle dave.demarle at kitware.com
Mon May 7 10:05:13 EDT 2012


I think you will find vtkRenderWindow::GetZBufferData() helpful.

http://www.vtk.org/doc/nightly/html/classvtkRenderWindow.html#ade6ec79f06dc182164962b88ca1d646e

David E DeMarle
Kitware, Inc.
R&D Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909

On Sun, May 6, 2012 at 7:51 AM, Wenlong <scc.wwl at gmail.com> wrote:
> Deal all,
>
> I'm trying to build depth map of my 3D model. Ideally, I want to build a
> depth map with a translucent geometry where the pixel become darker as it's
> further from the camera and brighter as it's closer.
>
> Does vtk provide any methods to achieve this? Or there is any examples I can
> follow?
>
> Many thanks in advance. I look forward to hearing from you.
>
> All bests
> Wenlong
>
> --
> View this message in context: http://vtk.1045678.n5.nabble.com/Build-depth-map-of-a-3D-model-tp5689116.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> 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



More information about the vtkusers mailing list