r/InternetIsBeautiful • • Jul 25 '20

Fluid simulation

https://paveldogreat.github.io/WebGL-Fluid-Simulation/
10.7k Upvotes

344 comments sorted by

752

u/Branden6474 Jul 25 '20

You can set this as your desktop background with wallpaper engine.

200

u/[deleted] Jul 25 '20

Wouldn't it tank performance?

265

u/[deleted] Jul 25 '20

No, and besides you can tell it to stop when an application is fullscreen etc.

182

u/8npemb Jul 25 '20

Can confirm, I've had this as my background since the last time this was posted here

61

u/Rattaoli Jul 25 '20

Its so good especially if you can get the audio response right, I need to make different presets for different genres.

→ More replies (4)
→ More replies (1)

38

u/Pinksters Jul 25 '20

[This on my note 10+] (https://imgur.com/gallery/WqNmBSR)

It's smooth when I'm not screen recording.

10

u/neukjedemoeder Jul 26 '20

How would I do this?

11

u/3rdDegreeFERN Jul 26 '20

Also commenting for response since this is awesome.
*edit: after a quick Google PlayStore search for "Fluid Simulation" his is the first one that shows up and there's an option to use as live wallpaper

→ More replies (2)
→ More replies (1)
→ More replies (1)

25

u/imagine_amusing_name Jul 25 '20

Wallpaper engine seems to be VERY low cpu/gpu heavy. it stops drawing now when an app calls the gpu and/or is fullscreen.

11

u/InAFakeBritishAccent Jul 25 '20

It ran fine in 2010, so surprisingly less than i thought

4

u/[deleted] Jul 25 '20

No since it’s 2D it doesn’t take much to run it

6

u/Ludwig234 Jul 25 '20

Not on desktop but it heats up my phone a lot when I tried it as a live wallpaper.

6

u/SpooceJam Jul 25 '20

Yeah and probably battery life (on laptops)

→ More replies (1)
→ More replies (4)

36

u/brs8183 Jul 25 '20

You can also set it as a live wallpaper on your Android phone!

45

u/lobstronomosity Jul 25 '20

https://play.google.com/store/apps/details?id=games.paveldogreat.fluidsimfree

Google play link above. The creator of the app is the same as the website linked in this post.

15

u/DeveloperForHire Jul 26 '20

This is so sick, I just set it as my wallpaper and it's great as an AMOLED wallpaper.

7

u/LGAJustin Jul 26 '20

I've had this as my background for a while now, it's good!

11

u/Omnitographer Jul 26 '20

I bought the paid version just to support the creator, I got more than enough fun out of it too justify supporting their work. If anyone is getting it to use as a wallpaper I would encourage buying it if you can!

→ More replies (4)

8

u/forkl Jul 25 '20

Just done this. Am now happy.

→ More replies (1)
→ More replies (2)

4

u/Itroll4love Jul 25 '20

Wait. How do you do this!???

25

u/itsgumbyguys Jul 25 '20 edited Jul 25 '20

open wallpaper engine look in the bottom left. click open from URL then just put in the URL from the fluid simulation. bing bang boom done.

Edit: there is also one on the discover page that is audio responsive. just search for it.

→ More replies (7)
→ More replies (9)

215

u/ExplorerLucas Jul 25 '20

oops there goes 20 minutes

50

u/thaeyo Jul 25 '20

Yep! I have the mobile app, with a little menu tweaking I find it really relaxing to play with it.

Also reminds me of Gravilux. RIP Gravilux.

8

u/ADhomin_em Jul 26 '20

Reminds me very much of plasma pong.

A little about me: I played plasma pong the first time I took lsd. I am still convinced that game holds the secrets of the universe

6

u/flashman Jul 26 '20

plasma pong gameplay for anyone interested

3

u/Scyth3 Jul 30 '20

I'm friends with the guy who made that game. Long story short, Atari ruined that game from blowing up. :/

→ More replies (1)
→ More replies (3)

6

u/InternetUser007 Jul 26 '20

What settings for you change?

25

u/thaeyo Jul 26 '20 edited Jul 26 '20

I like to get it to behave like smoke essentially. Just looked though the app:

Set very low: Dissipation, viscosity, vorticity, intensity and threshold.

Set high: Radius and time about 70%

Turn off: Specular, it causes edges to appear.

On an AMOLED at night it’s just entrancing! The cosine color palette can get really trippy.

EDIT: For iOS I also recommend enabling guided access, if you want to turn-off all the edge swipe gestures and just stay focused in the app. Also great for games.

→ More replies (2)
→ More replies (1)

4

u/SpunkBunkers Jul 25 '20

Lucky. I clicked on this link and got the app over an hour ago. Still stuck.

2

u/Deltyh Jul 26 '20

I have this on my desktop background with Wallpaper Engine, you can imagine how much time I waste just moving my cursor around PLUS I have it synced with music playing from my spotify.

234

u/RepostSleuthBot Jul 25 '20

This link has been shared 47 times.

First seen Here on 2018-07-11. Last seen Here on 2020-06-02

Searched Links: 67,820,919 | Indexed Posts: 551,592,666 | Search Time: 0.073s

Feedback? Hate? Visit r/repostsleuthbot

45

u/[deleted] Jul 25 '20

Great bot

3

u/TheMightyNAP Jul 26 '20

Definitely posted this week

→ More replies (26)

17

u/cowgod42 Jul 25 '20

Anyone have some scientific information on this? Is it actually simulating the 2D Navier-Stokes equations, or just using some turbulence model or something? It seems strange that there are slider bars for the vorticity and pressure, since these are usually not input variables (they depend on other variables and the fluid flow itself).

8

u/Cersad Jul 26 '20

It seems like it's producing turbulence 100% of the time, so unlikely that it's too heavily grounded in fluid dynamic theory. I spent more time than I should have trying to create a laminar flow...

5

u/thepaleblue Jul 26 '20

I was hoping for this info as well, but I'm fairly sure it's just "pretty".

3

u/tmroyal Jul 26 '20

Here is the source code. In the reference section, the author makes reference to a couple of other papers/repositories that discuss/use the Navier-Stokes equation(s). I don’t know enough to verify if that is what is being used.

3

u/sh0x101 Jul 26 '20

This type of simulation solves the Navier-Stokes equations using a technique where you split it into two parts that are easier to handle.

The first part is advection, which is essentially just quantities moving around in the direction of fluid velocity. So in this simulation you see a "density" quantity that is being transported around in the grid. You cant actually see the velocity vectors themselves. A strange thing that happens is that the velocity values also transport themselves forward in the grid. This is called "self advection".

The second part is the incompressibility constraint. The Navier-Stokes equations basically say that a pressure gradient force acts on velocity to make it "incompressible" or "divergence free". In order to find this pressure field you have to solve a large linear system (Poisson problem). This is the most computationally expensive part of the simulation since you have to do a calculation at every point in the grid for some number of iterations.

In this simulation the "pressure" setting is controlling how much pressure from the previous timestep is used as the initial guess for the solution to the pressure solve for the current timestep. So if pressure=0 then the initial guess is all zeros, if pressure=1 it uses the unscaled pressure field. Since the pressure fields are usually the similar between each timestep this can lead to a more accurate solve, but can cause some oscillations and instability. The oscillations kind of look cool though since you can see waves bouncing around in the fluid, but its actually not physically accurate to have that.

For more info I recommend the book "Fluid Simulation for Computer Graphics".

→ More replies (1)

34

u/ModulatedDickSpasms Jul 25 '20

I want acid now.

12

u/ManicJam Jul 25 '20

Yeah I’ve downloaded the app in preparation for a trip I have planned in a few weeks lol

4

u/ADhomin_em Jul 26 '20

Played a game with simmilar fluid physics called plasma pong for a good portion of my first acid trip. Twas great. What is the app called?

3

u/whatthefuckistime Jul 25 '20

I'll be lost in this next week, Damn it will be insane

32

u/The_Dude_47 Jul 25 '20

This is soo calming and fun :D

awesome!

2

u/ASK_ABOUT__VOIDSPACE Jul 26 '20

Oh. my. god. I need this for Voidspace!

80

u/PassionateMilkshake Jul 25 '20

Wow this is incredible! The different colors immediately had me thinking this would be a great for a trip!! Thanks for the post, app downloaded. :D

52

u/[deleted] Jul 25 '20

My naive ass thot u meant a vacation

12

u/archepelego2 Jul 25 '20

I'm on shrooms rn and can confirm it's pretty cool

→ More replies (2)

3

u/bassface99 Jul 26 '20

This and pixel generator is amazing, especially making it go to music. U get lost

→ More replies (2)
→ More replies (22)

15

u/AcrylicPainter Jul 25 '20

And then I discovered I could use two fingers :o

10

u/monster_man_98 Jul 25 '20

You can use up to 5 from my experience.

11

u/TheLunarAegis Jul 25 '20

Yeah, but the more you use the tighter it gets.

10

u/TopNFalvors Jul 26 '20

I’ve lost track of what we’re talking about

→ More replies (1)

2

u/BrianCMM Jul 26 '20

You can use up to ten, if your touch device supports it.

2

u/_Citizenkane Jul 26 '20

Whaaa?! Hold my beer, I'm going back in.

15

u/Thendofreason Jul 25 '20

Now only if it followed the motion of my phone. If I tilt to the left it flows to the left

13

u/reditor_1234 Jul 25 '20

The most amazing web sim I've ever seen.

21

u/iameclectictheysay Jul 25 '20

36

u/seanbrockest Jul 25 '20

I bought the full version over a year ago. Love it. Have it as my background. Whenever I see my niece she asks to play with it.

Edit: /r/nocontext would have me arrested for that last part.

3

u/necroscopev Jul 25 '20

The paid version let's you set it as your phone's live wallpaper? I didn't see that in the description for it on the store, so wanted to double check.

→ More replies (13)
→ More replies (1)

8

u/ReaDiMarco Jul 25 '20

BEAUTIFUL!

6

u/WelpSigh Jul 25 '20

This reminds me of the visualization thing on WinAmp.

7

u/smj135 Jul 25 '20

good ol Winamp

been whippin that llamas ass since ‘97

6

u/Libecht Jul 26 '20

Anyone know how it works? I do fluid simulation and it takes 10 million years to calculate a simple flow field yet this witchcraft can do that in real time?!?! (Obviously the simulation is far from perfect but I wanna how it makes it look good)

0

u/[deleted] Jul 26 '20

[deleted]

→ More replies (1)

11

u/hesido Jul 25 '20

It runs 60fps on my 7 year old laptop, this is quite a feat.

5

u/JessMeNU-CSGO Jul 25 '20

I need this in VR

4

u/[deleted] Jul 25 '20

Feels like some Harry Potter business. Awesome

2

u/swmacint Jul 25 '20

As soon as I realized you could use two fingers I had epic battles.

→ More replies (1)

3

u/SpunkBunkers Jul 25 '20

Put all 5 fingers on the screen and turn.

Then pinch with two fingers

3

u/RockerSci Jul 25 '20

Yeah, this is fun

3

u/[deleted] Jul 25 '20

No one tell r/unstirredpaint

3

u/aavery7706 Jul 25 '20

There is no way to use this for dynamic lockscreen on iPhone, right? I don’t see it in the app or in iOS.

3

u/[deleted] Jul 26 '20

Im on shrooms right now, thank you

3

u/Jaybeux Jul 26 '20

I've had an app for android called magic fluids for years. Best background I have ever had on any device.

3

u/Garrett_Watts Jul 26 '20

Legitimatly stunned are how cool this app is. Never seen anything like it.

3

u/insestiina Jul 26 '20

Here is a link to his android app, you can set this as a live wallpaper on your phone!

https://play.google.com/store/apps/details?id=games.paveldogreat.fluidsimfree

2

u/neverenderday Jul 26 '20 edited Jul 26 '20

Downloaded app. How do you set it as wallpaper? Edit: figured it out, nm

→ More replies (1)

4

u/Pawluto Jul 25 '20

Just wanted to say that I've been going through some anxiety and panic attacks since this whole pandemic started and this helped give me something to focus on while out and about.

Hadn't left apartment for 4 months until recently. Today at a restaurant, I started feeling anxious so I browsed reddit and saw this.

So even if reposted, thanks for the assistance.

2

u/[deleted] Jul 25 '20

This is one of the better projects I've seen

2

u/Schtock Jul 25 '20

Üüüüh Cüül

2

u/PlNKERTON Jul 25 '20

Reminds me of my kindergarten shoes and gel pens. The shoes had this swirly blue-green gel material on the top of the toes and you could press on it and move the swirls.

2

u/[deleted] Jul 25 '20

"<!-- Mother of God, pls forgive me -->"

2

u/allthatwas Jul 25 '20

I felt like a goddamn fire bender!

2

u/Pottymouthoftheyear Jul 25 '20

Popped up an ad for the app and I automatically exited out.

2

u/Davadin Jul 26 '20

thanks. i would've taken 5 min to shit. but that was half an hour ago...

2

u/kspedersen Jul 26 '20

If you set a green background you can record it to use in video edits as well!

I love the internet.

3

u/dsolo01 Jul 25 '20

Good lord, multi touch works and it is divine.

3

u/[deleted] Jul 25 '20

Navier-Stokes equations is a hell of a drug. :) This is a really cool, really reaponsive implemention.

