[vtkusers] vtkAVIWriter + animation problem

Markus Henningsson marhe346 at student.liu.se
Mon Aug 20 09:04:01 EDT 2007


Hi,
I'm trying to do an animation (simple rotation), and then write it using vtkAVIWriter, but keep failing for some reason. I guess the problem is that the generated .avi file is completely black. The code for that part looks like this:
vtkWindowToImageFilter w2i
vtkAVIWriter aviWrite
w2i SetInput renWin
aviWrite SetInputConnection [w2i GetOutputPort]
aviWrite SetFileName test.avi
aviWrite Start
aviWrite Write
for {set i 0} {$i <= 100} {incr i} {
volume RotateZ 1
renWin Render
aviWrite SetInputConnection [w2i GetOutputPort]
aviWrite Write
}
aviWrite End
So does anyone know why I only get a completly black video here? By the way my vtkActor is a MIPed object, I don't know if that is of any relevance. 
Thanks,
Markus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20070820/5ce8ac68/attachment.htm>


More information about the vtkusers mailing list