[vtkusers] Where are all the colors gone ?
    Jean M. Favre 
    jfavre at cscs.ch
       
    Fri May  9 04:38:40 EDT 2003
    
    
  
De Boer Ingo wrote:
> 
> Hi,
> 
> I modified the cube.cxx sample with a WarpVector.
> In the original sample I see colors on my cube. With
> the WarpVector they are gone. Where do I put my colors ?
Since you are using vtkVectorDot, the scalar range is that of the dot
product, thus -1, 1.
You need to change this line in your code:
cubeMapper->SetScalarRange(-1,1);
-- 
Dr. Jean M. Favre,                            email:favre at cscs.ch
http://www.cscs.ch/people/Favre.html
CSCS, Swiss Center for Scientific Computing | Tel:  +41 (91) 610.82.40
Via Cantonale, 6928 Manno, Switzerland      | Fax:  +41 (91) 610.82.82
    
    
More information about the vtkusers
mailing list