[vtkusers] rendering to a file and making movies

Amy Squillacote amy.squillacote at kitware.com
Thu Aug 18 08:49:57 EDT 2005


To save the contents of the render window to a file, use a 
vtkWindowToImageFilter followed by whatever writer you want to use 
(vtkJPEGWriter, vtkTIFFWriter, etc.).

The ability to write movies has very recently been added to the 
development version of VTK. The classes to do this are subclasses of 
vtkGenericMovieWriter 
(http://www.vtk.org/doc/nightly/html/classvtkGenericMovieWriter.html. 
There is a C++ test 
(http://public.kitware.com/cgi-bin/viewcvs.cgi/*checkout*/IO/Testing/Cxx/TestMovieWriter.cxx?root=VTK&content-type=text/plain) 
to demonstrate how to use the movie writer.

- Amy

At 06:55 PM 8/17/2005, Jesse Corrington wrote:
>How can i make vtk render to a file, like a jpeg or tiff, instead of 
>to a window.  Also can vtk create movies of a volume rotating.
>
>_________________________________________________________________
>Don't just search. Find. Check out the new MSN Search! 
>http://search.msn.click-url.com/go/onm00200636ave/direct/01/
>
>_______________________________________________
>This is the private VTK discussion list. Please keep messages 
>on-topic. Check the 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