[vtkusers] vtkAVIWriter with renderer gradient background shows distinct lines

Cory Quammen cory.quammen at kitware.com
Tue Nov 27 09:01:14 EST 2018


Sounds like quantization/compression artifacts. You can try changing the
quality setting to reduce compression via vtkAVIWriter::SetQuality().

HTH,
Cory

On Tue, Nov 27, 2018 at 8:55 AM Santosh Biradar <scbiradar at gmail.com> wrote:

> I am trying to create a movie of an animation using vtkAVIWriter.
> 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.
>
> A code snippet of what I am doing:
>
> window_to_image = vtk.vtkWindowToImageFilter()
> window_to_image.SetInput(renWin.GetRenderWindow())
> window_to_image.SetInputBufferTypeToRGB()
> window_to_image.ReadFrontBufferOff()
>
> writer = vtk.vtkAVIWriter()
> writer.SetInputConnection(window_to_image.GetOutputPort())
>
> I am running python wrapper of VTK-6.3.0 on windows
>
> Thanks,
> Santosh
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> https://public.kitware.com/mailman/listinfo/vtkusers
>


-- 
Cory Quammen
Staff R&D Engineer
Kitware, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://public.kitware.com/pipermail/vtkusers/attachments/20181127/7d1a9b22/attachment.html>


More information about the vtkusers mailing list