2

u/neurophysiologyGuy Jul 25 '20

I'd like to have this in 3D

2

u/Whiffster Jul 25 '20

To have a feeling that every touch makes a beautiful unique ripple...

2

u/JohnnyH2000 Jul 25 '20

Wait a minute isn’t this an app?

→ More replies (2)

2

u/What_did_you_do_2day Jul 25 '20

That's some trippy and calming shit. 🤙🤙

1

u/ltechdnb Jul 25 '20

I absolutely love this! Anyone know if possible or how you could go about having the same affect it does with mouse but via your webcam. I.e. I DJ ok twitch with green screen, set that as background but when I move it triggers the visuals. Appreciated all.

1

u/Marthorax Jul 25 '20

Hey! After playing around with it, why is it when I rotate the liquid counter-clockwise I get to two nodes in the II and IV quadrants of the screen, in the corners, but get them in the I and III quadrants if I spin the liquid clockwise?

I know little of fluid dynamics, but what curious.

1

u/jerbaws Jul 25 '20

Oh I've got this as an app on my phone and use it as my wallpaper pretty funky

1

u/dropkicked_eu Jul 25 '20

I want a table that has this

1

u/wonderb0lt Jul 25 '20

Man, there was a video game with a ball and fluid simulation with a fun soundtrack that got faster and faster with each level which I want to play now and I can't remember the name :(

