Released Working per-beam sounds concept

Discussion in 'Programming' started by Dummiesman, Apr 9, 2015.

  1. Dummiesman

    Dummiesman
    Expand Collapse

    Joined:
    Sep 17, 2013
    Messages:
    4,685
    Hey it's me again, I made a working per beams sound concept that can output a sound under a stress/deform condition, constantly loop and change pitch/volume based on deform value, or constantly loop and change pitch/volume based on stress value

    This is how the JBeam looks for a stress/deform trigger:
    Code:
              ["susp1","susp2",{"soundType":"StressDeformTrigger","soundName":"SuspensionSound","minDeform":0.4,"minStress":1100,"maxStress":5000,"maxDeform":2}],
    
    This is how the JBeam works for a stress/deform constant (minPitch,minVolume,pitchScale,volumeScale,constantValueFactor are all optional!):
    Code:
               ["susp1","susp2",{"soundType":"DeformConstant","soundName":"EngineTestSound","minPitch":0,"minVolume":0,"pitchScale":0.7,"volumeScale":0.4}],
                ["susp3","susp4",{"soundType":"StressConstant","soundName":"EngineTestSound","minPitch":0,"minVolume":0,"pitchScale":0.7,"volumeScale":0.4}],
    
    I've attached the sounds.lua file which will let these work, if you do try this then please backup your sounds.lua!
     

    Attached Files:

    #1 Dummiesman, Apr 9, 2015
    Last edited by a moderator: Apr 11, 2015
    • Like Like x 1
  2. iheartmods

    iheartmods
    Expand Collapse

    Joined:
    Aug 8, 2012
    Messages:
    1,482
    I'd love a video...
     
  3. Dummiesman

    Dummiesman
    Expand Collapse

    Joined:
    Sep 17, 2013
    Messages:
    4,685
    Demonstration video : Added to front suspension only and quickly tuned


    - - - Updated - - -

    Updated sounds.lua for stress/deform constant type sounds.
     
    #3 Dummiesman, Apr 9, 2015
    Last edited by a moderator: Oct 21, 2015
  4. atv_123

    atv_123
    Expand Collapse

    Joined:
    Aug 5, 2012
    Messages:
    1,710
    I like this idea! I think it would give a much better sound representation than what is currently in game! Nice work!
     
  5. Pyroxyde

    Pyroxyde
    Expand Collapse

    Joined:
    Nov 13, 2012
    Messages:
    58
    Why there is no more people interested in this ? This is so awesome ! :D
    It would be cool to have sound packs for each vehicle for people who do not understand jbeam very well...

    Hope it'll be integrated into the game !
     
  6. atv_123

    atv_123
    Expand Collapse

    Joined:
    Aug 5, 2012
    Messages:
    1,710
    I was thinking along the lines of have the ability to set different sounds to different beams in the truck files.

    I know there is a setting in the Jbeam of trucks that allows you to set the spring and damping of all the beams or for different sections of beams... Back in Rigs of Rods this used to be referred to as the Set Beam Defaults section. I don't know what that section is called in Jbeam now, but I know something similar still exists.

    If this per beam sound feature was added into the game, you could technically set up beams as different material types and then set up sounds for those beam in the same line of code. Then, say if we were simulating a window, those beams broke they would have a glass shattering noise. Or if the beams were simulating wood then the more they deform, the more creaking and popping you would hear up until they finally broke, at which point you would hear a loud crunch............ and so on and so forth for many different kinds of materials. Or you could technically simulate squeaky suspension by just giving each shock its own sound file and just setting the sound to be played on a change in length (could get annoying though so might not want to do that one but you get the idea)

    I know it pretty much already dose most if not all of this but I just think its such a cool idea!

    I think your little creation is genius and should really be pursued!
     
  7. Dummiesman

    Dummiesman
    Expand Collapse

    Joined:
    Sep 17, 2013
    Messages:
    4,685
    Beam properties on BeamNG are set like this:

    Code:
    {"beamDeform":140000,"beamStrength":1000},
    {"beamSpring":101000,"beamDamp":100},
    
    I think its better than Rigs of Rods because it has an actual description ;)
     
  8. atv_123

    atv_123
    Expand Collapse

    Joined:
    Aug 5, 2012
    Messages:
    1,710
    Ahh yes... on that from what you wrote I would have to agree... That's a lot better then just a bunch of numbers in a string...

    Anyways, you obviously get what I am on about XD
     
  9. ast5515

    ast5515
    Expand Collapse

    Joined:
    Aug 4, 2013
    Messages:
    220
    The devs said something about something about them doing some research on a new audio system. I hope they can incorporate something like this.
     
  10. ryder2341

    ryder2341
    Expand Collapse

    Joined:
    Apr 30, 2015
    Messages:
    185
    I'm sorry, I'm very new to this game. Where exactly do you paste the two codes for the JBeam? :confused:
     
  11. Dummiesman

    Dummiesman
    Expand Collapse

    Joined:
    Sep 17, 2013
    Messages:
    4,685
    on the suspension beams of a vehicle. It's kind of advanced stuff though.
     
  12. ThreeDTech21

    ThreeDTech21
    Expand Collapse

    Joined:
    Sep 27, 2013
    Messages:
    1,616
    The implications this has is amazing! imagine tuned crash sounds from body beam collision or breakgroups! this is actually pretty epic. Did you use lua code to create this?
     
  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