Stick particles to emitter

Stick particles to emitter

DannyTheGamer
Advocate Advocate
706 Views
1 Reply
Message 1 of 2

Stick particles to emitter

DannyTheGamer
Advocate
Advocate

Hi,

I'm trying to create clouds through Bifrost and have them morph into custom shapes.

 

To do so, I created an Aero from the emitter object, turned off Continuous Emission and animated the emitter using Blend Shapes. However, I cannot get the generated particles to stick to the mesh as it deforms.

 

Is there a solution to this?

 

Cheers

 

0 Likes
707 Views
1 Reply
Reply (1)
Message 2 of 2

morten.bojsen-hansen
Autodesk
Autodesk

If you make a level set out of your emitter (using convert_to_volume), you can use sample_volume_gradient to compute the gradient of the level set at each particle position. The gradient of a level set points in the direction away from surface. So if you negate the gradient you get a vector pointing towards the surface. If you multiply vector pointing towards the surface (i.e. the negative gradient) by the distance to the surface, which you can by sampling the level set with sample_volume, you can move your particles onto the closest point on the surface. Maybe this will work for you?

0 Likes