[vtkusers] How to build depth map of a 3D model?

David Doria daviddoria at gmail.com
Wed May 9 08:23:04 EDT 2012


On Wed, May 9, 2012 at 8:20 AM, Bill Lorensen <bill.lorensen at gmail.com> wrote:
> vtkRenderWindow has methods
>  // Set/Get the zbuffer data from the frame buffer.
>  // (x,y) is any corner of the rectangle. (x2,y2) is its opposite corner on
>  // the diagonal.
>  virtual float *GetZbufferData(int x, int y, int x2, int y2) = 0;
>  virtual int GetZbufferData(int x, int y, int x2, int y2, float *z) = 0;
>  virtual int GetZbufferData(int x, int y, int x2, int y2,
>                             vtkFloatArray *z) = 0;
>

Wenlong - this would be a great addition to the VTK examples wiki.

David



More information about the vtkusers mailing list