pbfy0 / visvis

Automatically exported from code.google.com/p/visvis
Other
0 stars 0 forks source link

Line class (wobject) for which the color can be specified for each point. #22

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
For each point, the value can be specified, similar as for the Mesh class.

If this is a scalar value, the point's color will be looked up in a colormap. 
If this is a 3D or 4D value, this specified RGB/RGBA directly. The mesh class 
also supports 2D values, which are then looked up in a texture. I'm not sure 
whether that would make sense for points in a 3D space though...

Original issue reported on code.google.com by almar.klein@gmail.com on 28 Mar 2011 at 10:24

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Hi Almar, 

I have need for colormapped set of points in visvis. Up until now I have been 
looping through each discrete value range and plotting each set of points as 
the appropriate color from the colormap, but this approach is very slow. Where 
in the visvis code would you recommend I start looking to implement this 
functionality in a more optimized fashion?

Thanks,
Alex

Original comment by crosb...@gmail.com on 23 Aug 2013 at 3:23

GoogleCodeExporter commented 9 years ago
In core/line.py

However, I think that with the current implementation of the Line class this is 
not really possible, as it uses the fixed function pipeline.

My advice would be to create a completely new line class yourself that uses 
shaders so you can control the color per vertex.

It may be that visvis' Line class will be based on vispy someday, in which case 
stuff like this should definitely be possible.

Original comment by almar.klein@gmail.com on 26 Aug 2013 at 8:55

GoogleCodeExporter commented 9 years ago
Does anyone know if its possible to add color information directly to a 
pointSet? I have color point cloud that I think it would be to tedious to color 
each point at a time via the plot function.

Original comment by bleeding...@gmail.com on 9 Sep 2014 at 3:03

GoogleCodeExporter commented 9 years ago
No, this is not supported in visvis, sorry. If you don't mind working with 
bleeding edge software, in vispy (http://vispy.org) we have a Line object that 
I think can do what you need (and if it does not, we are eager to support your 
use-case).

Original comment by almar.klein@gmail.com on 9 Sep 2014 at 7:06