Return gpu particles to initial location after optical flow

Hi everyone, im pretty new and have a task to createan interactive experience for the exhibition of the company im working for.
The idea is to turn image into particles and spread them by web camera and optical flow, the part im stuck with is returning particles to the initial location, googling for it second day and can’t figure out any tutorial with similar task done, would appreciate any direction where to look, and paid support with this issue.

Hi @sshstudio,

in case you are using particlesGpu, the particles die off eventually and are emitted again from their source location.

If the image should be static, and the optical flow only disturb things momentarily, you will need to build this out a bit yourself as it’s not something that is supported in particlesGpu natively.

First maybe think about how it should work: should each particle act like it is attached to it’s original position via a spring or will it be a more linear back to it’s original position behavior?

Check out @paketa12 youtube channel and especially his video on springs on the GPU for some inspiration:

cheers
Markus