Made a flow field with guis!

Hey, so I did some funky stuff today with Flow Fields (also known as Vector Fields)! Flow fields represent movement/flow of fluids on a grid using vectors.

You can read more about them here!

Here are 500 moving fluid particle (guis) on the screen! These particles are set to avoid crashing into/pass the circle in the center. The color of these particles are determined by their varying velocities. All of these particles are merely gui frames.

These particles move on the screen with a certain velocity from left to right, if they touch/come to close to the circle in the middle, these particles avoid going into the circle, rather going completely around it. Interestingly enough, this can also be used in path finding!

Some particles may not come into contact with the circle at all, like the ones moving near the top and bottom edge. It is practically the same phenomenon as an object in the path of running stream or river. Let’s take a look at what I made now!

500 Fluid Particles (Slow)

500 Fluid Particles (Fast)

These were too fun to make, especially when you get to know the possibilities of the roblox’s engine are beyond our imagination! The number of particles can be lowered but if increased further, it can cause severe lag and crashes since rendering these are a challenge.

Feedback and questions are always welcome! Thanks.

11 Likes

this reminds me of black holes
great job

2 Likes

https://www.roblox.com/games/7671053163/Flow-Field

If you wanna try it out in game, here you go!

Interesting. Do you think this could be used with skinned meshes to create realistic rivers that react to things like boulders in them?

Yeah absolutely! Meshes could be deformed in relation to the movement of fluid particles to achieve that.

1 Like

I’m definitely not experienced enough to do this now, but it would be cool to try to make this someday! I don’t think I’ve seen a skinned mesh river yet, have you? I feel like someone would’ve done it by now.

1 Like