[vtkusers] How to let vtkCamera 'take a picture'

Shashwath T.R. trshash at gmail.com
Mon May 16 05:23:27 EDT 2011


Hi,

vtkCamera is really only a wrapper around the OpenGL viewport transform
matrix. It doesn't take pictures in the way that a real camera does...

If you want to save the image as seen by a particular camera, you can set
that up as the active camera in the renderer, and use vtkWindowToImageFilter
to grab the image from the render window. See CaptureImage in this Python
example:
http://public.kitware.com/cgi-bin/viewcvs.cgi/*checkout*/Examples/GUI/Python/ImagePlaneWidget.py?root=VTK&content-type=text/plain

Regards,
Shash

On Mon, May 16, 2011 at 2:28 PM, kitknow <philip.beelmann at gmail.com> wrote:

> Hi!
>
> i want to know wether it is possible to take a picture from the point of
> views of one or more vtkCameras.
> Does anyone have an idea?
>
> Best Regards
> Philip
>
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/How-to-let-vtkCamera-take-a-picture-tp4399778p4399778.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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110516/9aa6201b/attachment.htm>


More information about the vtkusers mailing list