<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;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&#8217;t
know how to set that with vtk&#8217;s classes, I suggest you look at FFMPEG, it
can be built into VTK but I&#8217;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.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Beau<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

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

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

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> vtkusers-bounces+beau.sapach=ualberta.ca@vtk.org
[mailto:vtkusers-bounces+beau.sapach=ualberta.ca@vtk.org] <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><o:p></o:p></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>I posted a similar
question but didn't get any answer, probably I didn'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;<o:p></o:p></span></font></p>

</div>

</body>

</html>