00:00 Introduction 01:21 Rendering 03:20 Shapes 05:16 Colors 06:16 Ending A big thanks to AlexIsLouis for the music :D His channel / @alexislouis2320
Пікірлер: 450
@AzazelOne2 жыл бұрын
The early simulation without the rendering reminds me of the mantle and tectonic plate movements...there are so many possibilities with even a physics engine like this. Amazing work!
@sergioibarra34612 жыл бұрын
Exactly and the air convection currents and marine water movement around magma it’s so interesting
@canrex75402 жыл бұрын
@@sergioibarra3461 I guess I never thought about how "hot air rises" applies to heat in general. Incredible generalization!
@ProjectPhysX2 жыл бұрын
That phenomenon is called Rayleigh-Benard convection. It happens in the Earth's mantle, it happens with fire, and it happens with oil in a hot pan. Really interesting to see this emerging from the simple sphere collision model. With my lattice Boltzmann fluid solver, I can do this in 3D in real time: kzbin.info/www/bejne/onXWq2WjlsaNe9E
@random_guy_on_the_internet692 жыл бұрын
The circle ones remind me of solar eclipses
@SwagGaming872 жыл бұрын
same
@Krazylegz422 жыл бұрын
I studied fire simulations at university and this is really cool! You're effectively doing a particle simulation of convection cells, and I'm betting if you scaled it up to 3D you could get some Rayleigh-Bernard convection cells going too! I'm really curious how long it takes to run and render these. Awesome work!
@znefas2 жыл бұрын
The title does say real-time, so I'd imagine that it's actually written as a shader to run on the GPU
@PezzzasWork2 жыл бұрын
The simulation is running on the CPU, but it could certainly be ported to a shader for massive speed up
@Krazylegz422 жыл бұрын
@@znefas Lol good point, I got so distracted with the visuals I didn't read the title. I'm used to more science-focused simulations that take days
@ProjectPhysX2 жыл бұрын
My OpenCL lattice Boltzmann CFD software can simulate real time Rayleigh-Benard convection in 3D: kzbin.info/www/bejne/onXWq2WjlsaNe9E
@fearisan2 жыл бұрын
@@PezzzasWork I love it! Are you using SIMD? If not and you don't feel like dealing with C SIMD intrincis, you could a) use OpenCL to run it on the GPU (SIMT) and CPU (SIMD). I don't know how good the OpenCL compiler is at translating a SIMT program (kernel) to SIMD but I expect it to do rather well. b) There is also Intel's ISPC language to more comfortably write SIMD and SIMT programs. At least more comfortably than in C. Really, I think the way forward would be OpenCL or ISPC. There's of course also compute shaders in OpenGL and so on. And CUDA. Personally, I'd take the flexibility of OpenCL over CUDA any day but ymmv. Maybe I'm just burnt on it because I did CUDA for multiple months for my thesis.
@uncannysnake2 жыл бұрын
Looks quite nice! However what I don't like is how the flame positions are essentially self-reinforcing with that model. This was especially visible with the ring as the flame positions just did not change. I think it needs some random variation with the heat source to combat that
@PezzzasWork2 жыл бұрын
Yes I didn’t experiment heat source variation, this is a first shot there is plenty to improve
@jfk_the_second2 жыл бұрын
@@PezzzasWork Does this mean we can expect more fire stimulations? 🔥
@PezzzasWork2 жыл бұрын
@@jfk_the_second maybe! it depends if I have interesting things to share :)
@turdle27672 жыл бұрын
@@PezzzasWork you can add viscosity and collision. you could make a tornado of fire, you could create the sun, you could make a flamethrower you definitely have interesting things to share
@BoostedApe12 жыл бұрын
@@PezzzasWork Have you considered making a second channel for uploading said "less interesting" things (basically cool things with not enough depth to produce a video)
@williambarnes50232 жыл бұрын
The "trick" you used to get flying particles is the key to how the body of the fire as a whole works on a fundamental level. The chance that a particle is drawn on any particular frame is proportional squared to its temperature, and a particle only cools on a frame where it renders, otherwise it stays the same temperature and is invisible. You don't need to pick out a threshold of 3% or a particular range. The same rule applies to all of them. The only thing missing is that collisions between particles should convert some amount of their momentum into temperature, so it's not a straight transfer of heat, the sum of heat increases some from the lost velocity.
@zop57252 жыл бұрын
Great work! I think adding wind as a noise generated Vector field would make the fire Look even more realistic. Your simulation forms many straight columns in which the hot particles move upwards. These Columns don't are that clean and straight in real fires. I think that is because of the wind and air turbulence.
@bartybum2 жыл бұрын
Higher temperature shouldn’t explicitly cause an upward force, but a reduction in particle mass
@gaz38972 жыл бұрын
Really impressive. I've been a firefighter and dabbled in programming for a few years now, have always wondered how possible it is to recreate fire behaviour in code. You're taking early steps to something I don't think that has been accurately done before! Really curious to see more.
@PezzzasWork2 жыл бұрын
Thank you! I don’t know if my approach could be used for realistic simulations since it is very simple
@gaz38972 жыл бұрын
@@PezzzasWork One of the best examples I've seen of reasonably accurate fire propagation.. Add smoke as fuel, and some interaction with oxygen and then it would interact in very realistic ways. It's great mate! Better than you realize
@Shrooblord2 жыл бұрын
Wow that's really cool to hear from an expert in the field..! Thank you for your service Gaz. Big respect
@kotazkozla2532 жыл бұрын
@@Shrooblord xd
@desp4life2 жыл бұрын
I discovered your channel today, I've been watching your older videos, and now there's a new upload too. Today is a good day. Thank you for your content, it's amazing! Both impressively interesting and beautiful.
@NavidIsANoob2 жыл бұрын
I'm so glad I subbed to this channel recently. You make some very clever, innovative stuff! Those ring simulations remind me of the ending of Annihilation.
@blakegutowski1592 жыл бұрын
I DONT UNDERSTAND HOW THIS KZbin CHANNEL ONLY HAS 43K SUBS!! this is so underated
@JackAllpikeMusic2 жыл бұрын
you have no idea how much I love these videos. They are so inspiring to me as I really love simulation programming, but am hopeless at it myself. Please keep making more of these
@judebreheny39252 жыл бұрын
I love your outros so much.
@VitaNova832 жыл бұрын
I love how you iterate on the emergent properties and behaviour of the simulation and see where it takes you.
@redbloodcell40472 жыл бұрын
So beautiful seeing it all come together step by step
@professionalnerd1095 Жыл бұрын
I swear, the music on these videos + the mesmerizing visuals is second to none... I've watched these like several times while implementing along with.
@tannerh77742 жыл бұрын
Your videos never cease to amaze me, great job as always
@itbecharlie2 жыл бұрын
Been following you for a couple years and every video you amaze me with some new computational technique. Awesome stuff, keep it up!
@tristenmiller31532 жыл бұрын
I just found your channel and I think this stuff is super interesting. Thanks for sharing it!
@krit68472 жыл бұрын
I have no idea how this is working and where to start understanding it, but it looks amazing!!
@LJay2052 жыл бұрын
Extremely well structured video! i loved the way you did everything in easy-to-understand simple steps.
@blubglub2 жыл бұрын
very realistic! i love it! :)
@normalicious97342 жыл бұрын
There's something very enchanting about this video, the combination of music and visuals is amazing
@mslijkhuis2 жыл бұрын
Very cool! I don't think i've ever seen a Verlet fluid sim like this before. I was surprised to see those nice vortices show up around 1:00 in! I've messed around with stable fluids, PIC/FLIP, etc. but it has never occurred to me to use actual particle collisions like this. Inspiring work!
@valeriy98622 ай бұрын
Man you are genius! I am doing warehouse programming at work and now trying to reproduce your results at home as a pet project. Thank you!
@Mystixor2 жыл бұрын
Wow I love it! Your simulations are always so inspiring for me to code stuff like this as well
@Tann1142 жыл бұрын
Excellent work, Pezzza. Your videos are always delightful
@katakaze2 жыл бұрын
not a programmer but here for the aesthetics. your rendering and breakdown of fire taught me so much about how flame and convection work. a piece of art! thanks for sharing.
@mightymoaman24852 жыл бұрын
Always a pleasure to watch your stuff man.
@Jaun_2 жыл бұрын
Always love the quality of content from this channel
@mustafaark47622 жыл бұрын
wow, it doesn't get more cooler than this, lads.
@AstonJay2 жыл бұрын
And it's so smooth! I absolutely love this! Thank you for sharing! I'm learning programming and want to get into physics simulation. This is awesome!
@dragonminz6022 жыл бұрын
Thats amazing! You motivate me to do more simulations. You are a great inspiration.
@dkolb2 жыл бұрын
I love the ending most of all. Thanks for making this.
@Htrom12 жыл бұрын
This is incredibly beautiful. Well done
@dazcarrr2 жыл бұрын
at some points in the beginning it looked like magma - with tweaking this could become a really cool volcano simulation
@PezzzasWork2 жыл бұрын
It’s funny you mention this because I was trying to do a volcano simulation when I saw this and decided to turn it into fire
@dottedboxguy2 жыл бұрын
i really do love how your outro is to somehow put your pfp into the simulation, that's amazing
@benpope102 жыл бұрын
Awesome video as always! Keep up the good work
@mrw0lf3642 жыл бұрын
this channel deserves so much more subscribers, amazing content.
@cyberneticstudio87362 жыл бұрын
You deserve mkre subscribers, all your projects are so well made and it really encaurages you to learn C++
@cassiopeiae7992 жыл бұрын
this channel really is something else! really inspiring
@a52productions2 жыл бұрын
Beautiful! I would have used some kind of fluid sim for something like this, but this is simpler and gets better results than I could. Incredible work.
@williamhart79422 жыл бұрын
looks great! the way you made the sparks was very smart.
@TheOneLionheart2 жыл бұрын
This is so freaking awesome. I'd love to see this in 3D, simulating an oil slick or something, but what would be really awesome, and probably require a supercomputer, would be simulating something like a small star (3D fireball, essentially). I'd love to see what it looks like at each order of magnitude more particles.
@diegofuentes26078 ай бұрын
The work you did is really awesome!
@pauliuscernius58208 ай бұрын
Love your work, very inspiring!
@PezzzasWork8 ай бұрын
Thank you!
@OrionMelodyMusic2 жыл бұрын
Wow, just wow! For as awesome as the animation is, I want to say that your choice of music could not have been better! I'm a fan of any background music that fits its video, and boy did this one do that! You could have gone the more enthusiastic/energetic route, but the slow, almost pensive nature of this track really served the animation so, so well! Awesome track, awesome animation, awesome video!
@PezzzasWork2 жыл бұрын
The music has been made specifically for this video by a friend, if you like it you should really check his channel kzbin.info/door/UWRUMnMP50v4x0CI2WMVHw !
@stickworldanimated9545 Жыл бұрын
!
@gumbo64 Жыл бұрын
@@PezzzasWork omg i was absolutely mesmerized when I watched it first, went to bed straight afterwards. Such calming music
@Haagimus2 жыл бұрын
Now add a surface nearby, then have the heat transfer build up until the property 'flashpoint' is reached then the fire can spread? It is way more complicated than that but, it gets the point across I think. Awesome video, love this stuff, keep up the great work 👍🏻
@99ZULU2 жыл бұрын
Amazing work, also, the music brought me back to my EvE Online days
@esakohaki4308 Жыл бұрын
This is unreal. I always wanted to dabble in the dark (cool) arts and this is a perfect way to start! Thanks you well earned a subscription I hope you earn many more! (Sorry for bad English not my first language)
@the0neskater2 жыл бұрын
Beautiful work!
@ChristofFritz2 жыл бұрын
this looks stunning!
@Babeuf312 жыл бұрын
Found your channel through youtube reccomendation to your previous video. Hope algorithm keep working in your favor. Great work
@markb26722 жыл бұрын
This looks very cool but the fire seems to separate out into single strands and lacks general volume, I wonder if playing with masses of the objects based on temperature could help it fill up. Keep up the great work!
@BlueSky-fj7yi2 жыл бұрын
Love your work! Such a creative mind 😊
@NiallHorn Жыл бұрын
I thought this was going to be a ‘Stable Fluids’ paper like implementation, very impressed with your pure particle approach !
@CodeParticles2 жыл бұрын
This must have been a hoot to tinker with. I just finished with boids simulations and just got into 3d physics and it's a whole world to rabbit hole into with so many experiments, I love it! 👍👍👍👍
@Azoryth2 жыл бұрын
Oh my God this is fantastic! The insane realism that the bloom adds is really amazing and surprisingly simple. Really great work!!! I wonder if you could a 3d cube version 🤔
@theultimatekiwi2 жыл бұрын
Absolutely beautiful
@itthinks17552 жыл бұрын
Breathtaking 🤩🤩
@bil4x467 Жыл бұрын
This is amazing work!
@monsada60402 жыл бұрын
I cant look away from the rings and fireballs. Feels like a dance
@esziis Жыл бұрын
Love it! Keep up the good work.
@samochreno2 жыл бұрын
Looks beautiful
@HomerSimpson9002 жыл бұрын
Cool! Kudos on your channel. I like how you show the simple rules that let fun complex behavior emerge. For this you should look into non-monotonic coloring. What we see as the "white hot" regions of a typical hydrocarbon fire are actually radiating soot particles that are only present in an intermediate temperature window, not the hottest parts of the actual flame itself.
@whoe_whate84872 жыл бұрын
This is incredible.
@rashid.harvey Жыл бұрын
As always an excellent instructional video
@kirbyzaz2 жыл бұрын
I really gotta study this someday It's very satisfying seeing how this is made step by step
@The-Devils-Advocate2 жыл бұрын
Fascinating!
@PaulO-ym5dm2 жыл бұрын
crazy music, love it!
@Link_56 Жыл бұрын
J'adore, c'est tellement bien fait
@Vaaaaadim2 жыл бұрын
Looks awesome!
@repogamesstudio23662 жыл бұрын
Youre doing great work, thank you man - it looks so eaasy
@oneleaf11 Жыл бұрын
One thing that might make this look cooler: Decrease the heat required to rise, and make hotter particles rise faster.
@RhysShuhai2 жыл бұрын
That is so cool man, must have taken forever to render that, good job!
@nacnud_2 жыл бұрын
I'm calling that a good job, well done.
@nuajbo46932 ай бұрын
looks great!
@Sekir802 жыл бұрын
Wow, this video is really fire!
@gluonic2 жыл бұрын
it looks so lit! 🔥🔥🔥
@vikanitealt62292 жыл бұрын
This is oddly therapeutic and relaxing
@Zappygunshot2 жыл бұрын
Very nice, excellent work
@doolee5704 Жыл бұрын
Genuinely cool.
@TheNameIWantedWasTuk2 жыл бұрын
amazing work
@Djellowman Жыл бұрын
Amazing, really cool!
@toutencookie70762 жыл бұрын
You should combine this simulation with the "star" simulation but more pressure = more heat
@LunauticalDev2 жыл бұрын
KZbin recommended showing me more cool random videos. Interesting topic!
@expertoflizardcorrugation39672 жыл бұрын
This both looks really cool, and like it would be fun to play around with the rules and see what you can get out of it.
@thetruebenmomo8 ай бұрын
wow ! c'est très beau à voir !! Joli travail !
@gblawrence0342 жыл бұрын
This is so cool man well done 👍
@FloatingOer2 жыл бұрын
This looks very nice. I wonder if creating heat distortion as well would make it look even better to
@codeplayer85752 жыл бұрын
This is awesome!
@aleksandarstankovic4476 Жыл бұрын
Impresive!
@christopherhodge Жыл бұрын
Great work !
@Leistria2 жыл бұрын
When I saw the rendering of this, instead of thinking of fire I thought of magma eruptions.
@drew4163 Жыл бұрын
so cool and satfisestuing🔥🔥🔥🔥🔥
@witalian12 жыл бұрын
One notable thing missing is the smoke. Fortunately you don't need to do anything different to simulate the smoke since the bright flame and the smoke are the same thing: the burned out gasses rising up because of heat. Just add cold particles all the way up and make sure the heat transfer is much slower the colder the particle get so the smoke keeps rising up because the temperature difference remains much longer.
@eleanordawn80552 жыл бұрын
incredible!
@peytonjenkins53162 жыл бұрын
This reminds me of the fiery backgrounds of videos for "reverb" or "party" versions of songs. I imagine that you could change a parameter real time in sync with a characteristic of a song to make a dancing fire! For example, the color changing with time, and the upward force of the heated particles being in proportion to the songs volume. Maybe an entire flaming DJ-frequency-bar-chart-thingy (IDK what they're called) is possible.
@SOVIETUNIONISBEST2 жыл бұрын
Some looks likes lava, the lava breaks through creating cool visuals.
@Fine_Mouche2 жыл бұрын
you make me smile so much because it's so cool.
@PezzzasWork2 жыл бұрын
Thank you!
@lizardy28672 жыл бұрын
In the case of adding velocity, it would've been nice to see a more realistic interpretation, that being that heat rises, not just increasing in velocity. When looking at the circular forms then, this would result in a fire which wraps around the form to reach the upper limits of the container, rather than spewing out in all directions.