![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
|
07-06-12, 03:32 PM
|
#1 |
|
Navy Seal
![]() Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
|
Hi there,
I am currently working on importing a SHIII unit in SH5. Among other things, I am trying to set the volume of its sounds. For doing it I am using the AmbientVolume controller, that allows us to change sound volumes depending on both camera and parent object's location. Its main parameters are sorted in arrays. Each array is composed by an identifier (making reference to SounSource identifiers in the same dsd file) and by a group of volume modifiers for different camera and object position: Code:
ObjectAboveWater ObjectBelowWater CameraAboveWater CameraBelowWater CameraInterior CameraSonar - whenever I set two or more sounds to share the same identifier, trying to set their volume as a group, SounSource stops working and they can be heard "normally" in game as if the controller wasn't there. - If I am not mistaken, sound modifier parameters seem to be expressed as percentages of the original volume (0=silent, 1=100%); nonetheless, everytime I try to set a value <1, instead of being reduced sounds are zeroed. In other words, the controller behaves like an on/off trigger. Did anyone else experiment with it? I wonder whether I am missing something, or peraphs AmbientVolume is no longer fully supported by SH5?
|
|
|
07-06-12, 03:40 PM
|
#2 |
|
Black Magic
![]() |
AmbientVolume controller works fine in SH5. Take a look at FX update, it uses it for the flares, debris, torp explosion, etc.. Sounds more like you're using an illegal identifier. What identifiers are you using? You did add your sounds to the Sh.sdl file correct?
|
|
|
07-06-12, 03:55 PM
|
#3 | |
|
Navy Seal
![]() Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
|
Quote:
As for identifiers, I am using custom ones. Suspecting that this could have been the reason, I tried to change them with standard ids (iirc Propeller, or Engine), and it didn't make any difference. I'll try again anyway. Thanks! |
|
|
|
07-06-12, 03:59 PM
|
#4 | |
|
Black Magic
![]() |
Quote:
|
|
|
|
07-06-12, 04:01 PM
|
#5 | |
|
Navy Seal
![]() Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
|
![]() Quote:
EDIT: WHY hy2? Isn't it hyd? On the unit I am workin on the Identifier hyd seems to work correctly....
|
|
|
|
07-06-12, 03:45 PM
|
#6 |
|
Navy Seal
![]() Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
|
Another quick question on sounds:
I wish some sounds to be triggered by particle generators (splashes, wakes, etc), i.e. being played during the lifespam of particles, and stopping particles desappear. I am sure something like this is feasible, but I have no clue on how to do it. Until now simply giving these sound the same parent IDs as the particle generator tha should trigger them, didn't give the expected results. Probably I could get inspired by some existing unit, but if in the meanwhile some good-hearted oldtimer will read this thread, his help will be much appreciated! |
|
|
07-06-12, 03:51 PM
|
#7 | |
|
Black Magic
![]() |
Quote:
|
|
|
|
07-06-12, 04:00 PM
|
#8 |
|
Navy Seal
![]() Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
|
Is this enough? Are there no special names/settings to be given in .sdl file? No special identifier to be set in SoundSource controller? No other controller in .dsd file to be associated with generator's ID?
|
|
|
07-06-12, 04:05 PM
|
#9 | |
|
Black Magic
![]() |
Quote:
![]() Your SoundSource, AmbientVolume, and SonarTarget entries parent ID will be what I spoke about above. |
|
|
|
07-06-12, 04:17 PM
|
#10 |
|
Navy Seal
![]() Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
|
Sorry, one more question:
according to your experience, is sounds volume, especially on hydrophone, somehow related to ship's current speed? Perhaphs through the ShipSound controller (StdByMaxRpm parameter)? If so, is there any way to set sounds free from this constrain? |
|
|
![]() |
|
|
