visvis icon indicating copy to clipboard operation
visvis copied to clipboard

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

Open GoogleCodeExporter opened this issue 10 years ago • 5 comments

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 [email protected] on 28 Mar 2011 at 10:24

GoogleCodeExporter avatar Sep 01 '15 07:09 GoogleCodeExporter

[deleted comment]

GoogleCodeExporter avatar Sep 01 '15 07:09 GoogleCodeExporter

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 [email protected] on 23 Aug 2013 at 3:23

GoogleCodeExporter avatar Sep 01 '15 07:09 GoogleCodeExporter

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 [email protected] on 26 Aug 2013 at 8:55

GoogleCodeExporter avatar Sep 01 '15 07:09 GoogleCodeExporter

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 [email protected] on 9 Sep 2014 at 3:03

GoogleCodeExporter avatar Sep 01 '15 07:09 GoogleCodeExporter

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 [email protected] on 9 Sep 2014 at 7:06

GoogleCodeExporter avatar Sep 01 '15 07:09 GoogleCodeExporter

Visvis is in low maintenance mode. This feature won't be supported.

Have a look at PyGfx, where it is supported, see e.g. this example

almarklein avatar Dec 16 '22 10:12 almarklein