Obi Official Forum

Full Version: Recycle particles that dropped out of bound
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
It seems that the only way to control a fluid particle is via "Lifespan" parameter. I think it would be convenient if there is an option to provide a bounding box and all the particles go outside are recycled.
(11-04-2024, 03:30 PM)kodra Wrote: [ -> ]It seems that the only way to control a fluid particle is via "Lifespan" parameter. I think it would be convenient if there is an option to provide a bounding box and all the particles go outside are recycled.

Hi!

It’s trivial to implement this yourself, by using triggers and setting the lifetime of particles outside of it to zero. See:

https://obi.virtualmethodstudio.com/manu...sions.html
https://obi.virtualmethodstudio.com/manu...icles.html

Note that in Obi7/ compute where the amount of particles is much larger, doing this in a compute shader is advisable. See “using compute shaders to process particles” at the end of this link:

https://obi.virtualmethodstudio.com/manu...icles.html