Thanks, Beau. I tried to play with FFMPEG, but with no success. I am using MSVC, and unfortunately FFMPEG doesn't support it, so I couldn't get the library installed. My project requires automated movie generation. That's why I am struggling to get everything under control in my code. :(
<br><br>Janny<br><br><div><span class="gmail_quote">On 5/29/07, <b class="gmail_sendername">Beau Sapach</b> &lt;<a href="mailto:beau.sapach@ualberta.ca">beau.sapach@ualberta.ca</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">










<div link="blue" vlink="purple" lang="EN-US">

<div>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">I think I had a similar problem, not the
size issue but the single, static image issue.&nbsp; Try calling Modified() on
vtkWindowToImageFilter before you call Update().&nbsp; As for frame rate I don't
know how to set that with vtk's classes, I suggest you look at FFMPEG, it
can be built into VTK but I've had little luck doing so.&nbsp; Currently
I write out image files and have my application call the ffmpeg executable to
encode the images as a movie, using ffmpeg command line options you can control
framerate.</span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">&nbsp;</span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Beau</span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">&nbsp;</span></font></p>

<div>

<div style="text-align: center;" align="center"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">

<hr align="center" size="2" width="100%">

</span></font></div>

<p><b><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma; font-weight: bold;">From:</span></font></b><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma;"> vtkusers-bounces+beau.sapach=
<a href="mailto:ualberta.ca@vtk.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">ualberta.ca@vtk.org</a>
[mailto:<a href="mailto:vtkusers-bounces+beau.sapach=ualberta.ca@vtk.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">vtkusers-bounces+beau.sapach=ualberta.ca@vtk.org</a>] <b><span style="font-weight: bold;">
On Behalf Of </span></b>Janny Dong<br>
<b><span style="font-weight: bold;">Sent:</span></b> Tuesday, May 29, 2007 8:24
AM<br>
<b><span style="font-weight: bold;">To:</span></b> vtkusers<br>
<b><span style="font-weight: bold;">Subject:</span></b> [vtkusers] How to write
AVI files properly, Please Help</span></font></p>

</div><div><span class="e" id="q_112d867597709794_1">

<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;">&nbsp;</span></font></p>

<p style="margin-bottom: 12pt;"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">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;</span></font></p>

</span></div></div>

</div>


</blockquote></div><br>