@Lumak could you please elaborate on how do you make cool car sound in your raycast vehicle demo?
Thanks!
@Lumak could you please elaborate on how do you make cool car sound in your raycast vehicle demo?
Thanks!
The reason I ask is
I could not get any way close to this, I want effects level of GTA3 or something.
There is some theory involved, I think, but I can’t understand where to look for it.
You can simplify step 1 with having only one RPM range (800-8000) and one sound, then pitch it up and down depending on the RPM speed but it would sound kinda boring. Changing gears is simple - every gear has some range of engine RPM, say gear 1 800-3000, gear 2 1000-3000, gear 3 1000-4000 and so on. These are random values that pop from my head, gear change depends on the driving style and the car model.
I’m not in any way expert on this subject tho, but I’ve played alot of (driving) games and sims
Actually shifting gears is for keeping the RPM within a range of about roughly a 1000 to 2500 (highly dependent on both engine and situation) so the engine can do it’s work best. That’s why the frequency drops when you shift up. High RPM means more pulling power and cleaner burn, low RPM is more efficient fuel-wise.
When releasing the clutch with too low an RPM - and too much resistance on the driven wheels - the engine stops running. Too high an RPM for too long and it overheats.
That’s mostly from first hand experience as a driver and passenger.
Someday I plan to experiment with using SuperCollider in games and dynamic engine sounds would be one of the applications I’m looking to explore. Which would be synthesised with an RPM parameter read from the vehicle instead of bending the pitch afterwards. But maybe Urho’s sound synthesis capabilities would suffice.
I watched this video https://www.youtube.com/watch?v=GRMnN6Xd-yU