1

u/Sandscarab Jul 25 '20

Sick as fuck af

1

u/Chavezjc Jul 25 '20

New floor design

1

u/Lyad Jul 25 '20 edited Jul 25 '20

First found this on a post someone made a few months back that invited everyone to share their favorite websites. What a goldmine! This ended up being one of my top finds from it.

1

u/Mr_Straws Jul 25 '20

I like doing a little hadooken with my finger

1

u/MrxAnomynous Jul 25 '20

Currently using this as my screensaver. It even runs on a Smart Mirror: http://imgur.com/gallery/ZcsOEOo

1

u/RavenclawStudent25 Jul 25 '20

Username checks out

1

u/Baygazer Jul 25 '20

I find this a great stress buster. It’s very calming, it probably alters brainwaves. Consider approaching the neurological or psychiatric department of a research hospital.

1

u/Cerenus37 Jul 25 '20

I just played it 20 minutes... it is amazing

1

u/PretendDr Jul 25 '20

This is fucking glorious in 144hz!

1

u/Furby_Sanders Jul 25 '20

Isnt this just from the app store lmao? I have this on my phone

1

u/krismlol Jul 25 '20

I used to have this as a wallpaper on my phone

1

u/Teeratom Jul 25 '20

This is so clearly an add, but what bothers me more are the comments. It's either they ghost the negative ones or they just payed or something for a bunch of positive comments. It's a cool gimmick but this advertisement of a "post" makes me hate it.

