Files
sunny9898/_ref/code/fluidsphereobstacle
louiscklaw 5637fbf94f update,
2025-02-01 02:07:58 +08:00
..
2025-02-01 02:07:58 +08:00
2025-02-01 02:07:58 +08:00

Fluid sphere obstacle

fluid sphere obstacle gif

code

comments

It's using a simulation of particles following a flow field.

The flow field is defined by the sum of:

  • a constant speed field
  • a repulsive field (might be the most technical part of the code)
  • some perlin noise

Once the particle paths are computed, replacement technique is used to show particles following them. It's also using interpolation between computed positions of the simulation (tutorial).

A black sphere is then simply drawn, its position and size ahve been adjusted experimentally.

Year: 2017

On bleuje site: https://bleuje.com/gifanimationsite/single/fluidsphereobstacle/

On social media: