[vtkusers] questions on render window #2

Jeff Baumes jeff.baumes at kitware.com
Tue Aug 4 08:54:27 EDT 2009


2009/8/4 Konstantinos Iatridis <kiatri at itech-soft.com.fr>

> And I repeat once more my other question: does anyone know how to render a
> gradient background on a vtk render window?
>

Top-to-bottom gradients are supported. Not sure which VTK release(s) it is
in, but at least 5.4.
vtkRenderer* ren = vtkRenderer::New();

ren->GradientBackgroundOn()ren->SetBackground(0,0,0)
ren->SetBackground2(1,1,1)

Jeff
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20090804/e9060837/attachment.htm>


More information about the vtkusers mailing list