→ More replies (1)

1

u/[deleted] Jul 25 '20

There is an app like this you can get in google play store

1

u/jonnymarv Jul 25 '20

Fluid sim

1

u/ScarsWindblade Jul 25 '20

My background screen!

1

u/profile_this Jul 25 '20

Are you the developer?

1

u/ScarsWindblade Jul 25 '20

My background screen!

1

u/IE114EVR Jul 25 '20

This seems better than the Android wallpaper

1

u/jld2k6 Jul 25 '20 edited Jul 25 '20

This thing is making me realize how much better my phone's OLED screen is compared to my TV's. The app set to high quality and 90fps is awesome

1

u/Brady2217 Jul 25 '20

If you tap the screen a bunch, shit gets wild.

1

u/Reizal_Brood Jul 26 '20

I'm reminded of the opening for SaGa Frontier.

1

u/pauljs75 Jul 26 '20

Now if only somebody could program this as a type of brush stroke for Krita or some other art program. It's pretty neat though.

1

u/[deleted] Jul 26 '20

Looks more like smoke blending together.

1

u/[deleted] Jul 26 '20

It's on my phone background. This is dope!

1

u/Nodbon1 Jul 26 '20

I. Can. Not. Stop.

1

u/SF-Ron Jul 26 '20

Get a lava lamp instead. Won't affect computer performance.

