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
@erilobar94023 жыл бұрын
bruh that chicken goes from looking fly as hell to being pretty messed up
@michasengotta22953 жыл бұрын
chicken going from fly to fry
@steamhearteyes3 жыл бұрын
HA HA AH AH AHA HA HA HA HA HA
@jmsether2 жыл бұрын
Drugs will do that to you.
@spidertyler Жыл бұрын
Body shaming
@AAvfx3 жыл бұрын
So beautiful! I'm glad I've found this channel! 😊
@eperou88463 жыл бұрын
E
@melanin_m853 жыл бұрын
same
@pasmoluiso2 жыл бұрын
Me too
@phantomascom3 жыл бұрын
I love seeing the grain boundaries between different crystal lattices! So cool!
@terrasolaris51043 жыл бұрын
Right??!!!
@SirusStarTV3 жыл бұрын
Left??!!!
@Tayfaan3 жыл бұрын
@@SirusStarTV Yes, dad
@bobsmithy31033 жыл бұрын
Anyone know why they even appear?
@thant0se3 жыл бұрын
@@bobsmithy3103 kzbin.info/www/bejne/rqavY6yKYqdliq8 should cover it better than I could :)
@YPOC3 жыл бұрын
I love how the particles begin to start "grain" boundaries, even though they start close to optimally packed
@tyler28543 жыл бұрын
Those explosions look really nice. I especially like 2:26 when you can see the shockwave moving through the objects.
@vishnuj.nampoothiri90373 жыл бұрын
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
@ananttiwari13373 жыл бұрын
lmao
@stickmasterlukeRBX3 жыл бұрын
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.
@angrywolfjr71643 жыл бұрын
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
@markusbuchholz35183 жыл бұрын
There is lack of words in dictionary to express how impressive your project is. I am deeply in shock. Master of piece, Thanks!
@askplays3 жыл бұрын
wow, these simulations keep getting more and more insane
@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
@danis84553 жыл бұрын
taking the lionhead studios logo to new lvls
@CreamPolo Жыл бұрын
I'm a big fan of your work. Thank You
@Algok173 жыл бұрын
Amazing perfomance!
@charaxofgythium48633 жыл бұрын
This is next level breath-taking. Im speechless.
@Mas33413 жыл бұрын
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!
@HueyTheDoctor3 жыл бұрын
Dude, you keep making this stuff and I'll keep getting baked and watching in dumbstruck awe. Deal?
@lavenderbride Жыл бұрын
Must be awesome to come this far in your self-development.
@JD-qq8fz3 жыл бұрын
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)
@markoftheland31153 жыл бұрын
I'm wondering the same, commenting to receive notifications
@higginsisaac3 жыл бұрын
I hope they answer!
@PezzzasWork3 жыл бұрын
It's because of high velocity objects being expelled by the explosion.
@du42bz3 жыл бұрын
I think it also has something to do with the hexagonal shape of the particles
@JD-qq8fz3 жыл бұрын
@@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-Guy3 жыл бұрын
That is beautiful Also very optimized physics engine you have there
@abigweed1811 Жыл бұрын
I'm astonished the performance stays acceptable (15-20ms) That's bloody around 50-70 FPS!
@DaniilBubnov3 жыл бұрын
That music... it just can't stop..
@Zappygunshot2 жыл бұрын
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.
@someordinarydude88133 жыл бұрын
So satisfying to watch :)
@Escue_dread3 жыл бұрын
this is what i need to watch before an ap test
@alexvandenberg33713 жыл бұрын
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
@stevesajeev64773 жыл бұрын
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 Жыл бұрын
I see the shockwave, amazing
@dimarichmain3 жыл бұрын
Now that is really impressive
@DanteDMCry34 Жыл бұрын
looks like water, so well made !
@mahirfr3 жыл бұрын
Will you ever make tutorial series on how to work with physics and simulations in C++?
@nyzss3 жыл бұрын
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
@lisyarus3 жыл бұрын
Sorry for self-promotion, but I happen to have a twitter thread on similar stuff: twitter.com/lisyarus/status/1318605976786919424
@mahirfr3 жыл бұрын
@@lisyarus Any youtube channel..?
@musclechicken90362 жыл бұрын
I personally enjoy the picture you chose
@tennohack6704 Жыл бұрын
You know what would be cool? If these particles acted as popcorn kernels, expanded explosivly and filled up the space
@heonu13 жыл бұрын
Wow this is awesome
@Rumplestiltzchen Жыл бұрын
A nice homogeneous blend
@eliasknaapinen3 жыл бұрын
a dream come true after trying to have fun with TNT in MINECRAFT
@okboing2 жыл бұрын
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
@Mark007473 жыл бұрын
Hey Pezzza, this is amazing! Is this animation related to your day to day job? If so, what kind of work do you do?
@PezzzasWork3 жыл бұрын
Thank you! No it's not linked to my job, it's just a personal hobby as an amateur :)
@gaspardallimant17683 жыл бұрын
Vraiment génial !
@selenefrost62673 жыл бұрын
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 Жыл бұрын
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!
@GregHib3 жыл бұрын
Beautiful
@o7.3 жыл бұрын
That's so cool
@maticz39233 жыл бұрын
Really cool
@mralien95472 жыл бұрын
I wonder what would happen if you had set friction factor to 0 (assuming it's not 0 already). Great work, awesome stuff.
@atlasua20213 жыл бұрын
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?
@VestigialHead2 жыл бұрын
Awesome to see footage of how McDonalds prepares Chicken for their nuggets.
@tomasbenders9223 жыл бұрын
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?
@logicbuilder12043 жыл бұрын
you can just check how far away a circle is from another circle, and then check in what direction.
@ariseyhun20853 жыл бұрын
I love your videos, so inspiring! I'd love to see you try something like this in Rust :)
@gavin35633 жыл бұрын
haha this is awesome. super cool to see the shockwave spread through the particles.
@underslash8983 жыл бұрын
Did you improve on the underlying engine any more for this one, or is is the same as last time?
@d-shiri3 жыл бұрын
Please make sfml tutorials. This is awesome man
@melanin_m853 жыл бұрын
cooooool keep it up
@vincentpollack3 жыл бұрын
I cant believe how smooth its running? is this rendered in some sort of way or is this simulation real time?
@AntonioNoack3 жыл бұрын
The calculation time per step is in the top, and it's
@brunor.9223 жыл бұрын
@@AntonioNoack it isn't made with python xD
@AntonioNoack3 жыл бұрын
@@brunor.922 it still could run in real time with the right optimizations ;) e.g. compiling it
@data_56743 жыл бұрын
It's in real time, and probably uses multi-threading
@stinkytoby3 жыл бұрын
Source code is in the description
@gavin35633 жыл бұрын
what do you make these projects and games in? i'd like to learn how to do something like this
@LUVVEOUS3 жыл бұрын
Next video: Throwing things into ball reservoir
@stenzenneznets3 жыл бұрын
Amazing
@vincentpollack3 жыл бұрын
Nice choice of picture
@trau_tms2 жыл бұрын
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.
@spyrgelispyy3 жыл бұрын
How did you get a simulation so accurate and with so many particles so performant!?
@sreekashuppari18823 жыл бұрын
Wow! 🤯
@fletchthebirb3 жыл бұрын
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.
@dinohunter71763 жыл бұрын
Photoshop next level
@blinded65023 жыл бұрын
Can you somehow implement sound synthesis based on vibrations these particles experience?
@user-uo1yn4se8r3 жыл бұрын
Kinda fluid
@wormjuice77723 жыл бұрын
Ive send your video to Karoly from two minute papers. He has to see this. Such good work.
@RecioDj3 жыл бұрын
Cool and good
@rocketninja9423 жыл бұрын
@Pezzza’s Work I added SFML to VS19 and it still says SFML directory in cmake!
@iibuprofene8603 жыл бұрын
0:45 me before my birthday party 2:06 me after my birthday party
@Jonathan-di1pb3 жыл бұрын
Are u just instance rendering all the circles to get that render time?
@HueHanaejistla3 жыл бұрын
how optimized is this i tried making a simple particle simulation in Java and beyond 1,000 my computer started to have serious lag
@MaeqMa3 жыл бұрын
Nice
@Ginto_O3 жыл бұрын
At first i thought there is a Kira theme playing in the background
@anoobis1173 жыл бұрын
I love the zoom in and out with the drums
@devsauce3 жыл бұрын
Reminds me of "The Powder Toy" :)
@maticz39233 жыл бұрын
Haha Imagine tpt but with particle based rigid bodies like in earlier videos
@andrewcavallo18772 жыл бұрын
Dancing lizard on thumbnail
@fsrarsln2 жыл бұрын
1:07 did you see that arrowlike shockwaves? Thats similar to newtons watch and thats the reason why grain bins are leak randomly
@ReZel41892 жыл бұрын
from chicken to piccaso painting
@dadutchboy22 жыл бұрын
engineer gaming
@puppergump41172 жыл бұрын
I counted, there's only 199,998 objects
@vinaciotm8 ай бұрын
full tutorial, plss 👌🏻
@Manabender3 жыл бұрын
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.
@dmitrym37573 жыл бұрын
Isn't it nice? Thank you! :)))
@atlasua20213 жыл бұрын
WOW! F**K. It looks cool. Я не ожидал что ты выпустишь новое видео так скоро.
@MasterTOB1013 жыл бұрын
1:35 the chicken is reborn as phoenix.
@Mystixor3 жыл бұрын
neat
@GhostlyHermit2 жыл бұрын
God
@nikovbn8393 жыл бұрын
Nnnnnice :D Bigger boom next time? ;p
@sky_hawk08113 жыл бұрын
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?
@dawidepl78073 жыл бұрын
Do you plan to make tutorial for such stuff?
@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.
@GermanTopGameTV3 жыл бұрын
Nobody: KZbin at 1 am: "Psst, wanna see a cool chicken get blown to bits?"
@batuhanonder3 жыл бұрын
Maybe one day I can be like you
@wallabra3 жыл бұрын
Now add constraints of some sort between select circles, and you have a ragdoll engine :D
@panociagasta3 жыл бұрын
0:12 How aliens made the pyramids.
@triton626743 жыл бұрын
Now make them all explode
@LukeVilent2 жыл бұрын
Very impressive to say the least. I'd love to see the code.
@lukephilbrecht3876 Жыл бұрын
were the explosions natural or did you make them
@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.