[vtkusers] Mapping the Output of vtkImageImport onto a Geometry, RGB Files

Kuno Meyer meyerk at student.ethz.ch
Wed Sep 13 10:45:19 EDT 2000


hello everybody

actually I've found the solution by myself:

- first, set the data type of the vtkImageImport class:
     ii->SetDataScalarType(VTK_UNSIGNED_CHAR);
- second, after assigning the ImageImport object to a Texture object, call
    texture->MapColorScalarsThroughLookupTableOff();

The point is, that this texture mode works only in combination with
VTK_UNSIGNED_CHAR;

Greetings
Kuno





More information about the vtkusers mailing list