[vtkusers] Coloring Cells/Points via scalars - i only get dark colors?
Daniel Zuidinga
daniel.zuidinga at rwth-aachen.de
Wed Jan 16 10:20:21 EST 2008
i got the solution.
of course i have to multiplicate my COLORSURFACE values with 255 and
neither with 128 nor with 256(!)
Daniel Zuidinga wrote:
> Hello vtkUsers,
>
> i coloring my my Points on a surface with:
>
> surface.GetPointData().SetScalars(scalars);
>
> the Scalars are declared as vtkUnsignedCharArray:
>
> scalars = new vtkUnsignedCharArray();
> scalars.SetTuple3(l * w + k, COLORSURFACE[0]*128.0f,
> COLORSURFACE[1]*128.0f, COLORSURFACE[2]*128.0f);
>
> they include data between 0..128;
>
> now i get only dark colors. 128,128,128 doesn´t give me for example
> white.
>
> How can i use also lighter colors?
>
> Regards
> Daniel
> _______________________________________________
> This is the private VTK discussion list. Please keep messages
> on-topic. Check the 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