Real time Fire Simulation

  Рет қаралды 154,288

Pezzza's Work

Pezzza's Work

Күн бұрын

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
@AzazelOne
@AzazelOne 2 жыл бұрын
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!
@sergioibarra3461
@sergioibarra3461 2 жыл бұрын
Exactly and the air convection currents and marine water movement around magma it’s so interesting
@canrex7540
@canrex7540 2 жыл бұрын
@@sergioibarra3461 I guess I never thought about how "hot air rises" applies to heat in general. Incredible generalization!
@ProjectPhysX
@ProjectPhysX 2 жыл бұрын
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_internet69
@random_guy_on_the_internet69 2 жыл бұрын
The circle ones remind me of solar eclipses
@SwagGaming87
@SwagGaming87 2 жыл бұрын
same
@Krazylegz42
@Krazylegz42 2 жыл бұрын
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!
@znefas
@znefas 2 жыл бұрын
The title does say real-time, so I'd imagine that it's actually written as a shader to run on the GPU
@PezzzasWork
@PezzzasWork 2 жыл бұрын
The simulation is running on the CPU, but it could certainly be ported to a shader for massive speed up
@Krazylegz42
@Krazylegz42 2 жыл бұрын
@@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
@ProjectPhysX
@ProjectPhysX 2 жыл бұрын
My OpenCL lattice Boltzmann CFD software can simulate real time Rayleigh-Benard convection in 3D: kzbin.info/www/bejne/onXWq2WjlsaNe9E
@fearisan
@fearisan 2 жыл бұрын
​@@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.
@uncannysnake
@uncannysnake 2 жыл бұрын
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
@PezzzasWork
@PezzzasWork 2 жыл бұрын
Yes I didn’t experiment heat source variation, this is a first shot there is plenty to improve
@jfk_the_second
@jfk_the_second 2 жыл бұрын
@@PezzzasWork Does this mean we can expect more fire stimulations? 🔥
@PezzzasWork
@PezzzasWork 2 жыл бұрын
@@jfk_the_second maybe! it depends if I have interesting things to share :)
@turdle2767
@turdle2767 2 жыл бұрын
@@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
@BoostedApe1
@BoostedApe1 2 жыл бұрын
@@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)
@williambarnes5023
@williambarnes5023 2 жыл бұрын
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.
@zop5725
@zop5725 2 жыл бұрын
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.
@bartybum
@bartybum 2 жыл бұрын
Higher temperature shouldn’t explicitly cause an upward force, but a reduction in particle mass
@gaz3897
@gaz3897 2 жыл бұрын
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.
@PezzzasWork
@PezzzasWork 2 жыл бұрын
Thank you! I don’t know if my approach could be used for realistic simulations since it is very simple
@gaz3897
@gaz3897 2 жыл бұрын
@@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
@Shrooblord
@Shrooblord 2 жыл бұрын
Wow that's really cool to hear from an expert in the field..! Thank you for your service Gaz. Big respect
@kotazkozla253
@kotazkozla253 2 жыл бұрын
@@Shrooblord xd
@desp4life
@desp4life 2 жыл бұрын
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.
@NavidIsANoob
@NavidIsANoob 2 жыл бұрын
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.
@blakegutowski159
@blakegutowski159 2 жыл бұрын
I DONT UNDERSTAND HOW THIS KZbin CHANNEL ONLY HAS 43K SUBS!! this is so underated
@JackAllpikeMusic
@JackAllpikeMusic 2 жыл бұрын
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
@judebreheny3925
@judebreheny3925 2 жыл бұрын
I love your outros so much.
@VitaNova83
@VitaNova83 2 жыл бұрын
I love how you iterate on the emergent properties and behaviour of the simulation and see where it takes you.
@redbloodcell4047
@redbloodcell4047 2 жыл бұрын
So beautiful seeing it all come together step by step
@professionalnerd1095
@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.
@tannerh7774
@tannerh7774 2 жыл бұрын
Your videos never cease to amaze me, great job as always
@itbecharlie
@itbecharlie 2 жыл бұрын
Been following you for a couple years and every video you amaze me with some new computational technique. Awesome stuff, keep it up!
@tristenmiller3153
@tristenmiller3153 2 жыл бұрын
I just found your channel and I think this stuff is super interesting. Thanks for sharing it!
@krit6847
@krit6847 2 жыл бұрын
I have no idea how this is working and where to start understanding it, but it looks amazing!!
@LJay205
@LJay205 2 жыл бұрын
Extremely well structured video! i loved the way you did everything in easy-to-understand simple steps.
@blubglub
@blubglub 2 жыл бұрын
very realistic! i love it! :)
@normalicious9734
@normalicious9734 2 жыл бұрын
There's something very enchanting about this video, the combination of music and visuals is amazing
@mslijkhuis
@mslijkhuis 2 жыл бұрын
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!
@valeriy9862
@valeriy9862 2 ай бұрын
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!
@Mystixor
@Mystixor 2 жыл бұрын
Wow I love it! Your simulations are always so inspiring for me to code stuff like this as well
@Tann114
@Tann114 2 жыл бұрын
Excellent work, Pezzza. Your videos are always delightful
@katakaze
@katakaze 2 жыл бұрын
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.
@mightymoaman2485
@mightymoaman2485 2 жыл бұрын
Always a pleasure to watch your stuff man.
@Jaun_
@Jaun_ 2 жыл бұрын
Always love the quality of content from this channel
@mustafaark4762
@mustafaark4762 2 жыл бұрын
wow, it doesn't get more cooler than this, lads.
@AstonJay
@AstonJay 2 жыл бұрын
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!
@dragonminz602
@dragonminz602 2 жыл бұрын
Thats amazing! You motivate me to do more simulations. You are a great inspiration.
@dkolb
@dkolb 2 жыл бұрын
I love the ending most of all. Thanks for making this.
@Htrom1
@Htrom1 2 жыл бұрын
This is incredibly beautiful. Well done
@dazcarrr
@dazcarrr 2 жыл бұрын
at some points in the beginning it looked like magma - with tweaking this could become a really cool volcano simulation
@PezzzasWork
@PezzzasWork 2 жыл бұрын
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
@dottedboxguy
@dottedboxguy 2 жыл бұрын
i really do love how your outro is to somehow put your pfp into the simulation, that's amazing
@benpope10
@benpope10 2 жыл бұрын
Awesome video as always! Keep up the good work
@mrw0lf364
@mrw0lf364 2 жыл бұрын
this channel deserves so much more subscribers, amazing content.
@cyberneticstudio8736
@cyberneticstudio8736 2 жыл бұрын
You deserve mkre subscribers, all your projects are so well made and it really encaurages you to learn C++
@cassiopeiae799
@cassiopeiae799 2 жыл бұрын
this channel really is something else! really inspiring
@a52productions
@a52productions 2 жыл бұрын
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.
@williamhart7942
@williamhart7942 2 жыл бұрын
looks great! the way you made the sparks was very smart.
@TheOneLionheart
@TheOneLionheart 2 жыл бұрын
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.
@diegofuentes2607
@diegofuentes2607 8 ай бұрын
The work you did is really awesome!
@pauliuscernius5820
@pauliuscernius5820 8 ай бұрын
Love your work, very inspiring!
@PezzzasWork
@PezzzasWork 8 ай бұрын
Thank you!
@OrionMelodyMusic
@OrionMelodyMusic 2 жыл бұрын
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!
@PezzzasWork
@PezzzasWork 2 жыл бұрын
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
@stickworldanimated9545 Жыл бұрын
!
@gumbo64
@gumbo64 Жыл бұрын
@@PezzzasWork omg i was absolutely mesmerized when I watched it first, went to bed straight afterwards. Such calming music
@Haagimus
@Haagimus 2 жыл бұрын
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 👍🏻
@99ZULU
@99ZULU 2 жыл бұрын
Amazing work, also, the music brought me back to my EvE Online days
@esakohaki4308
@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)
@the0neskater
@the0neskater 2 жыл бұрын
Beautiful work!
@ChristofFritz
@ChristofFritz 2 жыл бұрын
this looks stunning!
@Babeuf31
@Babeuf31 2 жыл бұрын
Found your channel through youtube reccomendation to your previous video. Hope algorithm keep working in your favor. Great work
@markb2672
@markb2672 2 жыл бұрын
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-fj7yi
@BlueSky-fj7yi 2 жыл бұрын
Love your work! Such a creative mind 😊
@NiallHorn
@NiallHorn Жыл бұрын
I thought this was going to be a ‘Stable Fluids’ paper like implementation, very impressed with your pure particle approach !
@CodeParticles
@CodeParticles 2 жыл бұрын
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! 👍👍👍👍
@Azoryth
@Azoryth 2 жыл бұрын
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 🤔
@theultimatekiwi
@theultimatekiwi 2 жыл бұрын
Absolutely beautiful
@itthinks1755
@itthinks1755 2 жыл бұрын
Breathtaking 🤩🤩
@bil4x467
@bil4x467 Жыл бұрын
This is amazing work!
@monsada6040
@monsada6040 2 жыл бұрын
I cant look away from the rings and fireballs. Feels like a dance
@esziis
@esziis Жыл бұрын
Love it! Keep up the good work.
@samochreno
@samochreno 2 жыл бұрын
Looks beautiful
@HomerSimpson900
@HomerSimpson900 2 жыл бұрын
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_whate8487
@whoe_whate8487 2 жыл бұрын
This is incredible.
@rashid.harvey
@rashid.harvey Жыл бұрын
As always an excellent instructional video
@kirbyzaz
@kirbyzaz 2 жыл бұрын
I really gotta study this someday It's very satisfying seeing how this is made step by step
@The-Devils-Advocate
@The-Devils-Advocate 2 жыл бұрын
Fascinating!
@PaulO-ym5dm
@PaulO-ym5dm 2 жыл бұрын
crazy music, love it!
@Link_56
@Link_56 Жыл бұрын
J'adore, c'est tellement bien fait
@Vaaaaadim
@Vaaaaadim 2 жыл бұрын
Looks awesome!
@repogamesstudio2366
@repogamesstudio2366 2 жыл бұрын
Youre doing great work, thank you man - it looks so eaasy
@oneleaf11
@oneleaf11 Жыл бұрын
One thing that might make this look cooler: Decrease the heat required to rise, and make hotter particles rise faster.
@RhysShuhai
@RhysShuhai 2 жыл бұрын
That is so cool man, must have taken forever to render that, good job!
@nacnud_
@nacnud_ 2 жыл бұрын
I'm calling that a good job, well done.
@nuajbo4693
@nuajbo4693 2 ай бұрын
looks great!
@Sekir80
@Sekir80 2 жыл бұрын
Wow, this video is really fire!
@gluonic
@gluonic 2 жыл бұрын
it looks so lit! 🔥🔥🔥
@vikanitealt6229
@vikanitealt6229 2 жыл бұрын
This is oddly therapeutic and relaxing
@Zappygunshot
@Zappygunshot 2 жыл бұрын
Very nice, excellent work
@doolee5704
@doolee5704 Жыл бұрын
Genuinely cool.
@TheNameIWantedWasTuk
@TheNameIWantedWasTuk 2 жыл бұрын
amazing work
@Djellowman
@Djellowman Жыл бұрын
Amazing, really cool!
@toutencookie7076
@toutencookie7076 2 жыл бұрын
You should combine this simulation with the "star" simulation but more pressure = more heat
@LunauticalDev
@LunauticalDev 2 жыл бұрын
KZbin recommended showing me more cool random videos. Interesting topic!
@expertoflizardcorrugation3967
@expertoflizardcorrugation3967 2 жыл бұрын
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.
@thetruebenmomo
@thetruebenmomo 8 ай бұрын
wow ! c'est très beau à voir !! Joli travail !
@gblawrence034
@gblawrence034 2 жыл бұрын
This is so cool man well done 👍
@FloatingOer
@FloatingOer 2 жыл бұрын
This looks very nice. I wonder if creating heat distortion as well would make it look even better to
@codeplayer8575
@codeplayer8575 2 жыл бұрын
This is awesome!
@aleksandarstankovic4476
@aleksandarstankovic4476 Жыл бұрын
Impresive!
@christopherhodge
@christopherhodge Жыл бұрын
Great work !
@Leistria
@Leistria 2 жыл бұрын
When I saw the rendering of this, instead of thinking of fire I thought of magma eruptions.
@drew4163
@drew4163 Жыл бұрын
so cool and satfisestuing🔥🔥🔥🔥🔥
@witalian1
@witalian1 2 жыл бұрын
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.
@eleanordawn8055
@eleanordawn8055 2 жыл бұрын
incredible!
@peytonjenkins5316
@peytonjenkins5316 2 жыл бұрын
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.
@SOVIETUNIONISBEST
@SOVIETUNIONISBEST 2 жыл бұрын
Some looks likes lava, the lava breaks through creating cool visuals.
@Fine_Mouche
@Fine_Mouche 2 жыл бұрын
you make me smile so much because it's so cool.
@PezzzasWork
@PezzzasWork 2 жыл бұрын
Thank you!
@lizardy2867
@lizardy2867 2 жыл бұрын
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.
Turning bugs into Art
7:43
Pezzza's Work
Рет қаралды 193 М.
Creating a Brick Breaker with my PHYSICS ENGINE
7:21
Pezzza's Work
Рет қаралды 110 М.
Would you like a delicious big mooncake? #shorts#Mooncake #China #Chinesefood
00:30
Which one of them is cooler?😎 @potapova_blog
00:45
Filaretiki
Рет қаралды 8 МЛН
Each found a feeling.#Short #Officer Rabbit #angel
00:17
兔子警官
Рет қаралды 7 МЛН
My Blender Simulations in HDR
2:43
Polyfjord
Рет қаралды 2 МЛН
Soft Body Physics Explained
10:47
Gonkee
Рет қаралды 529 М.
6 Months of Voxel Physics Engine Optimizations
8:17
Grant Kot
Рет қаралды 44 М.
Nice bug
3:07
Pezzza's Work
Рет қаралды 990 М.
Training a Neural Network to operate drones using Genetic Algorithm
8:54
Simple Fractal rendering
11:05
Pezzza's Work
Рет қаралды 128 М.
Giving Personality to Procedural Animations using Math
15:30
t3ssel8r
Рет қаралды 2,4 МЛН
How I like to program Smoke
5:06
Pezzza's Work
Рет қаралды 39 М.
TOP-18 ФИШЕК iOS 18
17:09
Wylsacom
Рет қаралды 748 М.
AI от Apple - ОБЪЯСНЯЕМ
24:19
Droider
Рет қаралды 120 М.
Непробиваемый телевизор 🤯
0:23
FATA MORGANA
Рет қаралды 543 М.
Секретный смартфон Apple без камеры для работы на АЭС
0:22
Мечта Каждого Геймера
0:59
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 1,5 МЛН