Simulating an Entire Car Engine (yes, it makes noise)

1,818,433
0
Published 2022-08-02
Quite possibly the dumbest project I've ever undertaken, this was an odyssey but well worth it in the end. It's hard to fully explain the depth of the rabbit hole that I was led down and I ended up having to study things like fluid dynamics, physics and chemistry. As the title suggests, this is a physically realistic (or at least, somewhat realistic) internal combustion engine simulation. It also generates audio which I feel is some of the best procedurally generated audio for a V8 engine I've ever heard.

If you want to see this game/tool become a reality, consider supporting it on Patreon!
www.patreon.com/atg_engine_simulator

Download Engine Simulator for free!
github.com/Engine-Simulator/engine-sim-community-e…

Engine Simulator Codebase
github.com/ange-yaghi/engine-sim

Join the Official Engine Simulator Discord Server!
discord.gg/engine-sim-official

Join my channel community Discord!
discord.gg/R2baT4t5U7

#simulation #gamedev #programming

Check out my GitHub profile!
github.com/ange-yaghi

Follow me on Instagram!
www.instagram.com/ange.the.great/

If you like my work and would like to support me, consider donating!
ko-fi.com/angethegreat

Subtitle Credits:
Portuguese: David Rios

Thanks for watching!

All Comments (21)
  • @AngeTheGreat
    I find it amusing that everyone on Reddit commenting on this has like 300 IQ and knows everything about engines AND simulations, but can't figure out that a simulation that runs in real-time and is intended for video game usage is not meant to replace professional engineering software. That's right guy from Reddit watching this, I'm talking to you. I did this for FUN to be used in GAMES and it's an A P P R O X I M A T I O N to generate cool audio. If it's so trivial and pointless, write a better one yourself and post a video about it. I'm looking forward to it. Everyone else, thanks for watching! (sorry for the rant)
  • @Pope_
    this guy is the most chad programer i have ever seen, him so cassualy saying "I optimized this extremely accurate physics simulation to run at 85 thousand frames per second" and "I coded it in my own programming language for efficency" is absolutely insane
  • gigachad casually just makes the best engine sound generator all on his own
  • @Kj16V
    As a fourth dimensional being, I was surprised when a bunch of pistons and conrods suddenly appeared out of nowhere.
  • @raftazor
    I can't believe you turned bocchi into an engine
  • @SaHaRaSquad
    "Quite possibly the dumbest project I've ever undertaken" - Quite possibly the biggest understatement I've ever seen
  • I’d love if a company hits you up and is like “can we use this”
  • I've always wanted car games to have real sounds like this since I was a kid
  • @garethwillis
    I'm speechless. Your so clever. The way you just casually created this for fun whilst being so accurate. All of the people complaining about the sound, make your own and share it. The fact it doesn't sound identical to its respective engine means nothing. For a start it gets surprisingly close but even if it didn't, it wouldn't make any difference, this is still really impressive. Not sure why people find it so difficult to pay someone a compliment.
  • "Basically, your engine just grenades into the 4th dimension." That's crazy realistic, that happened to my girlfriend's 2013 civic.
  • @Agent_Ax
    Would love to see a detailed video on the internals.
  • @marh122
    when we learned about engines in school, I just could not believe that pistons are spinning that fast and all 4 cycles are included, I find it amazing they can hold for hundred thousands kilometers
  • @Doornob69
    Bocchi the 7.4L v8 carburated naturally aspirated big block.
  • @jwright7317
    This fucking rocks, holy shit dude. I'm down for a technical breakdown video!
  • @quads4407
    Here are some ideas for your project: - rotary engine - simulate things that interact with the engine's behavior and sound like turbos, exhaust, etc
  • Imagine if the BeamNG devs were able to implement this somehow! I think I'd struggle to ever play anything else. Definitely going to watch this again on headphones, because for me, the car sound is the best part of driving. The aural feedback stirs the soul, and if something like this can be added to EVs to play back authentic ICE sounds through a speaker, it will be a heck of a lot better than having nothing but wind and road noise with a distant electrical hum.
  • @yuvalamir3226
    You should totally sell this as middle-ware. This is the kind of stuff tripple A studios will pay top dollars for.
  • @BayLeafff
    Man this scratches an itch!! I always wondered why (as a kid) devs didn't just code the laws of physics into their game engines, lmao. Durr.
  • @Calliber50
    As an engineer who made models of physiological systems in college you've just broken my brain. You've reverse engineered audio. I can feel this engine, my brain refuses to believe the actual engine isn't in your garage. If this were in a game, motor-heads could tinker with models of their favorite classic cars in a simulation and the audio feedback would make it extremely real.