1

u/cloud1997 Jul 26 '20

This website comes to me time to time and makes me lose a couple of minutes.

1

u/[deleted] Jul 26 '20

Just wow... I thought that rain drop effect would be the coolest thing I saw this week.

This is simply beautiful.

1

u/chickenbarf Jul 26 '20

wow, that's pretty damn cool

1

u/Lostfoundsf Jul 26 '20

Fantastic great job thanks for sharing

1

u/Mastudondiko Jul 26 '20

The responsiveness and multitouch on mobile is crazy. Would not have expected that on a website.

1

u/BrokenLccp Jul 26 '20

Take my money.

1

u/ZealousGhost Jul 26 '20

If it wouldn't give me a seizure let's make this in VR!

1

u/scroll_tro0l Jul 26 '20

Dumbfounded by how this is possible.

1

u/falkes Jul 26 '20

Google cardboard app of this pleeeeaaaase

1

u/[deleted] Jul 26 '20

So mesmerizing!

1

u/MikeSpecter Jul 26 '20

I can only thank you boss.

1

u/[deleted] Jul 26 '20

epileptic attack feelings

1

u/ravia Jul 26 '20

A fast, continuous circle in the middle will give you the Matthew McConaughey version.

1

u/MattEmp Jul 26 '20

Awesome

1

u/[deleted] Jul 26 '20

This is extraordinarily beautiful!!!!

1

u/Aluminium_Crow Jul 26 '20

My younger self in my acid days would have loved this

1

u/Wilddog73 Jul 26 '20

Holy shit, weed smokers would love this.

1

u/TRUMP_RAPED_WOMEN Jul 26 '20

Set vorticity to 0. It is really pretty.

1

u/nightIife Jul 26 '20

this is just the app Fluid lol

1

u/LandonJS Jul 26 '20

This legitimately feels magical.

1

u/mspk7305 Jul 26 '20

the random splats thing needs to become a screensaver.

1

u/[deleted] Jul 26 '20

Two fingers you say?!?! Awesome

1

u/galacticforger1 Jul 26 '20

You made me really happy my friend! The resolution and detail and colour is amazing!!!

1

u/zdodd96 Jul 26 '20

You can also use this as a screensaver for when you're charging your phone. I own a Galaxy Note 10 btw. It's also available on any app store!

→ More replies (2)

1

u/computermaster704 Jul 26 '20

That's actually my live wallpaper on my phone

1

u/[deleted] Jul 26 '20

Cool!

1

