200K Objects simulation, Testing Explosions

  Рет қаралды 81,617

Pezzza's Work

Pezzza's Work

3 жыл бұрын

Trying to add an explosion effect in my very basic CPU circle only physic engine.
Written in C++ using SFML for graphics.
Github github.com/johnBuffer/UnitedE...
Music freepd.com/music/Be%20Jammin.mp3

Пікірлер: 209
@erilobar9402
@erilobar9402 3 жыл бұрын
bruh that chicken goes from looking fly as hell to being pretty messed up
@michasengotta2295
@michasengotta2295 3 жыл бұрын
chicken going from fly to fry
@steamhearteyes
@steamhearteyes 3 жыл бұрын
HA HA AH AH AHA HA HA HA HA HA
@jmsether
@jmsether 2 жыл бұрын
Drugs will do that to you.
@spidertyler
@spidertyler Жыл бұрын
Body shaming
@AAvfx
@AAvfx 3 жыл бұрын
So beautiful! I'm glad I've found this channel! 😊
@eperou8846
@eperou8846 3 жыл бұрын
E
@melanin_m85
@melanin_m85 3 жыл бұрын
same
@pasmoluiso
@pasmoluiso 2 жыл бұрын
Me too
@phantomascom
@phantomascom 3 жыл бұрын
I love seeing the grain boundaries between different crystal lattices! So cool!
@terrasolaris5104
@terrasolaris5104 3 жыл бұрын
Right??!!!
@SirusStarTV
@SirusStarTV 3 жыл бұрын
Left??!!!
@Tayfaan
@Tayfaan 3 жыл бұрын
@@SirusStarTV Yes, dad
@bobsmithy3103
@bobsmithy3103 3 жыл бұрын
Anyone know why they even appear?
@thant0se
@thant0se 3 жыл бұрын
@@bobsmithy3103 kzbin.info/www/bejne/rqavY6yKYqdliq8 should cover it better than I could :)
@YPOC
@YPOC 3 жыл бұрын
I love how the particles begin to start "grain" boundaries, even though they start close to optimally packed
@tyler2854
@tyler2854 3 жыл бұрын
Those explosions look really nice. I especially like 2:26 when you can see the shockwave moving through the objects.
@vishnuj.nampoothiri9037
@vishnuj.nampoothiri9037 3 жыл бұрын
1:25 - When they ask you how you are, and you just have to say that you're fine, when you're not really fine, but you just can't get into it because they would never understand
@ananttiwari1337
@ananttiwari1337 3 жыл бұрын
lmao
@stickmasterlukeRBX
@stickmasterlukeRBX 3 жыл бұрын
Is the simulation deterministic? If so, it would be cool to run the simulation, then save a map of the objects and their positions. Then paint the objects based on their positions after the simulation. Then run the simulation from the beginning with new colors mapped on, so that it looks like the explosions organize the image instead of mixing it.
@angrywolfjr7164
@angrywolfjr7164 3 жыл бұрын
what a massive improvment from last one's limit, this is a big inspiration since i am learning sfml and c++ man i hope your channel blows up
@markusbuchholz3518
@markusbuchholz3518 3 жыл бұрын
There is lack of words in dictionary to express how impressive your project is. I am deeply in shock. Master of piece, Thanks!
@askplays
@askplays 3 жыл бұрын
wow, these simulations keep getting more and more insane
@GoldballIndustries
@GoldballIndustries Жыл бұрын
I believe the circles forming around the explosion to be particles moving so fast per frame that they quantum tunnel, and by the time that they slow down they collide with a particle and create a mini explosion
@danis8455
@danis8455 3 жыл бұрын
taking the lionhead studios logo to new lvls
@CreamPolo
@CreamPolo Жыл бұрын
I'm a big fan of your work. Thank You
@Algok17
@Algok17 3 жыл бұрын
Amazing perfomance!
@charaxofgythium4863
@charaxofgythium4863 3 жыл бұрын
This is next level breath-taking. Im speechless.
@Mas3341
@Mas3341 3 жыл бұрын
Even though this is circle only physics, I wouldn't call it basic! 200,000 objects in real-time and really stable object restitution. Nice!
@HueyTheDoctor
@HueyTheDoctor 3 жыл бұрын
Dude, you keep making this stuff and I'll keep getting baked and watching in dumbstruck awe. Deal?
@lavenderbride
@lavenderbride Жыл бұрын
Must be awesome to come this far in your self-development.
@JD-qq8fz
@JD-qq8fz 3 жыл бұрын
1:49 Whoa, what do you think is causing those rays that go outward from the explosion like fragmentation? Are those weirdly directed pressure waves or a high velocity particle slipping its way through? (Or something else)
@markoftheland3115
@markoftheland3115 3 жыл бұрын
I'm wondering the same, commenting to receive notifications
@higginsisaac
@higginsisaac 3 жыл бұрын
I hope they answer!
@PezzzasWork
@PezzzasWork 3 жыл бұрын
It's because of high velocity objects being expelled by the explosion.
@du42bz
@du42bz 3 жыл бұрын
I think it also has something to do with the hexagonal shape of the particles
@JD-qq8fz
@JD-qq8fz 3 жыл бұрын
@@PezzzasWork Yeaah! When you zoom in and slow it down like that you can catch a glimpse of them a frame at a time-- they're fast! (were they the ones at the epicenter?)
@A-Random-Guy
@A-Random-Guy 3 жыл бұрын
That is beautiful Also very optimized physics engine you have there
@abigweed1811
@abigweed1811 Жыл бұрын
I'm astonished the performance stays acceptable (15-20ms) That's bloody around 50-70 FPS!
@DaniilBubnov
@DaniilBubnov 3 жыл бұрын
That music... it just can't stop..
@Zappygunshot
@Zappygunshot 2 жыл бұрын
This is an interesting look into liquid dynamics, plate tectonics, pressure wave propagation and crystalline structure formation all at once. In essence, all those are the same, but at totally different scales.
@someordinarydude8813
@someordinarydude8813 3 жыл бұрын
So satisfying to watch :)
@Escue_dread
@Escue_dread 3 жыл бұрын
this is what i need to watch before an ap test
@alexvandenberg3371
@alexvandenberg3371 3 жыл бұрын
What is super interesting is these fracture lines at 0:50 actually look a lot like the fracture lines of real crystal lattices of metals etc! Cool stuff
@stevesajeev6477
@stevesajeev6477 3 жыл бұрын
Wow.. Your videos are awesome.. Your projects run smooth and very beautifully.. I loved the hen's face after the explosion.. I have a request, and I think most of use have this too... Please make a video showing how to make particles, physics, etc in c++ we all want to learn from youn . Your an awesome coder. So please.. Please....
@besnails
@besnails Жыл бұрын
I see the shockwave, amazing
@dimarichmain
@dimarichmain 3 жыл бұрын
Now that is really impressive
@DanteDMCry34
@DanteDMCry34 Жыл бұрын
looks like water, so well made !
@mahirfr
@mahirfr 3 жыл бұрын
Will you ever make tutorial series on how to work with physics and simulations in C++?
@nyzss
@nyzss 3 жыл бұрын
I'm not even into cpp (more webdev lol), but i'd definitely watch that, i've been loving watching these kinds of project videos. they're really fun
@lisyarus
@lisyarus 3 жыл бұрын
Sorry for self-promotion, but I happen to have a twitter thread on similar stuff: twitter.com/lisyarus/status/1318605976786919424
@mahirfr
@mahirfr 3 жыл бұрын
@@lisyarus Any youtube channel..?
@musclechicken9036
@musclechicken9036 2 жыл бұрын
I personally enjoy the picture you chose
@tennohack6704
@tennohack6704 Жыл бұрын
You know what would be cool? If these particles acted as popcorn kernels, expanded explosivly and filled up the space
@heonu1
@heonu1 3 жыл бұрын
Wow this is awesome
@Rumplestiltzchen
@Rumplestiltzchen Жыл бұрын
A nice homogeneous blend
@eliasknaapinen
@eliasknaapinen 3 жыл бұрын
a dream come true after trying to have fun with TNT in MINECRAFT
@okboing
@okboing 2 жыл бұрын
assuming each object's attributes can be described in, say, 256 bytes, this means your computer is effectively rewriting a 51.2 megabyte file every frame, for that first sim. Assuming, now, that it runs at an average of 111 Hz (according to the average I got of 9 ms per frame), this means it has to rewrite at about 5.6832 gigabytes per second. very, very faest
@Mark00747
@Mark00747 3 жыл бұрын
Hey Pezzza, this is amazing! Is this animation related to your day to day job? If so, what kind of work do you do?
@PezzzasWork
@PezzzasWork 3 жыл бұрын
Thank you! No it's not linked to my job, it's just a personal hobby as an amateur :)
@gaspardallimant1768
@gaspardallimant1768 3 жыл бұрын
Vraiment génial !
@selenefrost6267
@selenefrost6267 3 жыл бұрын
In addition to just the collision detection would it be possible to make the objects repel or attract eachother making them act like solids liquids or gasses? I imagine that would be more taxing on the computer however in which case you could remove the collision detection entirely and replace it with a repelling force to simulate liquids and gasses.
@AlehzeySpidwagonovich
@AlehzeySpidwagonovich Жыл бұрын
Wow, that looks epic, i think you could pump it up by using OpenGL instead of a graphics library, maybe you could even get away with using instanced drawing, treating all objects like one entity, which is extremely fast!
@GregHib
@GregHib 3 жыл бұрын
Beautiful
@o7.
@o7. 3 жыл бұрын
That's so cool
@maticz3923
@maticz3923 3 жыл бұрын
Really cool
@mralien9547
@mralien9547 2 жыл бұрын
I wonder what would happen if you had set friction factor to 0 (assuming it's not 0 already). Great work, awesome stuff.
@atlasua2021
@atlasua2021 3 жыл бұрын
How do you handle collision if the speed is high? You take 2 bodies and do the computation on their direction vectors? Or do you pass the beam to the body several times?
@VestigialHead
@VestigialHead 2 жыл бұрын
Awesome to see footage of how McDonalds prepares Chicken for their nuggets.
@tomasbenders922
@tomasbenders922 3 жыл бұрын
So beautiful! I have so many questions. What kind of broadphase are you using? Doesn't it take like infinite iterations to solve stacked circles?
@logicbuilder1204
@logicbuilder1204 3 жыл бұрын
you can just check how far away a circle is from another circle, and then check in what direction.
@ariseyhun2085
@ariseyhun2085 3 жыл бұрын
I love your videos, so inspiring! I'd love to see you try something like this in Rust :)
@gavin3563
@gavin3563 3 жыл бұрын
haha this is awesome. super cool to see the shockwave spread through the particles.
@underslash898
@underslash898 3 жыл бұрын
Did you improve on the underlying engine any more for this one, or is is the same as last time?
@d-shiri
@d-shiri 3 жыл бұрын
Please make sfml tutorials. This is awesome man
@melanin_m85
@melanin_m85 3 жыл бұрын
cooooool keep it up
@vincentpollack
@vincentpollack 3 жыл бұрын
I cant believe how smooth its running? is this rendered in some sort of way or is this simulation real time?
@AntonioNoack
@AntonioNoack 3 жыл бұрын
The calculation time per step is in the top, and it's
@brunor.922
@brunor.922 3 жыл бұрын
@@AntonioNoack it isn't made with python xD
@AntonioNoack
@AntonioNoack 3 жыл бұрын
@@brunor.922 it still could run in real time with the right optimizations ;) e.g. compiling it
@data_5674
@data_5674 3 жыл бұрын
It's in real time, and probably uses multi-threading
@stinkytoby
@stinkytoby 3 жыл бұрын
Source code is in the description
@gavin3563
@gavin3563 3 жыл бұрын
what do you make these projects and games in? i'd like to learn how to do something like this
@LUVVEOUS
@LUVVEOUS 3 жыл бұрын
Next video: Throwing things into ball reservoir
@stenzenneznets
@stenzenneznets 3 жыл бұрын
Amazing
@vincentpollack
@vincentpollack 3 жыл бұрын
Nice choice of picture
@trau_tms
@trau_tms 2 жыл бұрын
I'm seeing the same radius independently of depth and amount of particles above or below. Is it taking account of the inward pressure those particles have on the explosion? Maybe you do but the mass is scaled to the point it doesn't affect it, so that's why I'm asking.
@spyrgelispyy
@spyrgelispyy 3 жыл бұрын
How did you get a simulation so accurate and with so many particles so performant!?
@sreekashuppari1882
@sreekashuppari1882 3 жыл бұрын
Wow! 🤯
@fletchthebirb
@fletchthebirb 3 жыл бұрын
Idea: Make a bunch of explosions, *then* color the spheres and reset them to where they were at the beginning. So the explosions seem to randomly form the image.
@dinohunter7176
@dinohunter7176 3 жыл бұрын
Photoshop next level
@blinded6502
@blinded6502 3 жыл бұрын
Can you somehow implement sound synthesis based on vibrations these particles experience?
@user-uo1yn4se8r
@user-uo1yn4se8r 3 жыл бұрын
Kinda fluid
@wormjuice7772
@wormjuice7772 3 жыл бұрын
Ive send your video to Karoly from two minute papers. He has to see this. Such good work.
@RecioDj
@RecioDj 3 жыл бұрын
Cool and good
@rocketninja942
@rocketninja942 3 жыл бұрын
@Pezzza’s Work I added SFML to VS19 and it still says SFML directory in cmake!
@iibuprofene860
@iibuprofene860 3 жыл бұрын
0:45 me before my birthday party 2:06 me after my birthday party
@Jonathan-di1pb
@Jonathan-di1pb 3 жыл бұрын
Are u just instance rendering all the circles to get that render time?
@HueHanaejistla
@HueHanaejistla 3 жыл бұрын
how optimized is this i tried making a simple particle simulation in Java and beyond 1,000 my computer started to have serious lag
@MaeqMa
@MaeqMa 3 жыл бұрын
Nice
@Ginto_O
@Ginto_O 3 жыл бұрын
At first i thought there is a Kira theme playing in the background
@anoobis117
@anoobis117 3 жыл бұрын
I love the zoom in and out with the drums
@devsauce
@devsauce 3 жыл бұрын
Reminds me of "The Powder Toy" :)
@maticz3923
@maticz3923 3 жыл бұрын
Haha Imagine tpt but with particle based rigid bodies like in earlier videos
@andrewcavallo1877
@andrewcavallo1877 2 жыл бұрын
Dancing lizard on thumbnail
@fsrarsln
@fsrarsln 2 жыл бұрын
1:07 did you see that arrowlike shockwaves? Thats similar to newtons watch and thats the reason why grain bins are leak randomly
@ReZel4189
@ReZel4189 2 жыл бұрын
from chicken to piccaso painting
@dadutchboy2
@dadutchboy2 2 жыл бұрын
engineer gaming
@puppergump4117
@puppergump4117 2 жыл бұрын
I counted, there's only 199,998 objects
@vinaciotm
@vinaciotm 8 ай бұрын
full tutorial, plss 👌🏻
@Manabender
@Manabender 3 жыл бұрын
How come every explosion has several radial lines coming out of it? This is best seen on roughly the 12th frame of 1:09 (or, about 1:09.20). My guess is that an explosion imparts velocity to all particles inversely proportional to (the square of) their distance from the blast center. For particles extremely close to the center, they might get so much velocity that they travel the distance of many particles in a single timestep.
@dmitrym3757
@dmitrym3757 3 жыл бұрын
Isn't it nice? Thank you! :)))
@atlasua2021
@atlasua2021 3 жыл бұрын
WOW! F**K. It looks cool. Я не ожидал что ты выпустишь новое видео так скоро.
@MasterTOB101
@MasterTOB101 3 жыл бұрын
1:35 the chicken is reborn as phoenix.
@Mystixor
@Mystixor 3 жыл бұрын
neat
@GhostlyHermit
@GhostlyHermit 2 жыл бұрын
God
@nikovbn839
@nikovbn839 3 жыл бұрын
Nnnnnice :D Bigger boom next time? ;p
@sky_hawk0811
@sky_hawk0811 3 жыл бұрын
would love to use this. but installing it is confusing for me. could you make a tutorial on how to or does someone know how to already and if you do could you explain it to me please?
@dawidepl7807
@dawidepl7807 3 жыл бұрын
Do you plan to make tutorial for such stuff?
@alfonzo_
@alfonzo_ 3 жыл бұрын
your videos are very inspiring. I made my first neural network after watching the one where you control a drone with a nn.
@GermanTopGameTV
@GermanTopGameTV 3 жыл бұрын
Nobody: KZbin at 1 am: "Psst, wanna see a cool chicken get blown to bits?"
@batuhanonder
@batuhanonder 3 жыл бұрын
Maybe one day I can be like you
@wallabra
@wallabra 3 жыл бұрын
Now add constraints of some sort between select circles, and you have a ragdoll engine :D
@panociagasta
@panociagasta 3 жыл бұрын
0:12 How aliens made the pyramids.
@triton62674
@triton62674 3 жыл бұрын
Now make them all explode
@LukeVilent
@LukeVilent 2 жыл бұрын
Very impressive to say the least. I'd love to see the code.
@lukephilbrecht3876
@lukephilbrecht3876 Жыл бұрын
were the explosions natural or did you make them
@itoffice
@itoffice Жыл бұрын
Have you ever tried or thought of simulating crystals and their forming ?... Maybe the shape need to be redefined also for that. That is interesting for material "science", as metals etc. can be seen as tiny groups of crystals. Working on metal and reheating or chock cooling it, reshapes the metals and its crystals and gives it different characteristics ... crystals are in reality called "grains" in metals, but is anyway the same stuff in a microscope. ... Crystallization is seen in many other places; for instance in making silicon ingots for chips and solar panels.
@2fa284
@2fa284 Жыл бұрын
How do you get so good performance? =D
C++ Ants Simulation 4, Colony
5:48
Pezzza's Work
Рет қаралды 286 М.
Creating a Brick Breaker with my PHYSICS ENGINE
7:21
Pezzza's Work
Рет қаралды 109 М.
Balloon Pop Racing Is INTENSE!!!
01:00
A4
Рет қаралды 16 МЛН
格斗裁判暴力执法!#fighting #shorts
00:15
武林之巅
Рет қаралды 37 МЛН
Let's all try it too‼︎#magic#tenge
00:26
Nonomen ノノメン
Рет қаралды 51 МЛН
Testing 8 Innovative New Boat Propeller Designs
24:08
rctestflight
Рет қаралды 527 М.
Real time Fire Simulation
7:23
Pezzza's Work
Рет қаралды 153 М.
New little Physic Engine - Trying to implement destructible objects
2:05
Much bigger simulation, AIs learn Phalanx
29:13
Pezzza's Work
Рет қаралды 2,6 МЛН
HOW MUCH CAN SIMPLE ENGINE HANDLE ??
4:09
Pezzza's Work
Рет қаралды 119 М.
AIs learn to WALK
20:21
Pezzza's Work
Рет қаралды 48 М.
Unstable Star experimentation
4:09
Pezzza's Work
Рет қаралды 46 М.
Turning bugs into Art
7:43
Pezzza's Work
Рет қаралды 193 М.
Budget SpaceX
1:32
Pezzza's Work
Рет қаралды 35 М.
Samsung or iPhone
0:19
rishton vines😇
Рет қаралды 6 МЛН
How Neuralink Works 🧠
0:28
Zack D. Films
Рет қаралды 28 МЛН
Introducing GPT-4o
26:13
OpenAI
Рет қаралды 3,8 МЛН