ParaView does indeed display points with RGB color values.  The colors must be in a unsigned char array (not any other data type) with 3 components.  Then go to the display tab and uncheck the &quot;map scalars&quot; box, and you will see the points with color.  You can read more about the map scalars option in the online documentation here:  <a href="http://paraview.org/OnlineHelpCurrent/Display.html">http://paraview.org/OnlineHelpCurrent/Display.html</a><br>


<br>Giulio, did you try the python programmable source that I posted in your original email?  It works for me on your supplied file, rgb.txt.  If you use this python programmable source, you can then use File -&gt; Save Data to re-save the data as a VTP file that can be loaded using a standard reader in the future.<br>

<br>Pat<br><br><br><div class="gmail_quote">On Mon, Feb 27, 2012 at 3:19 PM, David Pont <span dir="ltr">&lt;<a href="mailto:David.Pont@scionresearch.com" target="_blank">David.Pont@scionresearch.com</a>&gt;</span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Giulio,<br>
  I am also very interested in viewing XYZRGB data, and I have not had any success in Paraview so far. I think the suggestion to use a vtp file instead of a text file was simply another way to get data in to Paraview. But I think the issue is how to use RGB values for coloring, regardless of how the information is read.<br>



<br>
I hope I am wrong, but I don&#39;t think this is supported. Paraview (vtk) uses lookup tables to map scalar attribute data to RGB values. It also supports vector data, by using only one of the values, or magnitude, ie still a scalar to RGB mapping. When I load your example vtp file the RGB triplet is loaded as Normals_, and color options are then to use, X or Y or Z or Magnitude.<br>



<br>
It seems like this should be easy, really we want to bypass the mapping of scalars to color and have Paraview (vtk) use the provided RGB directly. But I think this might require a completely new Mapper and/or other parts of the rendering subsystem. Probably quite do-able for someone that understands the inner workings of the rendering system?<br>



<br>
In the meantime you might be better looking for other tools that are designed to display point clouds with RGB? This kind of data is becoming more common. My interest is for LiDAR data where XYZRGB data is starting to become available, but I have not actually encountered this yet so I have not found a solution.<br>



<br>
Here&#39;s hoping I&#39;m wrong and someone has a clever solution in Paraview... otherwise perhaps it could be a feature request?<br>
<br>
  regards, Dave<br>
<br>
David Pont<br>
Scientist - Forest Management Science<br>
Scion<br>
49 Sala Street, Private Bag 3020, Rotorua 3046, New Zealand<br>
DDI <a href="tel:%2B64%207%20343%205663" value="+6473435663" target="_blank">+64 7 343 5663</a><br>
<a href="http://www.scionresearch.com" target="_blank">www.scionresearch.com</a><br>
<div><div><br>
<br>
<br>
-----Original Message-----<br>
From: <a href="mailto:paraview-bounces@paraview.org" target="_blank">paraview-bounces@paraview.org</a> [mailto:<a href="mailto:paraview-bounces@paraview.org" target="_blank">paraview-bounces@paraview.org</a>] On Behalf Of Giulio Reina<br>


Sent: Monday, 27 February 2012 8:57 p.m.<br>
To: <a href="mailto:paraview@paraview.org" target="_blank">paraview@paraview.org</a><br>
Cc: <a href="mailto:andrew.amaclean@gmail.com" target="_blank">andrew.amaclean@gmail.com</a><br>
Subject: [Paraview] I: 3D point cloud with color<br>
<br>
Hi all,<br>
<br>
Following  David&#39;s suggestion, I came up with the code attached that turns the starting data file (rgb.txt, of the type [X Y Z R G B] (the first three vector columns specify the location of the single point and the last three one its color in RGB space)) into a parsed vtp format. Unfortunately, when I try to open the VTP file in Paraview (after applying a Glyph filter) the results are not what I expect, i.e. one point red, one point green, two points blue.<br>



<br>
I would greatly appreciate if someone could help me put reading correctly the VTP file, I should admit that I&#39;m not very familiar with the use of vtp files in Paraview,<br>
<br>
Cheers<br>
<br>
Giulio<br>
<br>
<br>
<br>
<br>
-----Messaggio originale-----<br>
Da: David Doria [mailto:<a href="mailto:daviddoria@gmail.com" target="_blank">daviddoria@gmail.com</a>]<br>
Inviato: giovedė 23 febbraio 2012 02:48<br>
A: <a href="mailto:giulio.reina@unisalento.it" target="_blank">giulio.reina@unisalento.it</a><br>
Cc: <a href="mailto:paraview@paraview.org" target="_blank">paraview@paraview.org</a><br>
Oggetto: Re: [Paraview] 3D point cloud with color<br>
<br>
&gt;&gt; I have been working with 3D stereo reconstruction. So, I have huge 3d<br>
point clouds co-registered with color in this format [X Y Z R G B] (the first three vector columns specify the location of the single point and the last three one its color in RGB space). I have been trying to display the data in Paraview without success.<br>



<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; I use the &quot;table to points&quot; filter to show the 3D coordinates but<br>
&gt;&gt; then I<br>
do not know  how to specify the color of each single point using its RGB components. Can you please help me out?<br>
<br>
If you&#39;re more comfortable in c++ you could use VTK to parse the file, construct a polydata, and then write a vtp file. Here are the examples you&#39;d<br>
need:<br>
<a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/InfoVis/ReadDelimitedFile" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/InfoVis/ReadDelimitedFile</a><br>
<a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/IO/WriteVTP" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/IO/WriteVTP</a><br>
<br>
Then Paraview can easily read this vtp file.<br>
<br>
David<br>
<br>
<br>
<br>
</div></div>This e-mail and any attachments may contain information which is confidential or subject to copyright. If you receive this e-mail in error, please delete it.<br>
Scion does not accept responsibility for anything in this e-mail which is not provided in the  course of Scion&#39;s usual business or for any computer virus, data corruption, interference or delay arising from this e-mail.<br>



_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
</blockquote></div><br>