Engine Sim: Procedurally Generating Audio Using a Real-time Fluid Simulation (Technical Breakdown)

  Рет қаралды 163,204

AngeTheGreat

AngeTheGreat

Жыл бұрын

Support Engine Simulator 2.0 on Patreon!
/ atg_engine_simulator
Download Engine Simulator for free!
github.com/Engine-Simulator/e...
MotorTrend article!
www.motortrend.com/features/e...
Engine Simulator Codebase
github.com/ange-yaghi/engine-sim
Physics Simulator Video
• Building a Physics Eng...
Join the Official Engine Simulator Discord Server!
/ discord
Join my channel community Discord!
/ discord
A lot of you requested it, so here is a technical breakdown of the core component of Engine Simulator, the fluid simulation. Once this component is in place, the rest of the simulator falls in place naturally so I focused on it in this video. If there are aspects you'd like me to cover in more detail, let me know in the comments. Thanks for watching!
#simulation #gamedev #programming
Check out my GitHub profile!
github.com/ange-yaghi
Follow me on Instagram!
/ ange.the.great
If you like my work and would like to support me, consider donating!
ko-fi.com/angethegreat
Thanks for watching!

Пікірлер: 753
@AngeTheGreat
@AngeTheGreat Жыл бұрын
Hope you guys enjoyed the video! I don't know if this covers everything that everyone wanted but I think it gets the most important points across. Some people asked what the impulse responses I used in the engines sound like and they don't sound like much, just short clicks. Also, the KZbin video compression algorithm was not kind to this video which I knew might be an issue. I promise the fluid visualization looks a lot better in the original program lol. Let me know what you guys think! Also, some people have criticized the fact that I'm actually responding to "haters" or think that it makes me look unconfident. I don't agree. Giving/taking criticism is a 2-way process and I used their almost purposeful misunderstanding of my program to demonstrate some principles about it which helped the flow of the video. Maybe other KZbinrs ignore or pretend to not be affected by criticism at all. This is not me. I accept all criticism, I don't delete any comments and I actually take *action* if I receive good criticism from my viewers. If I get poorly thought out criticism though, I will respond to it because I am confident in what I've implemented and I think it's a worthwhile conversation to have. I don't think these Reddit experts were simply trolls trying to make me upset. They had a right to criticize or interpret my work, and I am simply correcting and informing them and I would never take away their right to comment on, disagree with, or criticize my work.
@iarmycombo5659
@iarmycombo5659 Жыл бұрын
When will we see collaboration with Trackmania?
@clemdemort9613
@clemdemort9613 Жыл бұрын
@@iarmycombo5659 lmao best engine sounds what are you saying ;)
@iarmycombo5659
@iarmycombo5659 Жыл бұрын
@@clemdemort9613 I've *heard* they aren't that great. (Pun very much intended)
@ivanpirogov9373
@ivanpirogov9373 Жыл бұрын
@AngeTheGreat Is it possible to simulate various guns sound that way?
@JohannesSchmitz
@JohannesSchmitz Жыл бұрын
Great work! Could you please add the link to the other video where you discuss the rigid body simulation part to the description?
@Teeh0
@Teeh0 Жыл бұрын
"Reddit Experts" I felt that. Nothing more frustrating than having something *you built* incorrectly explained to you by someone who's never even looked at the code.
@mathewrudnicki6518
@mathewrudnicki6518 Жыл бұрын
They are the ultimate “trust me bro”
@justanothercomment416
@justanothercomment416 Жыл бұрын
When reddit first appeared there actually were experts there. Much like slashdot. But these days, mostly only knuckle draggers walk there as most intellects have long since left. Especially given the sociopolitical environment, large numbers of bo[o]ts, and the crazy moderators who exist for specific sociopolitical reasons. There are no experts on Reddit these days. Only those who pretend to be so, bolstered by a corrupt system design to control and manipulate people. Much of which applies to yatub too.
@justanothercomment416
@justanothercomment416 Жыл бұрын
Making my point, yatub sin sored my previous comment which said nothing but truth.
@jonsen2k
@jonsen2k Жыл бұрын
I kind of feel like such experts often are the ones who know just enough about the topic to notice the simplifications of it (or even just the deviations from the curriculum), but don't understand the reasons why it might not even matter. And I guess most of them also like to throw fancy terms left right and center to scare laymen away and feel superior.
@nomekop777
@nomekop777 Жыл бұрын
@@jonsen2k it's reddit. It's definitely just for the sake of feeling superior
@AJMansfield1
@AJMansfield1 Жыл бұрын
13:00 If you want a turbulence noise with more solid theoretical grounding, you could instead calculate the vortex shedding frequency of each vessel from its diameter and bulk velocity. (Then, integrate instantaneous frequency to get phase, and use the phase to calculate the amplitude; OR just apply the frequency as a bandpass filter on your white noise.)
@AngeTheGreat
@AngeTheGreat Жыл бұрын
Sounds pretty cool, I'll definitely have to look into that
@RamenPoweredShitFactory
@RamenPoweredShitFactory Жыл бұрын
This is one of those comments I read and understand nothing of.
@JuniorJunison
@JuniorJunison Жыл бұрын
@@RamenPoweredShitFactory mainly because it requires knowledge in high level math like calculus
@evilspoons
@evilspoons Жыл бұрын
@@JuniorJunison Calculus isn't that high level (at least, it shouldn't be, it's not that scary and we should stop treating it as such on a societal level), it's just the foundation that all the engineering concepts start from.
@recoverhealth2062
@recoverhealth2062 Жыл бұрын
@@JuniorJunison you need math to understand what a vortex is?. A fluid getting compressed creates a vortex if it has anywhere to escape while compressed, your kitchen sink makes a vortex, a seringe makes a vortex, toilets make a vortex. This is middleschool physics tier of knowledge.
@DefectiveCujo
@DefectiveCujo Жыл бұрын
Honestly as a mechanical engineering student having dealt with and dealing with fluid mechanics your comprehension and use of the formulas and concepts aren’t sacrilegious in any manner. You did what all of us engineers strive to do. Take a complicated concept and simplify and propagate it in a manner best suited for the project you are working on given the complexities of the material.
@fg8557
@fg8557 Жыл бұрын
Yes, it is a very simple model and I would have approached it completely differently, but the results speak for themselves
@w花b
@w花b Жыл бұрын
@@fg8557 if it works, It works.
@BrooksMoses
@BrooksMoses Жыл бұрын
Former Mechanical Engineering grad student here, who got a Ph.D. in fluid mechanics with an advisor who specializes in internal combustion engines, so I may have a little bit of expertise to pass judgement on this. This is, no question, a simulation -- and one that is, IMO, very well done. As my advisor often said, "All models are wrong. Some models are useful." The trick is to choose the level of approximation (i.e., wrongness) that is appropriate for the answers that you want, and while this has a lot more approximation than the full 3-D fluid simulations that an engine company might use, you're also not needing their level of precision in the answers. This is useful for what you need, ergo it is a successful simulation. The one "big" thing that I note that would separate this from what some people might judgmentally think of as a "real" simulation is that you haven't tested it against experimental data except in a sort of broad sense of "these numbers are about the right magnitude". It would be interesting to compare the simulated exhaust velocities and such to actual ones to see how close the model actually is in computing those. That would also give you an ability to multiply some of your flow equations by experimentally-derived "correction factors" to account for the fact that the flow doesn't precisely match the simplified model -- for instance, perhaps typical cylinder geometry gets 95% as much scavenging as you calculate or something. But that's a refinement, and IMO there is nothing wrong with an "a priori" model like this. For simulating the turbulent noise, random noise is almost certainly the best choice. To be most accurate, you probably want to "color" the noise by having different average amplitudes at different frequencies rather than using plain white noise. I don't think there's a good way to calculate the coloring other than using parameters from an experimental recording -- which is basically what you're doing in a very rough way by a "does this sound about right?" adjustment, and given the small amount of difference it sounds like it makes, that amount of accuracy is entirely sufficient. I am also reminded of one of my dad's career successes in his Mechanical Engineering Ph.D. back in the 1960s. He was working on simulations of turbulent flow next to the walls in a nozzle, and the "most advanced" state of the art at the time was complex 2-D computations. He found that, by using a much simpler 1-D approach that used experimental data more heavily, he could produce notably more accurate results than the 2-D computations. So more-detailed does not always mean more accurate!
@AngeTheGreat
@AngeTheGreat Жыл бұрын
Thanks for sharing your knowledge! I would absolutely love to get some decent equipment and test the simulation against real data. In fact, it's something that I may actually do as the simulator develops. Part of the problem I had while writing the simulator is the lack of experimental data, or at least, experimental data that is easily accessible online. There's also a notable lack of experimental data on the more "non-essential" elements of engines. For instance, finding a research paper on "cam chop" seems to be pretty challenging and I wasn't able to find many satisfactory scientific explanations for that phenomenon. In any case, perhaps as more knowledgeable people such as yourself learn about the simulator and contribute their knowledge, those gaps can be rectified. Thanks for watching!
@purplepurplesaurasne
@purplepurplesaurasne Жыл бұрын
I am amazed at how complex yet understandable this all was, thank you for all of this fascinating stuff and glad you are getting some recognition for your work.
@AngeTheGreat
@AngeTheGreat Жыл бұрын
Thanks! Glad you liked the video :)
@Dr.Observation
@Dr.Observation Жыл бұрын
Clicked to see cool animations... ...learned how a refrigerator works, epic!
@AJMansfield1
@AJMansfield1 Жыл бұрын
I really admire how you're able to explain how this works without it feeling dumbed down, and I'd absolutely love to see more. (Perhaps even make a SoME3 entry out of your engine simulator work when that rolls around next summer?)
@cobaltcloud64
@cobaltcloud64 Жыл бұрын
now that i think about it, i'd be surprised if Grant never came across one of these engine sim videos. they'd for sure make for an interesting submission to SoME
@mimisaiko
@mimisaiko Жыл бұрын
The way you tried to make it sound more "real" or organic, is really similar to how sound designer do with synthesizers. Add randomness and noise then it won't be as digital and clean haha. Great video, never mind those people speaking things anonymously.
@bodanerius
@bodanerius Жыл бұрын
I dont care how accurate this is or how good the engine manufacturers simulations are. This is so freggen cool. I love this project. If I picked up one thing from your impossible engine simulation. Its that part of the sound of an engine its that its not perfectly balanced. So if you can somehow include minor imperfections and/or insimilarities between cylinders in an engine. It would probably sound more lifelike. Keep it up 😎
@Appletank8
@Appletank8 Жыл бұрын
i had this idea to purposely misalign the crankshaft. Instead of 180 for 4 cylinder, vary between 178 and 182 degrees.
@MajatekYT
@MajatekYT Жыл бұрын
Yeah, this is definitely getting into the realm of the physics and gas simulation engine being "too" perfect, whereas in real life there's piston seal leakage, gear teeth backlash, timing belt stretching/slipping, and all sorts of other nasty vibration that causes wear and tear with real-life engines.
@dragonsaber8765
@dragonsaber8765 Жыл бұрын
@@MajatekYT but it will take long to implement that because consider like the materials that combined to become part of that engine. it can create the simulation engine perfectly like timing, gear, etc, but the rest of them do it in real life
@thomasenglish8169
@thomasenglish8169 Жыл бұрын
This guys work will truly be the big breakthrough racing games need. Excited for the next step forward!
@JasonBeo
@JasonBeo Жыл бұрын
I really really doubt that we have the hardware to run such complex engine physics in racing games just yet. Keep in mind that most Racing simulators like Iracing, ACC etc, run their physics around 400-500HZ in order for hardware and netcode to be able to keep up. We still have a Loooooong way to go until such complex engine simulations can be used in a racing game.
@FlaxTheSeedOne
@FlaxTheSeedOne Жыл бұрын
@@JasonBeo True but this allows to get sound for engines way more accurate than before possible. Even if they aren't simulated in game, but pre recorded and played back. Or have a Model that sits somewhere in between.
@JasonBeo
@JasonBeo Жыл бұрын
@@FlaxTheSeedOne It might work as a middleware that generates the sound true.
@JohnKerrashVirgo
@JohnKerrashVirgo Жыл бұрын
@@JasonBeo Like how NatualMotion's Euphoria improved ragdolls. We can dream.
@kryse4806
@kryse4806 Жыл бұрын
@@JasonBeo it doesnt need to be the full sim itself, you can just use the sim to generate the sound and use the super clean samples to work on. I think someone already utilized this for an ac mod, I think I downloaded it but I forgot the name of the car, I can look it up if anyone is interested
@RC-1290
@RC-1290 Жыл бұрын
Do I understand correctly that you're using EQ to boost the high frequency signal, to make it less muffled sounding? Have you tried adding harmonics for the high frequency sounds? For example with a saturation filter? As if the loud sounds vibrate other parts of the engine, with different kinds of sympathetic frequencies.
@LarsWilms
@LarsWilms Жыл бұрын
He does have a clipper at the end
@RC-1290
@RC-1290 Жыл бұрын
@@LarsWilms true, though I'm not sure that's the kind of saturation you would expect from an engine
@alexthi
@alexthi Жыл бұрын
From a physical standpoint, this makes sense even without considering mechanical vibration, since acoustic propagation at these pressure levels is nonlinear: the waves travel faster in the high pressure zones than in the low pressure ones, causing gradient steepening and spectral enrichment. A simple setup to take it into account would be a variable delay filter, in which the delay depends on the signal itself.
@robiaster
@robiaster Жыл бұрын
Not sure if that would really give you a better result. If you work with high pressures, air acts more akin to a compressor, as you have some base inertia from your particles, and compressive properties where part of the acoustic energy is converted to heat due to friction or pressure differences in the air. So while you do get changes in dynamics from the air and elements around the engine, it wouldn't really saturate the sound, as the changes in dynamics happen on a larger timescale than 1 single cycle. Beyond that, the main issue that's being corrected here is the overall spectral shape of the sound, while keeping the waveform mostly intact. If you distort the signal, you won't really shift the spectral centre in any major way (this refers to the overall shape of a sound when viewed in a spectrogram). This is pretty important to how our ears perceive "dark" or "bright" in a sound, so an EQ would work better here. Last but not least, if you actually wanted to simulate the way the engine resonates by the sound, you would still use a convolution impulse for this. The harmonic frequencies you generate would be harmonic frequencies of the object that is being excited, not the signal that generates it. So having harmonic distortion on the engine rawr itself sounds somewhat unnatural (at least from my theorising and testing I just did).
@RogueBeatsARG
@RogueBeatsARG Жыл бұрын
Saturation would help the "click" feel less digital for sure
@wuiss__._
@wuiss__._ Жыл бұрын
People: how does your program that makes vrom vrom noises works Ange: *proceeds to do a university class on mechanical engineering* Loved it
@navb0tactual
@navb0tactual Жыл бұрын
Anyone else notice how his voice has sounded a lot higher and happier at the start of each vid? I think this is a big morale boost for him, keep it up folks! Keep it up AngeTheGreat!
@AJMansfield1
@AJMansfield1 Жыл бұрын
For the EQ stages, there's a definite physical justification to boosting the high frequencies if you consider the way the thin walls of different exhaust components would couple interior and exterior pressures, blocking "DC"=exhaust leaks while allowing high frequency. And if you want, you can absolutely derive "realistic" frequency response curves from first principles by finding clever ways to treat everything as a damped spring-mass system (or an LCR circuit, since it's the same math). For a thin-wall exhaust tube, the mass term can come from the material's area density and the spring term from hoop stress calculations; for a solid engine block the mass term can come from volumetric density and the spring term from hertzian contact stress mechanics. For either, the damping term comes partly from mechanical properties and partly from the exterior surface area vibrating and getting pressure+cavitation drag.
@charliemaybe
@charliemaybe Жыл бұрын
You know understanding the way an engine works is cool and all, but the fact that this man just made this level of simulaton perform as good as it does, is just something else entirally. Round of aplause for this chad that made this with his absolute dedication and knowledge of engines, coding, and physics.
@joaolucamendes5503
@joaolucamendes5503 Жыл бұрын
Ang, how many hours does your day have? 36? By the way, the fact that this video feels like an animated termodynamics course is mind-blowing.
@BrooksMoses
@BrooksMoses Жыл бұрын
Doesn't it, though? I'm sending it to my thermodynamics professor so he can get some ideas from it. :)
@TropicDaKid
@TropicDaKid Жыл бұрын
Bro accidentally started an entire trend/community out of pure curiosity
@fishercawkey
@fishercawkey Жыл бұрын
This is one of the most superb videos I've watched on KZbin, describing one of the most superb computer applications ever written by an individual (in my view). I could go on and on but instead I'll point out how you only spent a moment saying something that I believe is super important: your goal was to make something that sounds realistic but runs in real-time on consumer hardware - i.e. purpose + audience = application. I have an aeronautics background and have thought for many years about writing flight simulations (I created one back in 2006 and published it as first author on an AIAA meeting paper) -- the idea that "the more realistic I make this, the more people will find something to critique" can be debilitating. But ultimately, I see you've done something for enjoyment, because you thought it was cool -- I truly respect that, and to hell with them haters!
@MrBluGruv
@MrBluGruv Жыл бұрын
I made a VST version of this core idea in 2012, but credit where credit is due, I did not build a full-on physics modeling engine, but rather condensed the conceptual functions of an ICE engine to work within the framework of a musical synthesizer. It's been interesting to watch the development here and the open-market uploads of various users' different engines, because I can see and hear the exact same issues I had to work through to get mine more accurate over the (admittedly quite long) time it took to develop into the fully-featured product I brought to market. Seeing this newfound interest (or perhaps just latent interest that I never tapped from lack of adequate advertising?) has made me consider picking up development again. Either way, impressive product so far for sure, and I hope you're able to further refine the model to get a more accurate response/sound out of this program than even what you already have.
@veaxvoid
@veaxvoid Жыл бұрын
Man pls don't listen anyone who says bad stuff this is insanely good and amazing job overall, as a fellow programmer I can appreciate a good real time simulation when I see one. And the sound is just unbelievable. you know what? it would make an insane FL plugin lol~
@user-un5tf3zz6k
@user-un5tf3zz6k Жыл бұрын
Gosh, It is so beautiful. The code you write the sheer size of your project, and how you visualise that, it is just beautiful. I do also enjoy reinventing things and diving into the details of how stuff works, and then implementing it with code, bu I still cannot build something as big and complex as a 3d renderer. I really admire your work. Thank you for the videos!
@AHSEN.
@AHSEN. Жыл бұрын
The rest of your videos are so awesome, you totally deserve a lot of subscribers. I'm glad this small project has allowed your channel to grow so quickly :D
@MrTimcakes
@MrTimcakes Жыл бұрын
Lovely, this is exactly what the first video had me yearning for. Great work!
@consuminhelium3346
@consuminhelium3346 Жыл бұрын
Amazing stuff dude! Love the more technical breakdown
@Mini_Celeste
@Mini_Celeste Жыл бұрын
See, I just love the fact that this was done -SPECIFICALLY- in the quest for realistic engine sounds. Not for like a full realistic engine simulation or anything, just to get the sounds right... but along the way it just morphed into that, and when you think about it of course it makes sense. What better way to generate a realistic engine sound from a handful of variables than to simulate the entire engine? Because all of it has an effect. Flat plane cranks sound far different than a cross plane. Cam lift duration will change how an engine sounds. The length of the headers, the firing order, all of it... and I'm thoroughly impressed at just how close and good it is, even in this form. Honestly can't wait to see how this tool evolves.
@jamesmcqueary6233
@jamesmcqueary6233 Жыл бұрын
I love the way he describes all of the technical aspects as well as the physical aspects. I've had trouble understanding engines for the longest time. Subscription earned!
@ralfszemzars1885
@ralfszemzars1885 Жыл бұрын
To me, the most amazing audio that comes out of your simulation is engine braking. I have not heard a better "sample" or simulation in any game on deceleration, as well as transient throttle inputs. Nothing comes close, and you hit the nail on the head when you mentioned that those are the things that we listen to and intricate details add to the realism. Thank you for the explanation!
@gabrielv.4358
@gabrielv.4358 Жыл бұрын
really REALLY Amazing!! But there's one thing to consider: The engine itself makes noise, the inside parts make sound too, the valvetrain, and such. Still, Amazing program! Edit: I never thought I would ever see anyone make an really accurate engine simulator. You made it. You're a legend. Congratulations!
@igor_frolov138
@igor_frolov138 Жыл бұрын
Another sound when shifting the piston in dead spots.
@vojtecheffenberger3672
@vojtecheffenberger3672 Жыл бұрын
Maaan thats nuts, great job around the audio. Implementation of sounds for real engines is the most difficult task in game audio imho. Absolutely stunning. Thank you
@zombieregime
@zombieregime Жыл бұрын
As a non-expert in anything you've created for this program, I can honestly say you sir are 100% legit. Its the internet, there are people that will kiss your butt saying how this sim changed their life then switch accounts and make another comment about how your ancestors are ashamed and you should find a short pier and take a long fuck off it. Dont forget, the positive comments come from people who just happen to have the time and motivation to comment, vastly more people could very easily be geeking out over the two engine types videos (as I did yesterday, and I dont think I commented because I didnt really have anything to say at the time) but not commenting. Then there is the internet hate brigade that is always fired up to author a fresh dissertation on whatever they can reason as context for keeping your ego in check, and they love commenting back and forth to each other. And there is the volume boosting effect of the vocal minority and their vitriol, magnified by bandwagoners. The negative crowd ALWAYS seems louder and denser than the interested/positive commenters crowd, while most people at the very least are going "huh, cool" and on to the next video. Dont let those negative comments drag you down, especially when the view count to negative comments ratio is on the scale of mountain to mole hill. Rest assured, this is one internet weirdo whos pants have been efficiently blown off never to be seen again. Also, I know coding aint easy, even when you've done it for a while. Getting all that to run in essentially real time is no small feat. A quick glance at any app/game store will prove people have asked far more compensation for magnitudes less effort. From one nerd to another (I assume you identify as nerdy on some level, as we all should feel comfortable doing about the things we nerd on) Thank you. Thank you for your time, effort, sharing your interests and knowledge, for sharing what you have created with the internet at large. You and this project are a shining example of what the internet, as a community, is supposed to be about. Make something cool, share how you did it, and allowing/enabling others tweak and tween it to their whim without losing scope on your goal. Seriously, thank you.
@dmgb5694
@dmgb5694 Жыл бұрын
Actually pretty informative, I have a new understanding of how air moves. Thank you!
@yannicg
@yannicg Жыл бұрын
This project is awesome, I really appreciate your work on this!
@8curred72
@8curred72 Жыл бұрын
Tons of thanks for the insight on how you achieved the sound! I'm interested in achieving realistic engine sounds digitally and your video definitely cleared the path
@maty1229
@maty1229 Жыл бұрын
This video is great, dude! I started watching expecting most of the content to go over my head, but your explanations are very easy to understand.
@GeneralKenobi69420
@GeneralKenobi69420 Жыл бұрын
ok f*rry
@deformercr6680
@deformercr6680 7 ай бұрын
This is the best video I have watched in ages. Concepts were explained with an effortless almost lazy clarity that just clicked. You are an inspiration, my good sir.
@nn-wm2un
@nn-wm2un Жыл бұрын
Hey man, I have to say I am impressed with your work. Great stuff, truly. Keep it up. I am going to download and play with Engine Simulator for many hours! Cheers from a mechanical engineer, fluid dynamics simulation specialist, former Honda engine plant guy.
@xxhitman1992
@xxhitman1992 Жыл бұрын
This is just amazing, thanks for sharing your work in such a manner, great explanation of simulations in general and yours specifically.
@Tycy2014
@Tycy2014 Жыл бұрын
How you explained convolution was amazing!!!
@r3ttgaming177
@r3ttgaming177 Жыл бұрын
First off, I love it all! Everything from the visuals and explanation to the voice over, it's all on point! I feel like this video could only have been made by someone who really knows and loves his craft. This video also shows that a regular human really can learn almost anything. Thanks for teaching me something new and interesting, made my day a little bit better! : ) (Side note: 13:31 I 100% agree LOL) 12:55 From my experience, this noise is almost never truly "random" (but I think we both get that, moving on). Theoretically correct or not, this noise method is actually commonly used in music production when you are making a synth preset/sound etc. The reason behind this is almost the same as yours. The noise coming from an electronic synth can in a lot of cases sound too perfect, sterile and electronic. By adding noise into the mix you make the synth sound more natural and warm (in a way faking how an analog synthesizer would sound). I sometimes use this technique myself when making a preset. (there's obviously more to noise than this but it's the basics) 13:39 When I see this I wonder a few nerd things (sorry if this is a lot). 1st: What bit depth and buffer size is the program "playing" at if you know (both before the "upsampler" and at the finale output sound, if there is a difference)? 2nd: What noise is the "Noise Generator" generating? (Is it just regular white noise or something more complex?) 3rd: What "settings" are you using for your "low pass filter" (what frequency does it filter etc)? 4th: What compressor type is it (multi- or single band etc), and what "settings" are you using for it (if it operates like a regular compressor that is)? Again, thanks for the cool video, I love it, and thanks for reading this!
@zephyrj
@zephyrj Жыл бұрын
Thanks for taking the time to break down these concepts; I imagine it requires a fair amount of work What you've achieved in ingesting complex information, breaking that down into base principles and experimenting is very impressive. You deserve every success that comes from your methodology and so far the output speaks for itself I look forward to going through the code and learning a thing or two
@Makker_1
@Makker_1 Жыл бұрын
Way more interesting than expected.
@TheBio42
@TheBio42 Жыл бұрын
This is the stuff modern racing games need! The engine sounds like a Ferrari without even having samples! I love the idea that you can reproduce the engine sounds with just maths and physics.
@Jacobel27
@Jacobel27 Жыл бұрын
Great work Ange. Thanks for sharing!
@PESCADORSHOES
@PESCADORSHOES Жыл бұрын
Every new video blows my mind. Hoping to use your simulator in Unity some day.
@MuffinTM
@MuffinTM Жыл бұрын
man, ange. you're like a teacher or something. im literally taking notes while watching this so i can understand this simulator.
@robbenfelix
@robbenfelix Жыл бұрын
Incredible! Thank you very much for sharing your insight and the fruits of your efforts!
@RavoxJ
@RavoxJ Жыл бұрын
First time seeing this and its absolutely fascinating, great job :)
@julienmans3359
@julienmans3359 Жыл бұрын
The showcase video already was very impressive and inspirational but this one is straight-up a true work of art. As an applied mathematics engineer I can only appreciate this accomplishment even more
@captainbanglawala2031
@captainbanglawala2031 Жыл бұрын
Hi Ange, can you make a video explaining how the physics engine works? When they start talking about projected Gauss siedel methods my eyes just glaze over. I've tried reading the Baraff papers but not easy to follow
@AngeTheGreat
@AngeTheGreat Жыл бұрын
I did make one already but it doesn't cover the Gauss Seidel method in detail. I believe Engine Simulator uses a gradient descent solver for the physics
@usernamea1118
@usernamea1118 Жыл бұрын
Excellent work and presentation!
@furkanunsal5814
@furkanunsal5814 Жыл бұрын
the problem is very interesting and the solution is very well applied. I loved your project and am waiting for future updates.
@DC_DC_DC_DC
@DC_DC_DC_DC Жыл бұрын
Holy crap dude, I was already amazed enough about what you've been building and presenting and thén you casually started discussing the heat cycle in refrigeration using your model. And then it just kept getting better and better...
@poetro2567
@poetro2567 Жыл бұрын
This is insanely interesting. I am so glad I’ve found your channel
@AndyRRR0791
@AndyRRR0791 Жыл бұрын
Take it from someone who spent over 20 years in the auto OEM engine development business, with names most will recognize immediately, your simulation is f-ing ace! It's probably more than good enough to do some scoping work at a conceptual level for a real world engine development project if you were after a certain type of sound. It probably also generates a more accurate power and torque estimation than most garage dynos that people use for their modification willy waving. I salute you sir!
@pazsion
@pazsion Жыл бұрын
Way to go man, definitely deserves recognition.
@Nirossen
@Nirossen Жыл бұрын
Lol you making the bonehead engine sounds is basically me on serum/phaseplant (vst) some days. Love that you share this knowledge
@ex1tium
@ex1tium Жыл бұрын
It's incredible thing you've achieved. Hat's off!
@mattsta1964
@mattsta1964 Жыл бұрын
Fantastic project. Fascinating to watch and learn
@Orangaria
@Orangaria Жыл бұрын
This is very impressive man, i'm a big fan of your work :)
@k.c.maclachlan3227
@k.c.maclachlan3227 Жыл бұрын
God damn this thing is cool. The UI is awesome, delightful to behold. Well done!!!
@dontdowhatido6503
@dontdowhatido6503 Жыл бұрын
This is so sick!!! I love the detail involved. I will totally buy this game
@notanengineer
@notanengineer Жыл бұрын
That recorded and posted tag underneath the sub count is neat. Very clever
@lh1168
@lh1168 Жыл бұрын
The Sanford and Son reference was not lost on me. Good chuckle. Great vid!
@AngeTheGreat
@AngeTheGreat Жыл бұрын
Haha it's one of my favorite moments in the show!
@jaredloveless
@jaredloveless 3 ай бұрын
Fascinating! I came here because I'm searching for audio simulation. Really cool.
@MissNorington
@MissNorington Жыл бұрын
This is probably the coolest thing (from a programmer's view) that I have seen the last 10 years!
@98perova
@98perova Жыл бұрын
Dudeeee that sound 👌👌 exquisite!!
@lukagouvea4146
@lukagouvea4146 Жыл бұрын
Damn, think I could watch 5 hours of this guy talking about mechanics and software. This engine is awesome, never seen a tool so simple work so well
@mrjed
@mrjed Жыл бұрын
this is awesome for any high speed dsp stuff; amazing work
@Dr_Xyzt
@Dr_Xyzt Жыл бұрын
This is awesome. I love tampering with engine design, but some things, we just don't have the time and funding to do. This solves that quite well! Thank you! I never really understood programming, so I will attempt to use the program. Wish me luck!
@mikeraphone7868
@mikeraphone7868 Жыл бұрын
This is the coolest shit, it's what I'd dreamt of making when I was younger and first got into automotive engineering stuff. You're doing god's work
@clown134
@clown134 Жыл бұрын
holy shit. I've been sort of learning the ins and outs of digital audio workstations for 20 plus years, but what you have shown here is something like the next generation of physically modeled synthesizers. astounding
@BaillehachePascal
@BaillehachePascal Жыл бұрын
Impressive work ! 👍
@FilterYT
@FilterYT Жыл бұрын
Amazing! Thanks for sharing so much!
@Noffie
@Noffie Жыл бұрын
Thanks for this amazing video, ill definitely be watching it a few times lol
@CharlesVanNoland
@CharlesVanNoland Жыл бұрын
People on Reddit were doubting the veracity and authenticity of this simulator? Shows how much they (don't) know! It's clear that it's still not a "perfect" simulator, as far as the audio generated vs the genuine article that it is simulating, but it definitely is producing audio that has the same distinct characteristics of the actual motors and engines themselves. This engine simulator and the audio synthesizer are REALLY cool, and the sheer novelty and ingenuity are something to behold. I think the work done here was well worth it for the result produced, and AngeTheGreat accomplished what he set out to. If someone wants to go write an individual molecule or even macro-particle simulator that does the same thing, I challenge them to. At the end of the day, a simulator will never produce the same exact effects or results of the actual thing that's being simulated, that's why it's a SIMULATOR. I sorta feel like this video wasn't warranted, at least anywhere it acknowledges the jealous naysayers, though I did enjoy more breakdowns of the internals but I fear that their presentation was motivated out of frustration with the dingdongs with internet access, rather than by passion like the previous videos were. Nobody doing awesome stuff like this needs to be wasting their time or mental energy on recognizing the morons who will never do anything anywhere near as neato or interesting. Anybody can say anything on the internet, and as such morons will say moronic things, it's inevitable - there's no avoiding it, so you just gotta take it in stride and not let it affect you.
@LinksSpaceProgram
@LinksSpaceProgram Жыл бұрын
This is super interesting and explained very well. Great job
@kaapporaivio
@kaapporaivio Жыл бұрын
Lol I can never figure out how to type out these but you truly are one of the best creators on KZbin in my opinion
@AngeTheGreat
@AngeTheGreat Жыл бұрын
Thanks man, appreciate it 🙏
@leyasep5919
@leyasep5919 Жыл бұрын
That's such an awesome work !
@TheBigQQ69420
@TheBigQQ69420 11 ай бұрын
this is beyond beautiful. perfect or not... it sounds amazing.
@simonsemmler9804
@simonsemmler9804 Жыл бұрын
Sweet! Looks really cool! :)
@FlumaFPS
@FlumaFPS Жыл бұрын
this one 20 minute video has taught me more than the half a year ive spent at college
@opti12
@opti12 Жыл бұрын
Amazing stuff dude
@gamefrek14
@gamefrek14 Жыл бұрын
Yo I'm gonna need that link to the pre-order for Fridge Simulator XD. This took me back to my engineering college days (PV=nRT was that bain of my physics existance) and its awesome to see how much work you have put into this.
@JuniorJunison
@JuniorJunison Жыл бұрын
Man I love this project so much.
@theusual5uspect
@theusual5uspect Жыл бұрын
Fluid mechanics expert here. You’ve done a great job here. Computational fluid dynamics software is a real mess. It’s often crazy expensive and awkward to use or free and open source and even more awkward to use. The results are often garbage and require a lot of experience and expertise to be useful. For students the whole experience is painful. They struggle with the user hostile software and barely get something basic to work in the end. A tool as accessible and dynamic as yours would make an incredible teaching environment. Same for BeamNG. So in a sense this is revolutionary.
@davidjhyatt
@davidjhyatt Жыл бұрын
Thank you for the book recommendation! Your videos are great!
@AngeTheGreat
@AngeTheGreat Жыл бұрын
No problem! Thanks for watching, appreciate the support 🙏
@Luftbubblan
@Luftbubblan Жыл бұрын
Hah, this is pretty dang cool. I didn't really read the topic before i started and i was like: Hey, he seem to like audio stuff, took a hot minute until i understood that was the whole point haha. Sounds amazing!
@dellwoodspeedshop
@dellwoodspeedshop Жыл бұрын
I think using the ideal gas model was a smart idea for your air pump simulation, considering that atmospheric temperature and pressure is already well past the saturated vapor line on a T-v diagram, but since refrigerators operate so close to the saturated vapor line, and commonly transition into the liquid/vapor mixture dome, you won't get any meaningful/realistic behavior out of modeling refrigerants using the ideal gas model. Other than that, I am glad you spent the time going over how you condensed undergrad level engineering material into a nice and clean piece of software. Very good job. I bet you that car companies model their engines by solving the navier-stokes equations repeatedly for each cylinder, one degree of rotation at a time, for each each stroke, which probably takes hours for them to compute just a complete cycle of all cylinders. You are able to create meaningful and semi-realistic engine behavior in a matter of milliseconds of time. That is so freaking cool!
@AngeTheGreat
@AngeTheGreat Жыл бұрын
The refrigeration cycle shown in the simulation is not the same as the one used in typical vapor-compression systems. Refrigeration can be achieved without any changes of state, but is less efficient. What I show is gas-cycle refrigeration which is a rarely used but still viable method of refrigeration and does not use phase-changes or any special refrigerant (air being the refrigerant). Gas-cycle refrigeration systems are also slightly different from the one shown in the simulation and typically use an expansion chamber or turbine to reduce pressure as opposed to a nozzle but I wanted to keep the demo as simple as possible.
@boogiehasfun
@boogiehasfun Жыл бұрын
you went from a causal c++ enjoyer to being a on motortrend. that’s impressive
@polybius2282
@polybius2282 Жыл бұрын
This is amazing, now put the output through that impulse converter a few times to simulate the engine bay and the room the car is in and you've got yourself a very convincing engine sound
@anteshell
@anteshell Жыл бұрын
I don't care at all about engines and their simulation, but your approach to generate sound is awesome as heck. Real-time procedural realistic audio generating has almost infinite potential and amount of use cases.
@eduardogarcia3049
@eduardogarcia3049 Жыл бұрын
This is so awesome!!
@nmc356
@nmc356 Жыл бұрын
I think you have done a pretty good job. Software is not my thing, but I do motor sport as a hobby. I do know that different inlets, carburetors and forms of aspiration do change the overall sound of an engine i.e full throttle under load, idol, cruise and engine braking as you mentioned. Inlet manifolds are designed with pulse wave from closing inlet valves in mind for example. I know by experience that at high engine speed with side draft carburetors you can get fuel mist coming out of the carburetor's velocity stacks. So to be able to simulate the exact sound of every engine configuration would be impossible. And exhausts vary. In saying that you are very close. Job well done. I doubt you would have time, but I have an engine configuration i would love to hear if you want to try it. Cheers, Nev.
@dandreani
@dandreani Жыл бұрын
great video as always, a tip to reduce youtube artifacts on the particles (eg 6:10) is to upscale, render and upload to youtube in 4k. The compression algorithm is way less harsh with 4k video, even when you are playing it back on 1080p
@AngeTheGreat
@AngeTheGreat Жыл бұрын
Good to know, thanks!
@LeRainbow
@LeRainbow Жыл бұрын
are you kidding me? this is incredible. Holy ... :O I am in awe and in love, this is something I would love to do. I have to get to reading, hope I've got the time!
@StarsManny
@StarsManny Жыл бұрын
STUNNING
@Alexander_Sannikov
@Alexander_Sannikov Жыл бұрын
I simulated a guitar sound in a similar way, by physically modeling strings with particles and translating their vibration into a waveform. the most interesting takeaways are that it's particularly hard to pluck a string procedurally without introducing a sharp release sound that sounds like metallic clanking, but it's curiously easy to stimulate rock-like distortion by literally clamping the output signal.
@Humble_Electronic_Musician
@Humble_Electronic_Musician Жыл бұрын
Great job!
@slightlyinsaneraf
@slightlyinsaneraf Жыл бұрын
Great explanation 👌
Simulating a Steam Engine with C++ (with sound)
18:41
AngeTheGreat
Рет қаралды 361 М.
Real-time Trumpet Simulation [C++/Vulkan] [WARNING: Flashing Lights]
22:02
Survival skills: A great idea with duct tape #survival #lifehacks #camping
00:27
DEFINITELY NOT HAPPENING ON MY WATCH! 😒
00:12
Laro Benz
Рет қаралды 50 МЛН
Happy 4th of July 😂
00:12
Pink Shirt Girl
Рет қаралды 61 МЛН
Simulating a Rotary Engine (yes, it braps)
16:30
AngeTheGreat
Рет қаралды 705 М.
Simulating the Evolution of Rock, Paper, Scissors
15:00
Primer
Рет қаралды 726 М.
Multicylinder Engine Simulation - Engine Simulator Devlog 6
20:26
AngeTheGreat
Рет қаралды 241 М.
Noob Tries to Blow Up Boiler in Steam Engine Simulator
11:18
Kosmonaut
Рет қаралды 181 М.
Engine Sim Quad Rotor in BeamNG
39:58
fillman86
Рет қаралды 97 М.
All Automation Engines At 12000 RPM!
3:55
Forgotten Mustard
Рет қаралды 17 М.
What's The Best Sounding Inline-Twin? AngeTheGreat Engine Simulator
4:47
Forgotten Mustard
Рет қаралды 61 М.
V3 to V20 Engine Sounds - Engine Simulator
14:40
IceManV93
Рет қаралды 48 М.
NEW MAFIA EPISODE INCOMING 🖤
0:34
Alan Chikin Chow
Рет қаралды 8 МЛН