Hi Rafael,<br><br>The fact that you only get one color in this case blue probably means that the range of your scalars (the ones you use for color are all in the high range of your lookuptable or higher then 1. The lookuptable starts at 0 (red) and up to the 1 (blue) and is in your case setup into 9344 intervals. I don&#39;t know exactly how the make up of your scalars is but an easy test would be to set a few to 0 and see if you then get red and blue colors. If yes then the pipeline works correctly but the scalarvalues are to close to another (and probaby to high) and you need some kind of multiplier/divider to pull them apart.
<br><br>In general a trick i used when i was first trying to grasp how lookuptables work is to add a colorbar based on the lookup table. This colorbar will show you the colors as they are mapped through your lookuptable. Just adding this would quicky show if your lookuptable contains only one color and hence is faulty or in fact multiple colors which would imply that your scalars need some work.
<br><br>#create a colorbar<br>colorbar = vtk.vtkScalarBarActor()<br>colorbar.SetLookupTable(lookupTable)<br>colorbar.SetWidth(0.05)<br>colorbar.SetPosition(0.95, 0.1)<br>colorbar.SetLabelFormat(&quot;%.3g&quot;)<br>colorbar.PickableOff
()<br>colorbar.VisibilityOn()<br><br>ren.AddActor(colorbar)<br><br>Regards and hope this helps some - Geoframer<br><br><div><span class="gmail_quote">On 9/6/07, <b class="gmail_sendername">rafael possani</b> &lt;<a href="mailto:gentefinabr@hotmail.com">
gentefinabr@hotmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">



<div><div style="text-align: left;"><br>Hi Geoframer, first of all ,&nbsp; thanks a lot for the reply, and well I have tested a lookuptable too, but without luck, I think that I mistaken some method, then I eraser my lookuptable and I writed another one like yours. And I still cant see the colors, only one cor, generally blue. Then I will post my program better to see if you may help me, one more time :)
<br><br>I have 9344 points(values) into a vtkdoublearray, each one with a value in scientific notation(like around 20 kinds of combinations), for example, 3.5E-5, 1.0E-5, 1.0E-5 and 7.7E-6, my bigger number is 7.7E-6, and my lesser is 
0.0, then I tried it in my lookuptable:<br><br>&nbsp;&nbsp;&nbsp; &nbsp; &nbsp;  lookupTable = vtk.vtkLookupTable()<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; lookupTable .SetNumberOfColors(9344);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lookupTable .SetTableRange(0,7.7E-6);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; lookupTable .ForceBuild();
<br><br>After that I add into my mapper like y said:<br><br>&nbsp;&nbsp;&nbsp;&nbsp; conjunto.SetLookupTable(lookupTable );<br>&nbsp;&nbsp;&nbsp; And in my vtkImageMapToColors:<br><br>&nbsp;&nbsp;&nbsp; oIMTC1 = vtk.vtkImageMapToColors();<br>&nbsp;&nbsp;&nbsp; oIMTC1.SetLookupTable(lookupTable );
<br><br>&nbsp;&nbsp;&nbsp; But, as my mapper as my vtkImageViewer still be with just one color. Do you suggest some change? <br>&nbsp;&nbsp;&nbsp; Thanks, again.<br>&nbsp;&nbsp;&nbsp; Rafael.<br><br></div>&nbsp;<br><blockquote><hr>Date: Thu, 6 Sep 2007 13:10:59 +0200<br>
From: <a href="mailto:geoframer@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">geoframer@gmail.com</a><br>To: <a href="mailto:gentefinabr@hotmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
gentefinabr@hotmail.com</a><br>Subject: Re: [vtkusers] Looking for the perfect scalarRange...<br>CC: <a href="mailto:vtkusers@vtk.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">vtkusers@vtk.org
</a><div><span class="e" id="q_114db2521931cab1_1"><br><br>Hi Rafael,<br><br>I think you&#39;re missing a lookup table. Your mapper needs a lookuptable to see what scalar is translated into which color.<br><br>I suggest creating a lookuptable and adding the lookuptable to the mapper.
<br><br>lookupTable = vtk.vtkLookupTable()<br>lookupTable.SetNumberOfColors(numberofscalars)<br>lookupTable.SetTableRange(0,1)<br>lookupTable.ForceBuild()<br><br>conjuto..SetLookupTable(lookupTable)<br><br>You&#39;ll probably need to take a closer look at lookup tables as i use a discrete number of colors (hence the SetNumberOfColors), no idea what kind of table you need.
<br><br>Regards - Geoframer<br><br><div><span><br><br>On 9/6/07, <b>rafael possani</b> &lt;<a href="mailto:gentefinabr@hotmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">gentefinabr@hotmail.com
</a>&gt; wrote:</span>
<blockquote style="padding-left: 1ex;">



