<div dir="ltr">Sounds like quantization/compression artifacts. You can try changing the quality setting to reduce compression via vtkAVIWriter::SetQuality().<div><br></div><div>HTH,</div><div>Cory</div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Nov 27, 2018 at 8:55 AM Santosh Biradar <<a href="mailto:scbiradar@gmail.com">scbiradar@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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="m_-748418222874687551gmail-Apple-interchange-newline"></div></pre></div></div>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">https://public.kitware.com/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">Cory Quammen<br>Staff R&D Engineer<br>Kitware, Inc.</div>