<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><P>Hi. I 'm trying to make a 3D animation (loading vertex data from files and rendering them), and I have some problems: I must either make an animated gif (which VTK doesn't seem to support - does it ?) or make an AVI, because the real time animation is too slow. So I started trying the 2nd solution and I have some problems:</P><P></P><P>- At first I got linker errors when I constructed a "vtkAVIWriter" object. I 've finally managed to work this out by importing the needed Windows library (I post it here just in case someone has the same problem again):</P><P> #pragma comment(lib,"Vfw32.lib") // that's all</P><P></P><P>- Now I have written this code:</P><P></P><P> vtkWindowToImageFilter *wtif = vtkWindowToImageFilter::New();<BR> wtif->SetInput(renWin);<BR><BR> vtkAVIWriter *avi =
vtkAVIWriter::New();<BR> avi->SetInputConnection(wtif->GetOutputPort());<BR> avi->SetFileName(str);<BR><BR> avi->Start();<BR> CStringA txt;<BR> for(int i=0; i<m_cList.GetItemCount(); i++)<BR> {<BR>         LoadAndDisplayFrame((LPCTSTR)m_cList.GetItemText(i, 0)); // Load and render vertex data from file<BR>//                 wtif->SetInput(renWin);<BR>//                 avi->SetInputConnection(wtif->GetOutputPort());<BR>//                 avi->Update();<BR>         avi->Write();<BR> }<BR> avi->End();<BR> wtif->Delete();<BR> avi->Delete();<BR><BR></P><P>This produes an AVI but it always shows the same animation frame (nothing changes).</P><P>Does anyone know what should I do to make right ?</P><P></P></td></tr></table><br>
<hr size=1><font size=-1 face=Arial>
Χρησιμοποιείτε Yahoo!<br>
Βαρεθήκατε τα ενοχλητικά μηνύ ματα (spam); Το Yahoo! Mail διαθέτει την καλύτερη δυνατή προστασία κατά των ενοχλητικών μηνυμάτων <br>
<a href="http://login.yahoo.com/config/mail?.intl=gr">http://login.yahoo.com/config/mail?.intl=gr</a> </font>