[vtkusers] vtkLODActor->GetProperty()->SetColor() does not maintain the input color?

Hong Yi hongyi at renci.org
Fri Mar 2 11:26:40 EST 2012


A little bit more experimental results on this:

Looks like the orange color (255, 128, 0) changes to yellow (255, 255, 0) (with green component bumped up to 255), the bluish color (0, 128, 255) changes to cyan (0, 255, 255) (again with green component bumped up to 255). The red color (255, 0, 0) and the pick color (255, 0, 255) will be preserved though. Hopefully this bit of experiment observation could provide some kind of clues on this...

Thanks,

Hong

-----Original Message-----
From: vtkusers-bounces at vtk.org [mailto:vtkusers-bounces at vtk.org] On Behalf Of Hong Yi
Sent: Friday, March 02, 2012 11:12 AM
To: David E DeMarle
Cc: VTK Users
Subject: Re: [vtkusers] vtkLODActor->GetProperty()->SetColor() does not maintain the input color?

See attached image with opacity set to 1.0. There are still the same kind of color mismatch (orange->yellow)...

Looking forward to further insight on this.

Thanks,

Hong

-----Original Message-----
From: David E DeMarle [mailto:dave.demarle at kitware.com] 
Sent: Friday, March 02, 2012 11:05 AM
To: Hong Yi
Cc: Jothybasu Selvaraj; VTK Users
Subject: Re: [vtkusers] vtkLODActor->GetProperty()->SetColor() does not maintain the input color?

On Fri, Mar 2, 2012 at 10:56 AM, Hong Yi <hongyi at renci.org> wrote:
> Actor->GetProperty()->SetOpacity(0.6);

I'ld think this should just be making things things darker for the most part in this scene, but what happens if you change to 1.0 to turn of translucency?



More information about the vtkusers mailing list