|
Post by scornflake on Dec 3, 2021 11:57:04 GMT
Helllo! I'm using MapMagic to generate terrains. As such I know where sand, water, grass and trees are. I'm thinking it might make sense to create a bunch of prefabs for various sound types (with Ambient sound scripts in them), then spawn these over my terrain using similar rules. Then I'd be able to get most of my ambience for free. yay. At this stage; because it's ambience, the sound groups are endless loops, with 30-60s long same for the most part. I'll likely end up with many overlapping areas - is this a concern performance wise? I might end up spawning 50-60 of these in a single 512 terrain, quite easily. From what I can tell so far; MA seems to only play one sound even if im in multiple areas (overlapping). I'm asking because ideally I want to make the ambience distance "reasonable" so that there's some kind of distance falloff away from the source (moving away from the ocean, for example). But also small enough that I can cover terrain in a granular-ish sort of way. So I guess I'm asking for comments on the approach in general. Am I heading for "audio pain" later on? or nothing to worry about? Attachments:
|
|
|
Post by DarkTonic Dev on Dec 3, 2021 20:41:38 GMT
If MA is only playing one sound, that's because you haven't increased the Voices/Weight field from 1 on your Variations in the Sound Group. If you turn on "Log Sounds" the Console would tell you why it fails to play the other sounds. There are quite a few reasons why that can happen, as the graph at the bottom of this page shows: www.dtdevtools.com/docs/masteraudio/Troubleshooting.htmIn general, overlapping areas won't be a concern because only Ambient Sounds close enough to be audible will be playing when using that script. If you're going to go past 32 voices total and haven't increased your Unity max voices, some won't be heard. You can then work around that by using some of the bus options for voice limiting and "Stop Furthest" or other settings. -Brian
|
|
|
Post by scornflake on Dec 3, 2021 21:54:39 GMT
Playing one sounds is actually fine in this case, and intentional. Im more concerned that if I increase the number of ambience scripts to increase the resolution of my "ambience splatmap", that'll have -ve consequences.
|
|
|
Post by DarkTonic Dev on Dec 3, 2021 22:08:02 GMT
No, it should be fine. They are event-drive and don't have code running every frame unless audio is playing from them.
|
|