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
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
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.
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)
@@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?)
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
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....
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.
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
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
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?
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.
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!
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.
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.
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.
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.
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?