Particles: multiple goals transfering color


#1

Hi guys,

It must be a dumb question, but i couldn’t get the key words to find an answer on the net so sorry in advance.

I did multiple goals, first particles form a sphere then go to a torus. What I would like to get is that when the particles are leaving the first object to form the second one and when they stick to the surface (not when they are turning around the mesh, even if they are really close), they have an other color.

Hope it makes sense,

Thanks


#2

Still searching for a solution!


#3

Hm there is like 2 ways, that you can mix and match.
First is utilizing soup’s attribute-transfer node (there should be examples scenes coming with soup that show transfer from surface to particle) and second is using the goal, goalPP or goalWeight0PP value in an expression.
like
if( goalWeight0PP == 1)
rgbPP = 1

Similarly to soup’s attribute-transfer you could programm it in an expression like:
float $dist = mag (position - goalWorldPosition0PP);
if( [font=Courier New]$dist <= .5)[/font]
rgbPP = 1

to get smooth transitions you could feed that into a ramp.


#4

Hey man,

Sorry for the late reply, just wanted to thank you. I decide to use Soup, for more control.

Thanks again, soup is quite powerful (just need to spend a lot of time to understand the logic)

André


#5

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.