[vtkusers] Coloring Cells/Points via scalars - i only get dark colors?

Daniel Zuidinga daniel.zuidinga at rwth-aachen.de
Wed Jan 16 09:35:45 EST 2008


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



More information about the vtkusers mailing list