TOOL Engine sound generator?

Discussion in 'Sounds' started by luchian, Aug 11, 2022.

  1. luchian

    luchian Administrator Staff Member

    Joined:
    Jun 3, 2014
    Messages:
    3,007
    Likes Received:
    1,493
    I saw this video a couple of days ago, it blows my mind. A little bit of what LFS did, but “next-level”. For those moments when sound samples are not available, it might be a good source for the next best thing.

    Or at the least, a fun experiment.



    The code was initially open-source, then it wasn’t, now it is again :)
    https://github.com/ange-yaghi/engine-sim

    If you do use it for more than experimenting, consider supporting the author. (links in YT description).
     
    AccAkut likes this.
  2. Ryno917

    Ryno917 Member

    Joined:
    Dec 31, 2017
    Messages:
    30
    Likes Received:
    18
    Very cool! Saved for later to take a closer look into it. Thanks for the heads up! :)
     
    luchian likes this.
  3. Just Kauser

    Just Kauser Active Member

    Joined:
    May 21, 2017
    Messages:
    189
    Likes Received:
    74
    Location:
    Chemnitz, Saxony, Germany, next to the Sachsenring
    I tried it, but my CPU (FX-6300) is too slow. You need at least 50 FPS in the program to get stable audio output. But he made it Open Source so someday i will maybe have a closer look on this project because i could imagine this in combination mixed with real engine sounds may sound more organic and less generated then my soundmods based on real sounds sampled with a software called Rev.

    I need to do some futher investigations of his project in the source code and understand the Sound Synthesing Process better to create an own software, that generates samples for different load und rpm states instead of an in my eyes very unstable an CPU consuming live sound synthesis.

    Here is a link of the compiled releases:
    https://github.com/ange-yaghi/engine-sim/releases

    Btw, check out Kirbyguy, he had a lot of fun creating own engines with the tool
     
  4. luchian

    luchian Administrator Staff Member

    Joined:
    Jun 3, 2014
    Messages:
    3,007
    Likes Received:
    1,493
    I think it needs way more than that, some 80 000 fps, iirc. I played with it a little with no problems, but I have a good CPU. In any case, the simulation seems rather complex, I'd guess simplifying it might negatively affect the result. For you to discover.
     
  5. wongfei

    wongfei New Member

    Joined:
    Jan 10, 2023
    Messages:
    3
    Likes Received:
    4
    Some experiments on AC + ES
     
    luchian and fughettaboutit like this.
  6. fughettaboutit

    fughettaboutit aka leBluem

    Joined:
    Jul 21, 2014
    Messages:
    1,117
    Likes Received:
    379
    Nice, i was hoping somebody would do that!
     
  7. luchian

    luchian Administrator Staff Member

    Joined:
    Jun 3, 2014
    Messages:
    3,007
    Likes Received:
    1,493
    This is very cool, and way more advanced than what I was imagining it could be done.
    If I understand correctly, this is real-time, without any generated samples.

    Could you give more details about how you did this?
    Also, what is the impact on performance?

    Very curious to find out more :nerd:
     
  8. wongfei

    wongfei New Member

    Joined:
    Jan 10, 2023
    Messages:
    3
    Likes Received:
    4
    It simulates engine flow + sound in real time and overrides car physics.

    Simulator is mostly single threaded and prefers high HZ CPU's. Demo runs on Ryzen 5800X without issues, for bigger engines (V8-V12) some optimizations required.

    Prototype is implemented as game plugin with some reverse engineering magic. DLL is loaded by game, then it reads car inputs, simulates the engine and outputs torque on player car.

    Sound quality/immersivity is not so epic but hopefully will be improved in future.
     
    Last edited: Jan 18, 2023
    luchian likes this.
  9. luchian

    luchian Administrator Staff Member

    Joined:
    Jun 3, 2014
    Messages:
    3,007
    Likes Received:
    1,493
    Oh, so it's not only the sound, but also (some part of) the physics. Was this necessary or it's just because you could? :)
     
  10. wongfei

    wongfei New Member

    Joined:
    Jan 10, 2023
    Messages:
    3
    Likes Received:
    4
    In case game car engine and simulated engine are same (in terms of power curve and inertia) physics feedback is not needed. But when they differ without feedback it will be very strange :D
     
    luchian likes this.
  11. luchian

    luchian Administrator Staff Member

    Joined:
    Jun 3, 2014
    Messages:
    3,007
    Likes Received:
    1,493
    Yes, indeed. I realised why after writing :D
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice