Its because you have turned of the scaling mode. When you say, SetScaleModeToDataScalingOff(), all glyphs are rendered of equal length.<br><br>In the next step, you are saying,<br><br>SetColorModeToColorByScale();<br><br>you'll see that all the glyphs are of same scale. Thus, all glyphs are rendered with same color. I think, Once you comment or remove <br><br>SetScaleModeToDataScalingOff()<br><br>then, it should work fine..<br><br>Seniors please correct me if i'm wrong..<br><br>Good luck<br><br>Regards<br>Rakesh Patil<br><font size="-1"><font face="Helvetica, Arial, sans-serif"><font face="Courier New, Courier, monospace"><br><br></font></font></font><br><blockquote><br>---------- Original message ----------<br>From:Sebastian Gatzka&lt; sebastian.gatzka@stud.tu-darmstadt.de &gt;<br>Date: 22 Feb 10 19:37:52<br>Subject:  [vtkusers] Glyph coloring by vector magnitud<br>To: vtkusers@vtk.org<br><br>



<font size="-1"><font face="Helvetica, Arial, sans-serif">Hello World.<br>
<br>
Meanwhile I made some nice glyphs, but am stuck with the coloring.<br>
I switched on SetColorModeToColorByVector() which may be the coloring
by vector magnitude?<br>
<br>
<font face="Courier New, Courier, monospace">vtkGlyph3D *glyph vtkGlyph3D::New();<br>
glyph-&gt;SetInput(gridCellCenters-&gt;GetOutput());        <br>
glyph-&gt;SetSourceConnection(arrow-&gt;GetOutputPort());<br>
glyph-&gt;SetScaleModeToDataScalingOff();<br>
glyph-&gt;SetColorModeToColorByScale();<br>
glyph-&gt;SetScaleFactor(0.3);</font><br>
<br>
Unfortunately all glyphs are colored the same (blue).<br>
Do I have to do anything further to get propper coloring? Maybe with
the mapper?<br>
<br>
See you. Sebastian<br>
</font></font>
</blockquote>