I'm not 100%, but I believe the proper procedure is to call aviWriter->Start, then do the screen updates. With every update call RenderWindow.Render & WindowToImageFilter.Update, then aviWriter->Write. At the very end of the entire sequence, do aviWRiter->End.
<br><br><div><span class="gmail_quote">On 2/28/06, <b class="gmail_sendername">Rosario Varriale</b> <<a href="mailto:rosario.varriale@esaote.com">rosario.varriale@esaote.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>Hi,<br>I'm trying to use vtkAVIWriter to save an animation of a volume rendering.<br>I use vtkWindowToImageFilter.<br>Inside a loop I rotate the vtkRenderer Camera, call vtkRenderWindow.Render<br>and than vtkAVIWriter.Write
method.<br>What I get is a single frame avi file. Anyone has tried something similar?<br>Any suggestion?<br><br>Thanks,<br>Rosario.<br><br><br>====<br>(Embedded image moved to file: pic12316.jpg)<br>Rosario Varriale<br>Software Engineer
<br>ESAOTE S.p.A. - R&S Napoli<br><br>CONFIDENTIALITY NOTICE<br>-----------------------------------------------------------<br>The materials in this electronic mail transmission<br>(including all attachments) are private and confidential
<br>and are the property of Esaote SpA.<br>Unauthorized disclosure, copying, distribution,<br>or the taking of any action in reliance on the contents<br>of this material is strictly prohibited.<br>Please notify the sender if you have received this in error.
<br><br>Le informazioni contenute in questo messaggio di<br>posta elettronica e relativi allegati sono proprietà di<br>Esaote SpA e sono riservate;<br>ne é vietata la diffusione in qualunque modo eseguita.<br>Qualora Lei non fosse la persona a cui il presente
<br>messaggio è destinato, La invitiamo ad eliminarlo e<br>ad informare colui che lo ha inviato.<br>-----------------------------------------------------------<br><br>_______________________________________________<br>This is the private VTK discussion list.
<br>Please keep messages on-topic. Check the FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a><br>Follow this link to subscribe/unsubscribe:<br><a href="http://www.vtk.org/mailman/listinfo/vtkusers">
http://www.vtk.org/mailman/listinfo/vtkusers</a><br><br><br><br></blockquote></div><br><br clear="all"><br>-- <br>Randall Hand<br>Visualization Scientist, <br>ERDC-MSRC Vicksburg, MS<br>Homepage: <a href="http://www.yeraze.com">
http://www.yeraze.com</a>