<div><div style="text-align: left;"><br>&nbsp;&nbsp; Hi vtk-users, I am with a problem. I am reading xy point into a vtkStructuredPoints and I would like to save like a image, but I cant... my vtkRenderWindow shows ok, but my image dont have colors and I know why, I need to set the scalars range into the vtkStructuredPoints but I dont know what method to use, that a part of my code:
<br><br>vtkStructuredPoints points = new vtkStructuredPoints();<br>&nbsp;&nbsp;&nbsp; points.SetDimensions( 128, 73, 1);<br>&nbsp;&nbsp;&nbsp; points.SetOrigin( 0.0, 0.0, 0.0 );<br>&nbsp;&nbsp;&nbsp; points.SetSpacing( 1.0, 1.0, 1.0 );<br>&nbsp;&nbsp;&nbsp; points.SetScalarTypeToUnsignedChar

();<br>&nbsp;&nbsp;&nbsp; points.SetNumberOfScalarComponents(id);<br>&nbsp;&nbsp;&nbsp; points.GetPointData().SetScalars( scalars );&nbsp; // &lt;--- Doesn´t work :/&nbsp; with that my image only be red <br><br>the scalars vector are double in Scientific notation I dont know if its bad.
<br><br>I have been trying all possible methods but I hadn´t success.<br><br>my mapper renders ok:<br><br>vtkDataSetMapper conjunto = new vtkDataSetMapper();<br>&nbsp;&nbsp;&nbsp; conjunto.SetInput(points);<br>&nbsp;&nbsp;&nbsp; conjunto.SetScalarRange

(points.GetScalarRange());&nbsp; &lt;---- But it works here<br><br>I´m thinking that a need a method like SetScalarRange from my mapper to use before in my vtkStructuredPoints.<br><br>besides, I am using vtkImageMapToColors to convert my structured points into a image. I also can post my entire code, but I made the same like this link, without the beginning because I generated my points :)&nbsp; 
<a href="http://public.kitware.com/pipermail/vtkusers/2005-December/083147.html" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://public.kitware.com/pipermail/vtkusers/2005-December/083147.html
</a><br><br><br>Well, someone suggest me a method for my vtkStructuredPoints? thanks in advanced.<br><span><br><br></span></div><span><br><hr>Receba GRÁTIS as mensagens do Messenger no seu celular quando você estiver offline. Conheça  o MSN Mobile! 
<a href="http://mobile.live.com/signup/signup2.aspx?lc=pt-br" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Cadastre-se já!</a></span></div><span>
</span><br>_______________________________________________<br>This is the private VTK discussion list.<br>Please keep messages on-topic. Check the FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">

http://www.vtk.org/Wiki/VTK_FAQ</a><br>Follow this link to subscribe/unsubscribe:<br><a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.vtk.org/mailman/listinfo/vtkusers
</a><br><br></blockquote></div><br>
</span></div></blockquote><br><hr>Receba GRÁTIS as últimas novidades do esporte direto no seu Messenger! <a href="http://signup.alerts.live.com/alerts/login.do?PINID=37485679&amp;returnURL=http://www.nivea.com.br" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
Assine já!</a></div>
</blockquote></div><br>