samadoni

hi, 

Is there another way to color a set of vertex delivered by the group node?
I'm asking this cause i noticed that the point node in color mode is the bottleneck in my setup.

The attributeTransfer seems to be a good candidate and it performs much faster, the thing is besides creating a boundingObject that will color the vertex inside of it, i'm not able to find a way to color my set of vertex with it.

thanks 

Quote 0 0
plarson
I haven't compared the speed myself, but have you tried the arrayToPointColor?
Quote 0 0
samadoni
not sure how the arrayToPointColor would be useful, i need to generate a color on given components like i would do with the point node and the variable $R=1 etc
Quote 0 0
plarson
Maybe I misunderstand what you're looking for. I ran into a problem with the arrayToPointColor when inputComponents are used, and instead went with arrayToPointAttributes. Here's a scene with what I thought you had in mind: ma arrayToColor_ 1.0.ma      
Quote 0 0
samadoni

Thanks looks like it's working, though i had some weird refresh issue, i also somehow have to tick the position in the pointAttributeToArray.

The good news is that this setup is twice faster than with the point node. 

Quote 0 0
plarson
Great! I believe the outCount is based on the position array, making that necessary.
Quote 0 0
pshipkov
If you want to just fill the group of points with uniform color then the best way is probably:
createArray (4 doubles) -> arrayToPointAttribute (colors flag enabled and using input components coming from your group node)
Quote 0 0
samadoni
yes that's more or less what plarson suggested, the performance are much better. I can fill a very dense mesh with some colors without much of a trouble now compared to the point node, really great.

thanks
Quote 0 0
pshipkov
ArrayToPointColors is going to be deprecated at some point later. It will still stay in the package but not exposed in the GUI.
ArrayToPointAttribute is the way to go.
Quote 0 0
samadoni
ok noted 
Quote 0 0

Add a Website Forum to your website.