chunik
New Member
Posts: 17
Posts: 17
|
Post by chunik on Oct 18, 2023 6:10:55 GMT
So i have top down game with quite large zoom.
And i play sounds in the world using Vector3 my sound group is set to 3d. And i wanted to control the audio volume max zoom vs min zoom more. Right now you can't hear door opening sound about half way to top zoom.
I tried a bit naive solution by providing PlaySound3DAtVector3 with float of audio percentage. Calculated with lerp from min to max zoom zoom (5f, 0.5f, 0-1 %zoom). But there is complicated interaction going on with master audio calculating it's own fall off of + my % float and it's hard to tell what is happening but i stop hearing sound at like 20% of max zoom. Can i access min max distance of sound group somewhere and control it? Or how to best solve this?
I have the new 2022 master audio. Also camera is not ortographic, it's perspective heavily tweaked, and distance from the door to the camera at max zoom can be around 750 world units.
pic pasteboard.co/hVWsk8vI680Y.jpg
|
|
|
Post by DarkTonic Dev on Oct 18, 2023 18:05:37 GMT
I don't think you need to be messing with calculating volume percentage. Just set the Audio Source Template (min / max volume mainly) to one that is large enough for those Sound Groups. There are controls to select and apply that at the Sound Group level on the Master Audio Mixer section up top. We do not calculate falloff, that's based on the 3D Sound settings the template has.
-Brian
|
|
chunik
New Member
Posts: 17
Posts: 17
|
Post by chunik on Oct 18, 2023 19:32:53 GMT
Found it.. it's prefabs in the folder i fiddled with the curve on one and applied it to all my sounds. It would be nice if scene singleton had open folder button to guide me  . Also is there a way to link max distance audio source prefabs to sound groups. If there wasn't apply audio source template to all button i wouldn't know how to do it.. Thx.
|
|
|
Post by DarkTonic Dev on Oct 18, 2023 19:35:13 GMT
That's why we have the Audio Source Templates. If you only want to change the Min and Max distance, you can add the Ambient Sound component to the scene and it has sliders that adjust all Variations.
|
|