I posted a similar question but didn&#39;t get any answer, probably I didn&#39;t make it clear enough.<br><br>I am coding a C++ program to visualize my data and generate movie automatically. I put vtkAVIWriter in a loop to get a movie out of the rendering. It did get an avi file, but not the one I expected. I have two questions about it.
<br><br>(1) The size of the movie file is 18MB, but it has only 50 frames. Moreover, it is only 3 second long. Can I compress the movie file with vtkAVIWriter? How can I control the speed of the movie, like specifying number of frames per second?
<br><br>(2) I found the avi file displayed only one frame like a static image. However, I did update the data when rendering each frame. The data rendering part in my program is like<br>data points---&gt;vtkPolyData---&gt;vtkDelaunay2D---&gt;vktPolyDataMapper---&gt;vtkRenderer---&gt;vtkWin32OpenGLRenderWindow-&gt;SetOffScreenRendering(1)---&gt;vtkWindowToImageFilter---&gt;vtkAVIWriter
<br><br>I have something like: PolyDataMapper-&gt;update(); WindowToImage-&gt;update() in my code.&nbsp; Did I call update() in a wrong way or should I call it in different parts of the code?<br><br>Any suggestions will be greatly appreciated. 
<br><br>Janny<br>&nbsp;<br><br>