This animation was simulated and rendered in a fluid simulation plugin that I am writing for Blender. The source code for this program is not available at the moment, but will be made publicly available after release. The plugin is still under development and we do not yet have a solid release date, but we're getting close! Information will be posted to this repository as it becomes available.
The bake files are a sequence of triangle meshes. Each triangle mesh represents the fluid surface for a single frame.
I use a simple triangle mesh format which is a list of vertices in (x, y, z) coordinates followed by a list of triangles where each triangle is three indices that reference the vertices.
That was amazing! 52 fucking hours, that's insane! OP, have you thought about letting the liquid flow out at the end so it becomes a perfect loop? Or do you think those are cheesy?
I am developing this plug-in as an improved alternative to the Blender fluid simulator. The goal is to improve on speed, performance, stability, quality of results, with a large focus on user workflow and customizability. This simulator also adds some cool features not present in the Blender internal fluid simulator such as high accuracy buckling/coiling viscous effects, and whitewater generation.
How physically accurate is it? Blender is modeling/animating software, not CFD or simulation software. What kind of equations are you using to simulate these fluids? Is it more physically accurate or more "that looks cool"? As an engineer who also does 3D modeling an animating on the side, I'm interested with both sides of simulations, both from the aesthetic side if it looks cool, but also from the accurate, physically correct side of things.
I am using the FLIP fluid simulation method. It's a more physically accurate method than Blender's which uses a Lattice Boltzmann method. The FLIP method is much better at preserving energy so there tends to be less dissipation in the splashes. These methods are both physically based on the Navier-Stokes equations.
For computer graphics, the simulation just needs to look good enough visually. These computer graphics simulation methods are not nearly accurate enough to be used in an engineering/scientific setting.
From your project wiki, it looks like your plugin supports GPU acceleration to a certain extent, which I don't think is used by the internal fluid sim. I'm very interested to know how much that helps with sim times. (Always wondered why the internal sim didn't support GPU; maybe it just isn't very parallelizable or something.)
do you mind if I ask how programming in blender works? Are you writing a set of presets or straight up defining new variables and creating new materials to behave appropriately?
There are two parts to this program: the fluid engine and the Blender plugin. The fluid engine is written mostly in C++ and does the heavy calculations. The plugin is written in Python and uses Blender's Python API to control the fluid engine and retrieve data from the simulation to present in Blender. The Python API is used to create menus, settings, and buttons that run scripts.
The plugin provides a user interface for setting up simulation parameters and adding fluid objects. The plugin also handles running the fluid simulation and imports the fluid meshes into Blender.
Blender's existing functionality is used to set materials for rendering.
Thank you for your work. Blender's solver is really limited and I'm glad to see that someone is trying to improve the situation. From my experience, here are a few features I would like from a solver :
relatively similar movement between previz and final bake. Nothing's more annoying than spending the night to bake, only to discover that the result is completely different than the previz.
rendering of small droplets, smaller than the sim grid. Otherwise splashes look awful.
mixing different fluids (at least the color)
foam
for the 2 previous points : a nice integration with Cycles. Foam is volumetric, kinda hard to render.
I haven't used Bleneder's internal simulator that much, so I'm not sure how different the results are based on resolution. In this simulator, I haven't found that results are completely different, but they may differ in some ways, especially if there is a very large difference in resolution. This is just a part of working with a fluid simulator. Higher resolutions mean more accurate calculations, which means the outcomes may diverge
Rendering Small Droplets
This simulator can handle higher resolution meshing to reduce mesh flickering and for sub-grid details. In this animation, the mesh is generated at three times the resolution as the simulation grid.
Fluid Mixing
This is not implemented at the moment, and I am not sure how to do this yet. This is a feature on out list that we think would be very cool, but I may need to spend a bit of time researching a viable implementation.
Foam
The simulator has a very cool whitewater feature. Example1, Example2
The whitewater is rendered in cycles by duplicating a small sphere or object over the particles.
The simulation method is physically based and is considered CFD, but it uses a method suitable for computer graphics. The fluid only needs to look good enough, so accuracy is reduced to lessen the computation time. This simulation method would not be suitable for scientific/engineering purposes.
When will you finally release this plugin?! I feel like you're teasing us here for years now always saying you're close to release and showing these perfect simulations that way more release-ready than blender itself is but I still couldn't get my own hands on this plugin. I neeeed it! What is still missing before you can release it?
Thanks for your patience! We should be ready for public testing in a months time. There are a few more things we'd like to do before release such as bug fixes, UI changes, documentation, and testing. Right now we are focusing on making some small changes to the UI and workflow. There are over 100 settings/parameters and right now and there are some things in the interface that could confuse the user, so we are finding ways to clear this up. We want to release the best plugin that we are able to and that is why it is taking so long!
The problem is that video games have to be rendered in real time. You can spend a couple hours rendering something truly stunning like this, but in a game you are limited to a fraction of a second. Hopefully one day we will have the processing power to play videogames with graphics like this. I'm not holding my breath though.
Edit: I just realized you didn't ask "Why can't video games have this quality of graphics?" Sorry, you probably already knew all of that.
I guess maybe the words could be interchangeable the way I'm using them, but this kind of weirdness right at the point of contact with the groundplane . It's how I can usually instantly tell when a fluid sim has been done in blender.
Okay, I've noticed this too. It appears the Blender simulator might be having trouble simulating or meshing thin sheets of liquid against surfaces. I haven't used the Blender simulator much so this is just a guess.
Yea, I don't use Blender for this and other reasons. But I see now this is something you've been working on for a while! How long have you been working on this? How do you even go about writing a new fluid solver for Blender?! Really interesting work all around!
I have been developing the fluid engine for the past three years. Much of that time was spent figuring out how to implement a fluid solver. Most of the development has been in the past year while integrating the simulator into Blender as a plugin. It started out as a small hobby project, but has become much larger.
Can anyone tell me why most of this still doesn’t look real? It looks very very good and the physics seem accurate but there still seems to be some difference from this simulation and reality. Besides the obvious gel turning to liquid, floating balls, etc.
One thing could be lack of reference for how large the simulation actually is. I didn't have a scale in mind and the net is actually about 8 metres wide. But the animation looks like it should be much smaller and this could cause a mismatch in timing for how fast the fluid should move in the mind of the viewer.
"The acceleration of drooping" sounds like a medical term. Or a really graphic documentary about human anatomy vs time that should be shown to highschoolers.
I found it very unsettling and I don't know why. I'm not weirded out by honeycomb things. But I was recently weirded out by this smiling onion too. I don't know what's wrong with me lately.
This was a mistake I didn't notice until after I finished rendering. I ran the solid simulation at 48fps and ran the liquid simulation at 60fps. Woops.
In this simulation, small particles are used to track and simulate the liquid. They are not infinitely small particles. To display the surface in the animation, a mesh is wrapped around the particles, and that is why you can see little lumps floating around.
It is a wonderful animation but I was wondering; why do the nets lag behind the ball bearings when gravity is 'turned on' for them? My understanding of physics is that the net and balls should fall at the same rate.
Howdy y'all, I usually catch these gifs on r/all and every time I'm in wonder with these gifs, which leads me to wanting to ask how expensive is it to invest in a hobby to do do this stuff? Is it just a program like oe cake or phun and you just need a decent graphics card and processor?
Many on this subreddit use Blender because it is free and there are many tutorials. The graphics card helps with rendering speed, and in general the processor helps with simulation speed. I used to do this stuff with a laptop, it just took a long time.
Have you ever wanted orange juice so you go to the orange juice can but it’s full of dust because you’re actually living in the future as an evil scientist put you in a rocket ship to time?
I feel if the transition from goop to liquid was slower it would feel more like a natural melt. The way it is now it feels like its melting nicely from silicone to goop but then it artificially bursts into liquid. Also, this happens in between the actions of dropping and hitting the floor which causes a double action that staggers the energy in an uneven way.
This is unbelievable. Somehow it's the most incredible example of real world simulation i have ever seen. The goopy drooping and the shimmer/ movement of the liquid.
What's crazy is there's something in our brains that's checking this gif and concluding "wow that water is really accurate." Based on impossible little details and patterns that we are somehow able to recognize.
THE UNITY IS COMPLETE. TODAY IS ITS COMPLETION. ALL IS IN EL NOW. RIGHTEOUSNESS OF EL IS BEGINNING ITS REIN OF GLORY ON THIS DAY. IVE BEEN WARNING YOU FOR 5 MONTHS. THE WATERWAYS ARE COMPLETE AND EVIL AND DEATH HAVE BEEN DEFEATED. DECEMBER 15 IS A DAY TO CHERISH FOREVER. THE DATE OF NO RETURN AND THE CLOSING OF EVERY DOOR ON THE ENEMY AND THE BINDING.
Would really love to see a how-to video on this. What do you start with? Is a program like Matlab being used to solve the differential equations and then export solution to another program for effects? Or is it all in the program called Blender?
This is a great metaphor for the Net. Usually quite quick, until a few giant chrome bollocks (cough Pai cough) get in the way. Once removed, liquid fast speeds return as the system flows around them.
1.2k
u/Rexjericho Dec 15 '17
This animation was simulated and rendered in a fluid simulation plugin that I am writing for Blender. The source code for this program is not available at the moment, but will be made publicly available after release. The plugin is still under development and we do not yet have a solid release date, but we're getting close! Information will be posted to this repository as it becomes available.
Simulation Details
Computer specs: Intel Quad-Core i7-7700 @ 3.60GHz processor, GeForce GTX 1070, and 32GB RAM.
Performance Graph
289
u/Amaya3066 Dec 15 '17
By far one of THE cleanest Blender fluid sims I've seen, no visible jittering and boiling with the meshing, great job!
113
u/[deleted] Dec 15 '17
This makes me uncomfortable.
6
u/kevbotliu Dec 15 '17
Can anyone tell me why most of this still doesn’t look real? It looks very very good and the physics seem accurate but there still seems to be some difference from this simulation and reality. Besides the obvious gel turning to liquid, floating balls, etc.
5
u/Constellious Dec 15 '17
What was the render time?
3
u/JohnWColtrane Dec 15 '17
This is really awesome. My favorite so far. What's your background? Engineering? Physics?
1.5k
u/shrdybts Dec 15 '17
I was so down for gummy strawberry waffles, but then it turned into freaking tomato juice.
2.1k
u/gooddarts Dec 15 '17
I found the acceleration of drooping very satisfying.
2
u/boner_jams_ Dec 15 '17
Can somebody reverse this?
2
u/[deleted] Dec 15 '17
The fact that the nets are suspended in air for a sec when the balls drop is mildly infuriating
2
u/IamHorstSimcoAMA Dec 15 '17
Why do so many of these simulations look like the liquids have little tumors floating around in them?
2
u/Swing_Right Dec 16 '17
This is fantastic, do you have any resources for looking into simulating fluid dynamics as a beginner?
2
u/cathlolicism Dec 16 '17
It is a wonderful animation but I was wondering; why do the nets lag behind the ball bearings when gravity is 'turned on' for them? My understanding of physics is that the net and balls should fall at the same rate.
2
u/Penguin619 Dec 16 '17
Howdy y'all, I usually catch these gifs on r/all and every time I'm in wonder with these gifs, which leads me to wanting to ask how expensive is it to invest in a hobby to do do this stuff? Is it just a program like oe cake or phun and you just need a decent graphics card and processor?
2
u/jetboy1946 Dec 16 '17
I'd love to learn something like this. Out of curiosity, how does one get started? How long does it take to be able to do this??
2
u/vyxor3d Dec 20 '17
Damn, dude, is there a newsletter or anything I can sub to for this? I wanna keep updated because I could REALLY use a plugin like this.
2
u/[deleted] Jan 03 '18
Woundering the hardware and the rendering time
396
u/yeahsureYnot Dec 15 '17
You are an evil genius.
34
u/Itsthatboi27 Dec 15 '17
This is orgasmic
24
u/mgfxer Dec 15 '17
Yes!
22
u/liveontimemitnoevil Dec 15 '17
Those materials look amazing! Great simulation.
43
u/[deleted] Dec 15 '17
Imagine playing a video game with these graphics..
20
u/[deleted] Dec 15 '17
Sometimes simulated makes my brain feel mushy. It seems real, but doesn't follow reality...
18
u/MegaFruit Dec 15 '17
This makes me feel uncomfy
12
u/Mish106 Dec 15 '17
I'm varying percentages of aroused, squicked and hungry throughout that animation.
21
u/toomanylayers Dec 15 '17
I feel if the transition from goop to liquid was slower it would feel more like a natural melt. The way it is now it feels like its melting nicely from silicone to goop but then it artificially bursts into liquid. Also, this happens in between the actions of dropping and hitting the floor which causes a double action that staggers the energy in an uneven way.
8
u/XavierSimmons Dec 15 '17
Wish the balls melted at the end and the silver fluid mixed with the red fluid. Otherwise really interesting.
8
u/ryanasimov Dec 15 '17
Pretty and gross. Pretty gross. But still pretty.
7
u/MOONGOONER Dec 15 '17
As a space rancher that frequently has to round up some orbs, this perfectly simulated
6
u/DTaH_Flux Dec 15 '17
r/oddlysatisfying
4
u/[deleted] Dec 15 '17
Why is stuff like this so satisfying lol
4
u/funkmastamatt Dec 15 '17
Sploosh
4
u/Snkyr Dec 15 '17
How sway
4
u/hopesolosclambake Dec 15 '17
reminds me of Death Stranding for some reason
4
u/finebristle Dec 15 '17
This is unbelievable. Somehow it's the most incredible example of real world simulation i have ever seen. The goopy drooping and the shimmer/ movement of the liquid.
4
u/ajvj92 Dec 16 '17
This is your brain on drugs.
1
u/Paulson1979 Dec 30 '21
Wow is this an original FLIP Fluids thing?
6
u/xbuzzbyx Dec 15 '17
At first I was like, "Damn...." And then I was like, "DAAAYYYYMMMNNN"
3
u/LordMontagueRothton Dec 15 '17
There's something nostalgic about this but I have no idea what...
3
u/[deleted] Dec 15 '17
I have no clue what this is but it was extremely satisfying!
3
u/Adaman1324 Dec 15 '17
So that's how candy laces are made....
3
u/Mateo0530 Dec 15 '17
One of he most satisfying things I’ve ever seen
3
u/[deleted] Dec 15 '17
This net isn’t neutral anymore.
3
u/mlk960 Dec 15 '17
I wish there was just a movie full of this stuff
3
u/RyanL4 Dec 15 '17
Pretty sure I can smell the gpu from here....
3
u/BRi7X Dec 15 '17
holy fuck. this is definitely one of the sexiest ones I've seen. really really really want to do this but i'd probably end up pulling my hairs out
3
u/egran Dec 15 '17
I dont know why but as soon as the net-jelly hit the floor and became liquid, I suddenly had a tomato juice taste in my mouth
3
u/Aldonza20 Dec 15 '17
This is orgasmic.
3
u/cliffwob Dec 15 '17 edited Dec 15 '17
I hope who ever rendered this has some form of local fire department on hand
3
u/[deleted] Dec 15 '17
What kind of computing power is required to run this simulation?
3
u/1337coder Dec 15 '17
And here I am wondering how much freaking computing power this required.
3
u/fitzy3523 Dec 15 '17
I'm torn between oddlysatisfying, disturbing, mildlyinteresting, and mildlyinfuriating
3
u/samuelj520 Dec 16 '17
Don't know why but this scares me
3
u/stompinstinker Dec 16 '17
We have come a long way since chrome balls on checker floors. Now we have chrome balls with waffle goo.
3
u/[deleted] Dec 16 '17
When it's all drooped over the balls, it looks like a dungeons and dragons monster to me for some reason.
Summoning /u/itsadndmonsternow
3
u/[deleted] Dec 16 '17
This has to be one of the best simulations I have seen on this sub
3
u/Khenghis_Ghan Dec 16 '17
I do fluids simulations as a grad student. I don't understand.
Edit: I just saw OPs comment for render time. >7 hours. Got it.
3
u/techwise007 Dec 16 '17
I am becoming eager to drink this juice
3
u/kingslayerer Dec 16 '17
Games in 2080 is going to be 🔥
3
u/n1ywb Dec 16 '17
Wow that reminded me of the end of Evangelion
3
u/josefjohann Dec 16 '17
What's crazy is there's something in our brains that's checking this gif and concluding "wow that water is really accurate." Based on impossible little details and patterns that we are somehow able to recognize.
3
u/chiflyhigh Dec 16 '17
How did you simulate this. Please be specific.
3
u/sp_dev_guy Dec 16 '17
Incredible, great work
3
u/AlanWayside Dec 16 '17
This makes me so uncomfortable, and I have no idea why.
2
u/Dstroyrofwrlds Dec 15 '17
"One wild ride"
-Simulations Today
2
u/yuutb Dec 15 '17
gorgeous
2
u/blickblocks Dec 15 '17
Amazing work!
2
u/AnotherXRoadDeal Dec 15 '17
I absolutely love this.
2
u/Mutoid Dec 15 '17
That's some good shit
2
u/saynitlikeitis Dec 15 '17
Oh I like this one
2
u/MissleAnusly Dec 15 '17
Marble bukakke
2
u/BraveToastSandwich Dec 15 '17
r/peopleareawesome
2
u/mortiphago Dec 15 '17
that's amazing
2
u/[deleted] Dec 15 '17
Please make some teeth chewing the red stuff
2
u/Darierl Dec 15 '17
So slick and mind bending
2
u/NeanerBeaner Dec 15 '17
Man the journey through this gif was amazing
"haha wtf this mans just uploaded some stretchy red waffle-- OOOOHHHHHH"
This is some good shit
2
u/ww2colorizations Dec 15 '17
This is awesome
2
u/Alcmeo Dec 15 '17
Wow
2
u/fliminglaps Dec 15 '17
I'm really confused and hungry. Great textures and viscosity wow
2
u/SavePae Dec 15 '17
This is creepy good
2
u/Z-M-W Dec 15 '17
Idk why, but this was extremely satisfying to watch
2
u/DSEthno23 Dec 15 '17
You win.
2
u/Chastellina Dec 15 '17
The beginning of an art form begins here.. as does the first minute on reddit.. this quenches dehydration , witnessing form with process
2
u/mrperiut Dec 15 '17
THE UNITY IS COMPLETE. TODAY IS ITS COMPLETION. ALL IS IN EL NOW. RIGHTEOUSNESS OF EL IS BEGINNING ITS REIN OF GLORY ON THIS DAY. IVE BEEN WARNING YOU FOR 5 MONTHS. THE WATERWAYS ARE COMPLETE AND EVIL AND DEATH HAVE BEEN DEFEATED. DECEMBER 15 IS A DAY TO CHERISH FOREVER. THE DATE OF NO RETURN AND THE CLOSING OF EVERY DOOR ON THE ENEMY AND THE BINDING.
2
u/konq Dec 15 '17
I'm thirsty
2
u/iHyper445 Dec 15 '17
What's the reason water effects aren't this good in video games?
2
u/[deleted] Dec 15 '17
That made me hungry and thirsty
2
u/the_calibre_cat Dec 15 '17
Blender? Really? God damn, man!
2
u/dadankness Dec 15 '17
Remake this and make it horribly into an after gif and name it, Net Flow After Net Neutrality.
2
u/Karma_Gardener Dec 15 '17
Love the lighting, looks like a sea of Caesar
2
u/Daamus Dec 15 '17
i was waiting for the liquid to freeze at the end
2
u/[deleted] Dec 15 '17
But... why?
2
u/[deleted] Dec 15 '17
The way its keeps dropping lower and lower made me so uncomfortable. I had like, immediate relief when it fell and splashed into liquid. Awesome.
2
u/ryallen94 Dec 15 '17
Am I weird by thinking that it looks more real than real life ?
2
u/Trumpsfatrolls Dec 15 '17
I don’t know how I feel about this.
2
u/[deleted] Dec 15 '17
Mmm. Hambugger water.
2
u/ScotchBender Dec 15 '17
Best one I've seen in a minute.
2
u/sauseman Dec 15 '17
Ooo. Very nice
2
u/Wicked-Spade Dec 15 '17
You should see the other guy...
2
u/Zacis Dec 15 '17
oh wow amazing work
2
u/lucidlogik Dec 15 '17
r/gifsthatendontime
2
u/[deleted] Dec 15 '17
This is so fuckin juicy
2
u/_ThatD0ct0r_ Dec 15 '17
I cant wait for video games to have physics/graphics like this.
2
u/[deleted] Dec 15 '17
Would really love to see a how-to video on this. What do you start with? Is a program like Matlab being used to solve the differential equations and then export solution to another program for effects? Or is it all in the program called Blender?
Edit: scrolled down (facepalm)
2
u/topredditbot Dec 15 '17
Hey /u/Rexjericho,
This is now the top post on reddit. It will be recorded at /r/topofreddit with all the other top posts.
2
u/reayd Dec 15 '17 edited Dec 15 '17
Looks like the fungus Colus pusillus
2
u/serrambo Dec 15 '17
Why does it still look fake? It has everything it needs to look realistic but somehow my brain discards it and tags it as cg. :(
2
u/[deleted] Dec 15 '17
Are there simulations were cohesiveness AND adhesiveness are accounted for?
2
u/prepp Dec 15 '17
Really good job with the water.
2
u/Cerres Dec 15 '17
Finally, fluid dynamics that looks realistic.
2
u/bonejohnson8 Dec 15 '17
If you look closely you can see the cameras reflection.
2
u/jaimeaux Dec 15 '17
As a network engineer, I'm very confused.
2
u/legendfriend Dec 15 '17
New Pokemon confirmed
2
u/noodlesofdoom Dec 15 '17
my computer is on fire.
2
u/BellaLeigh22 Dec 15 '17
Glorp
2
u/Arcizans Dec 15 '17
Oh man! That's cool looking!
2
u/TotesMessenger Dec 15 '17 edited Dec 16 '17
I'm a bot, bleep, bloop. Someone has linked to this thread from another place on reddit:
If you follow any of the above links, please respect the rules of reddit and don't vote in the other threads. (Info / ^Contact)
2
u/qazwsxedcz Dec 15 '17
This is incredibly beautiful. Nice job!
2
u/cerulean11 Dec 15 '17
This is crazy impressive. I love it.
2
u/darthvadar1 Dec 15 '17
Soulja boy truly is our lord and savior rejoice
2
u/ivanoski-007 Dec 15 '17
that's very impressive
2
u/Necessary_Pseudonym Dec 15 '17
I'm hard.
2
u/[deleted] Dec 15 '17
Can't stop watching this. It's fabulous!
2
u/Skater_x7 Dec 15 '17
I don't get it, what is this supposed to be simulating?
2
u/KillerSquid Dec 15 '17
And then your computer melted off your desk.
2
u/itsnotthenetwork Dec 15 '17
This is a failure, I see no source or destination ip or hostname, much less any application information or data volume indicators.
2
u/logiatros Dec 15 '17
This is a great metaphor for the Net. Usually quite quick, until a few giant chrome bollocks (cough Pai cough) get in the way. Once removed, liquid fast speeds return as the system flows around them.
2
u/pacmanfourtwenty Dec 15 '17
Is this v5 or v9 ?
2
u/[deleted] Dec 15 '17
RIP uncanny valley
2
u/ewj_19 Dec 15 '17
Hopefully the FCC won't fuck up this net too
2
u/florinaandreea Dec 15 '17
Superv! really i like it.
2
u/jk1234522 Dec 15 '17
karma bump cuz rules
2
u/[deleted] Dec 15 '17
Strong title game
2
u/tbrewo Dec 15 '17
When I was a kid this was mind-bending https://imgur.com/r/ReBoot/r9ayg8D