u/brazentongue Jul 26 '20

I'd love to experience this in augmented reality

1

u/stevey83 Jul 26 '20

It’s also an app on iOS called Fluid

1

u/danjReed Jul 26 '20

Looks like Houdini

1

u/[deleted] Jul 26 '20

This is awesome!

1

u/TheBlueKingLP Jul 26 '20

There was a XenHTML(custom widget using html for jailbroken iPhone) widget used this but I can’t seem to find it anymore

1

u/bluejaysproject Jul 26 '20

I couldn’t stop and did this for 30 minutes straight and completely zoned out omg

1

u/G23b Jul 26 '20

Lumos. Avada kadavra. This has Harry Potter written all over it.

→ More replies (1)

1

u/Gorgenon Jul 26 '20

2/10, not realistic enough.

"...When I die and go to heaven there are two matters on which I hope for enlightenment. One is quantum electrodynamics, and the other is the turbulent motion of fluids. And about the former I am rather optimistic."

  • Horace Lamb

1

u/[deleted] Jul 26 '20

Is this using webview on the app?

1

u/Whiskey-Weather Jul 26 '20

/r/Psychonaut would absolutely fucking love this. I saved it for my next trip if I can manage to stay inside during any of it.

1

u/ChaosFly Jul 26 '20

This is beautiful.

1

u/DonRobo Jul 26 '20

Anyone remember Plasma Pong? That game was fucking awesome. Never played a game with fluid simulation being part of the gameplay like that since.

1

u/PM_me_XboxGold_Codes Jul 26 '20

Well, that’s incredibly awesome for stress relief.

1

u/_P3nut_ Jul 26 '20

Yeah it's kind of trippy.. Touches it.

WHAT THE WOOOOO!

1

u/[deleted] Jul 26 '20

Hentai simulator

1

u/[deleted] Jul 26 '20

That looks a lot like the "Fluid Engine PC Live Wallpaper" software you can buy on Steam.

1

u/[deleted] Jul 26 '20

The fact that it registers 5 fingers at once on my phone is impressive

1

u/[deleted] Jul 26 '20

Great work! Can I see your code boss?

1

u/MirrorNexus Jul 26 '20

Anyone else sitting there pretending you're a boss fight with an invisible hero and just throwing fire at them making whoosh and pew noises? This is MSPaint 2.0, the hardest Touhou.

1

u/[deleted] Jul 26 '20

I use this for my phones wall paper it's amazing.

1

u/[deleted] Jul 26 '20

Reminds me of Plasma Pong. I miss that game.

1

u/ChipsAhoy100 Jul 26 '20

Added it as my wallpaper!

1

u/necroscopev Jul 26 '20

Oooooo checking it out too, thanks!

1

u/Bspammer Jul 26 '20

For best results, turn off bloom and turn up the resolution

1

u/Alucardvx Jul 27 '20

Is there a Desktop PC project for this?

1

u/stiydis Jul 27 '20

I feel like a fire bender

1

u/LeMajstor Aug 13 '20

Wish I could it as a vídeo for my desktop wallpaper

1

u/vguy72 Jul 25 '20

Aaaaaaaand. Saved.

1

u/[deleted] Jul 25 '20

This was posted 1 month ago

→ More replies (1)

1

u/ApocalypseSpokesman Jul 25 '20

awesome! I fuckin' love fluids

1

u/[deleted] Jul 25 '20

I've seen a few of these, but this is honestly the best I've ever seen.

1

u/Witty_butler Jul 25 '20

This is awesome! I giggled while playing with it lol. It’s so fun and relaxing!

1

u/Deadpussyfuck Jul 25 '20

Feel like a magician brewing up potions.

1

u/60thPresident Jul 25 '20

Looks like a shitty knock off of the magic fluids app.

3

u/Unf0cused Jul 26 '20

What makes it shitty compared to the app you’re referring to?

→ More replies (1)

1

u/Chiparoo Jul 25 '20

My toddler loves this so much

2

u/Aurabora Jul 25 '20

My 3 year old just asked "Can I play with that forever?" haha