top | item 32423102

Engine Simulator: produce realistic sounds from various engine parameters

90 points| dtjohnnyb | 3 years ago |github.com

27 comments

order

samtimalsina|3 years ago

I wonder if this could be converted into a web application, maybe using WASM? I'm sure a lot of people here want to try it out on their own, but for me the build process is daunting as I haven't written C++ since college days. A web application would be very accessible.

acutesoftware|3 years ago

The sounds generated by this are very impressive - it is an actual simulation of the entire combustion process.

Best parts are the engine sound under load, slight delay when opening throttle and changing down a gear to force engine braking.

jb_s|3 years ago

This is great, I'm watching the video on YouTube now...

Are exhausts/mufflers modelled?

For ages I've wanted to simulate different designs for exhaust headers and systems, to be able to possibly create different/interesting sounds from certain engines - i.e. can you add some additional headers with a different length and make an I4 sound like an I6?

tonmoy|3 years ago

If I recall correctly he modeled the acoustics of the exhaust using equalizers and filters, so not really simulated

_qua|3 years ago

This is so cool and it's amazing to me that a single programmer was able to do this as a hobby project. (To me it's magic, I know to some this a just a big project).

deburo|3 years ago

Absolutely amazing. I wonder, do games like GTA simulate those sounds as well, or is it pre-baked somehow?

mhh__|3 years ago

In games you get a better result for the cycles by cheating rather than doing a physical simulation.

Live for speed IIRC did have a fully synthesized engine sound but most games now have samples and some clever interpolation / synthesis as mentioned by others.

cammikebrown|3 years ago

GTA used a combination of pre-recorded real life audio and their own granular synthesis engine. (Granular synthesis uses sampling, but cuts up the samples into tiny pieces and processes them in various ways.)

avereveard|3 years ago

Automation Game (car tycoon) features engine design and stimulates sounds from a combination of individual parts snippets iirc as you move around you can hear the valve train clicking or the cylinder firing

blt|3 years ago

This is so cool. It makes me wonder what kind of amazing simulation software is behind closed doors in car companies.

Cloudef|3 years ago

Wish I was doing something interesting like this for a work, instead of working on boring SAAS stuff