[vtkusers] gradient background direction
Florian Bruckner
e0425375 at gmail.com
Sun Sep 4 07:40:35 EDT 2011
no, because i also want to set the direction if the gradient. I want
to use the gradient to make different renderers distinguishable. If i
only have a vertical gradient i cannot distiguish a renderer from its
right / left neighbor.
the only solution that i found is directly change the OpenGl command
that actually draws the gradient (i have already sent this to the
developers list!).
But someone of you has a better solution without changing the vtk
code, please let me know.
thanks
FloB
On Sun, Sep 4, 2011 at 12:00 PM, Nelson <gnjoseph at gmail.com> wrote:
> Hope the following would help.
>
> vtkSmartPointer<vtkRenderer> ren = vtkSmartPointer<vtkRenderer>::New();
> // Mapper
> // Actor
> ren->GradientBackgroundOn();
> ren->SetBackground( <your first color> );
> ren->SetBackground2( <your second color> );
> ren->SetGradientBackground( true );
>
> -----
> Regards,
> Nelson
> --
> View this message in context: http://vtk.1045678.n5.nabble.com/gradient-background-direction-tp4737418p4767277.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> 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
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
More information about the vtkusers
mailing list