Live data from Hacker News

Engine Simulator: produce realistic sounds from various engine parameters

github.com

11–20 of 31 posts

Re: Engine Simulator: produce realistic sounds from various engine parameters

#11
post #2

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

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

Re: Engine Simulator: produce realistic sounds from various engine parameters

#12
post #7
post #4

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?

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

I think you mean acoustics, not autistics =)

Re: Engine Simulator: produce realistic sounds from various engine parameters

#13
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.

Re: Engine Simulator: produce realistic sounds from various engine parameters

#16
post #7
post #4

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?

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

A second simulator for exhaust systems would be appealing. Perhaps he will figure it out himself, or re-open source the existing simulation once he figures out how to get the credit/compensation he deserves.

Re: Engine Simulator: produce realistic sounds from various engine parameters

#17
post #16
post #7

Earlier quoted context omitted.

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

A second simulator for exhaust systems would be appealing. Perhaps he will figure it out himself, or re-open source the existing simulation once he figures out how to get the credit/compensation he deserves.

I think the issue would be that whereas this I think can get away with just a really fast rigid body simulation, the exhausts and so on would need to simulate acoustics where you have feature sizes in the same ballpark as the wavelength of the sound i.e. your ear will almost definitely be a harsh critic.

Re: Engine Simulator: produce realistic sounds from various engine parameters

#18
post #2

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

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.

Re: Engine Simulator: produce realistic sounds from various engine parameters

#19
post #18
post #2

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

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.

Live For Speed also sounded pretty average, although it was still highly appreciated that they simulated it instead of fauxing give the type of game it was.

Re: Engine Simulator: produce realistic sounds from various engine parameters

#20
post #9
post #7

Earlier quoted context omitted.

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

Could use convolution with recorded impulse response (IR) files to achieve realistic results for different exhausts.

Not sure how one would be able to obtain impulse response of the exhaust system
Post reply on HN