Тёмный

200K Objects simulation, Testing Explosions 

Pezzza's Work
Подписаться 141 тыс.
Просмотров 82 тыс.
50% 1

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

Наука

Опубликовано:

 

3 май 2021

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 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
@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 ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-xuL2yT-B2TM.html should cover it better than I could :)
@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
@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.
@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!
@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?)
@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
@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..?
@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
@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!
@DaniilBubnov
@DaniilBubnov 3 года назад
That music... it just can't stop..
@CreamPolo
@CreamPolo Год назад
I'm a big fan of your work. Thank You
@Algok17
@Algok17 3 года назад
Amazing perfomance!
@danis8455
@danis8455 3 года назад
taking the lionhead studios logo to new lvls
@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 :)
@abigweed1811
@abigweed1811 Год назад
I'm astonished the performance stays acceptable (15-20ms) That's bloody around 50-70 FPS!
@lavenderbride
@lavenderbride Год назад
Must be awesome to come this far in your self-development.
@someordinarydude8813
@someordinarydude8813 3 года назад
So satisfying to watch :)
@tennohack6704
@tennohack6704 Год назад
You know what would be cool? If these particles acted as popcorn kernels, expanded explosivly and filled up the space
@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....
@HueyTheDoctor
@HueyTheDoctor 3 года назад
Dude, you keep making this stuff and I'll keep getting baked and watching in dumbstruck awe. Deal?
@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.
@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
@eliasknaapinen
@eliasknaapinen 3 года назад
a dream come true after trying to have fun with TNT in MINECRAFT
@besnails
@besnails Год назад
I see the shockwave, amazing
@A-Random-Guy
@A-Random-Guy 3 года назад
That is beautiful Also very optimized physics engine you have there
@DanteDMCry34
@DanteDMCry34 Год назад
looks like water, so well made !
@dimarichmain
@dimarichmain 3 года назад
Now that is really impressive
@Escue_dread
@Escue_dread 3 года назад
this is what i need to watch before an ap test
@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
@musclechicken9036
@musclechicken9036 2 года назад
I personally enjoy the picture you chose
@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
@Rumplestiltzchen
@Rumplestiltzchen Год назад
A nice homogeneous blend
@heonu1
@heonu1 3 года назад
Wow this is awesome
@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.
@gaspardallimant1768
@gaspardallimant1768 3 года назад
Vraiment génial !
@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
@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?
@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.
@GregHib
@GregHib 3 года назад
Beautiful
@TabooRetka701
@TabooRetka701 2 года назад
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!
@maticz3923
@maticz3923 3 года назад
Really cool
@MasterTOB101
@MasterTOB101 3 года назад
1:35 the chicken is reborn as phoenix.
@o7.
@o7. 3 года назад
That's so 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.
@spyrgelispyy
@spyrgelispyy 3 года назад
How did you get a simulation so accurate and with so many particles so performant!?
@ariseyhun2085
@ariseyhun2085 3 года назад
I love your videos, so inspiring! I'd love to see you try something like this in Rust :)
@underslash898
@underslash898 3 года назад
Did you improve on the underlying engine any more for this one, or is is the same as last time?
@LUVVEOUS
@LUVVEOUS 3 года назад
Next video: Throwing things into ball reservoir
@rocketninja942
@rocketninja942 3 года назад
@Pezzza’s Work I added SFML to VS19 and it still says SFML directory in cmake!
@trau_tms
@trau_tms 3 года назад
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.
@melanin_m85
@melanin_m85 3 года назад
cooooool keep it up
@gavin3563
@gavin3563 3 года назад
haha this is awesome. super cool to see the shockwave spread through the particles.
@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.
@andrewcavallo1877
@andrewcavallo1877 2 года назад
Dancing lizard on thumbnail
@antontheyeeter
@antontheyeeter 3 года назад
Which API/library did you use?
@PezzzasWork
@PezzzasWork 3 года назад
I am using the SFML for the rendering, the rest is from me
@stenzenneznets
@stenzenneznets 3 года назад
Amazing
@dinohunter7176
@dinohunter7176 3 года назад
Photoshop next level
@gavin3563
@gavin3563 3 года назад
what do you make these projects and games in? i'd like to learn how to do something like this
@user-uo1yn4se8r
@user-uo1yn4se8r 3 года назад
Kinda fluid
@GermanTopGameTV
@GermanTopGameTV 3 года назад
Nobody: RU-vid at 1 am: "Psst, wanna see a cool chicken get blown to bits?"
@RecioDj
@RecioDj 3 года назад
Cool and good
@dmitrym3757
@dmitrym3757 3 года назад
Isn't it nice? Thank you! :)))
@iibuprofene860
@iibuprofene860 3 года назад
0:45 me before my birthday party 2:06 me after my birthday party
@sreekashuppari1882
@sreekashuppari1882 3 года назад
Wow! 🤯
@blinded6502
@blinded6502 3 года назад
Can you somehow implement sound synthesis based on vibrations these particles experience?
@vincentpollack
@vincentpollack 3 года назад
Nice choice of picture
@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
@d-shiri
@d-shiri 3 года назад
Please make sfml tutorials. This is awesome man
@dawidepl7807
@dawidepl7807 3 года назад
Do you plan to make tutorial for such stuff?
@Jonathan-di1pb
@Jonathan-di1pb 3 года назад
Are u just instance rendering all the circles to get that render time?
@MaeqMa
@MaeqMa 3 года назад
Nice
@Ginto_O
@Ginto_O 3 года назад
At first i thought there is a Kira theme playing in the background
@GhostlyHermit
@GhostlyHermit 2 года назад
God
@ReZel4189
@ReZel4189 2 года назад
from chicken to piccaso painting
@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.
@batuhanonder
@batuhanonder 3 года назад
Maybe one day I can be like you
@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.
@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?
@wormjuice7772
@wormjuice7772 3 года назад
Ive send your video to Karoly from two minute papers. He has to see this. Such good work.
@Zedryx69
@Zedryx69 2 года назад
Guys, I found this awesome way to distort an image...
@panociagasta
@panociagasta 3 года назад
0:12 How aliens made the pyramids.
@puppergump4117
@puppergump4117 2 года назад
I counted, there's only 199,998 objects
@BadChess56
@BadChess56 2 года назад
were the explosions natural or did you make them
@Mystixor
@Mystixor 3 года назад
neat
@triton62674
@triton62674 3 года назад
Now make them all explode
@nikovbn839
@nikovbn839 3 года назад
Nnnnnice :D Bigger boom next time? ;p
@NNOTM
@NNOTM 3 года назад
Hmm you can see phase transitions between liquid and solid
@turdle2767
@turdle2767 3 года назад
knowing the bullshit of math and programming, the explosion formula was probably 1 line long(with the heaviest asterisk every)
@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
@dadutchboy2
@dadutchboy2 2 года назад
engineer gaming
@rodakdev
@rodakdev 3 года назад
Cool Chicken
@TheBitProgress
@TheBitProgress 2 года назад
That is impressive. How did you achieve this performance? Is it multithreaded?
@PezzzasWork
@PezzzasWork 2 года назад
Yes it’s multithreaded and I am using a fixed grid to speed up collisions detection
@anoobis117
@anoobis117 3 года назад
I love the zoom in and out with the drums
Далее
C++ Ants Simulation 4, Colony
5:48
Просмотров 287 тыс.
Real time Fire Simulation
7:23
Просмотров 153 тыс.
1❤️#thankyou #shorts
00:21
Просмотров 20 млн
HOW MUCH CAN SIMPLE ENGINE HANDLE ??
4:09
Просмотров 119 тыс.
Creating a Brick Breaker with my PHYSICS ENGINE
7:21
Просмотров 109 тыс.
My C++/SFML Compilation
5:02
Просмотров 47 тыс.
Turning bugs into Art
7:43
Просмотров 193 тыс.
Quadtree Visualization for my Gravity Simulation
0:37
C++ Ants Simulation 3, Maze
5:09
Просмотров 558 тыс.
Real time 4D fluid simulation
0:59
Просмотров 17 тыс.
Nvidia Titan
0:48
Просмотров 133 тыс.
Гибкий телефон 📱
0:16
Просмотров 90 тыс.
гений починил ноутбук
0:29
Просмотров 2 млн