[vtkusers] vtkAVIWriter with renderer gradient background shows distinct lines

Santosh Biradar scbiradar at gmail.com
Tue Nov 27 08:55:03 EST 2018


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://public.kitware.com/pipermail/vtkusers/attachments/20181127/21c52791/attachment.html>


More information about the vtkusers mailing list