<div dir="ltr">I am trying to create a movie of an animation using vtkAVIWriter.<div>The renderer has a gradient background. The .avi file created has distinct lines/bands in the background because of the gradient. Is it possible to get rid of these lines. I notice that if I use a vtkBMPWriter and write an image, the image seems fine without any such lines/bands.</div><div><br></div><div>A code snippet of what I am doing:</div><div><br></div><div><pre style="color:rgb(0,0,0);font-family:"Courier New";font-size:9pt">window_to_image = vtk.vtkWindowToImageFilter()<br>window_to_image.SetInput(renWin.GetRenderWindow())<br>window_to_image.SetInputBufferTypeToRGB()<br>window_to_image.ReadFrontBufferOff()<br><br>writer = vtk.vtkAVIWriter()<br>writer.SetInputConnection(window_to_image.GetOutputPort())</pre><pre style="color:rgb(0,0,0);font-family:"Courier New";font-size:9pt"><span style="color:rgb(34,34,34);font-family:Arial,Helvetica,sans-serif;font-size:small;white-space:normal">I am running python wrapper of VTK-6.3.0 on windows</span>
<div style="color:rgb(34,34,34);font-family:Arial,Helvetica,sans-serif;font-size:small;white-space:normal">Thanks,</div><div style="color:rgb(34,34,34);font-family:Arial,Helvetica,sans-serif;font-size:small;white-space:normal">Santosh</div><div style="color:rgb(34,34,34);font-family:Arial,Helvetica,sans-serif;font-size:small;white-space:normal"><br class="gmail-Apple-interchange-newline"></div></pre></div></div>