[vtkusers] genarating movies from VTK views
dgobbi at irus.rri.on.ca
Fri Mar 9 12:14:41 EST 2001
I have a class called vtkWindowVideoSource that will automatically
capture n frames/second from any vtkWindow and store the frames in
memory. The frames can be accessed (either one at a time or en masse)
from vtkWindowVideoSource output and written to files using vtkPNMWriter.
Then I use an mpeg encoder on the files. The class is still a little
buggy, but you can try it out if you want.
David Gobbi, MSc dgobbi at irus.rri.on.ca
Advanced Imaging Research Group
Robarts Research Institute, University of Western Ontario
On Fri, 9 Mar 2001, Oliver Fleig wrote:
> I would like to generate a movie (mpg?) from a vtk scene. The only
> solution I see would be dividing the camera trajectory into small steps
> and grab the RenderWindow using SaveImageAsPPM. And then trying to make
> an mpeg from the resulting images.
> Has anyboy a nicer way to do that??
More information about the vtkusers