Hi there!
Is there any chance for occlusion to work WITHOUT transmission being checked? We’ve making a VR project on Android and met the optimization issuies while working with SteamAudio. The occlusion is noticeble only when transmission is checked. But without transmission there is a great growth of FPS.
Hi,
Occlusion and transmission are two different settings, so clarify, what is the desired effect in your case? Occlusion determines how a sound is blocked by an obstacle, while transmission determines how a sound is affected after passing through an obstacle. A sound being occluded means that it will be completely inaudible, while transmission and attenuates/filters the sound that passes through based on the obstacle.
That said, the internal workings of how SteamAudio handles occlusion/transmission aren’t something that FMOD controls, and the use of raycasting in these calculations means that enabling them will incur additional CPU usage. You should be able to reduce this somewhat by decreasing the occlusion samples and max transmission surfaces for a Steam Audio Source component in engine.
If this isn’t enough, one workaround might be to disable “simulation-defined” occlusion/transmission in favor of “user-defined”, which may give you more flexibility in terms of the complexity of the calculation. However, you will also need to perform the raycasting calculations in Unity yourself, and provide the values to FMOD Studio via parameters that automate the relevant properties on the Steam Spatializer.
Hi MarIva.
May this example of using Unity with FMOD and atmoky spatializer help with optimizing your occlusion issue? https://www.youtube.com/watch?v=a3xa52JjIPs
The demo scene including the raytracing method comes with the download of trueSpatial plugins for FMOD.
Hi,
It was a revelation for me that the occluded sound becomes completely inaudible. Then I know that I can’t use it without transmission for my purposes.
Speaking about optimization, I just reduced the quantity of occlusion samples and it helped a little.
Thanks a lot and have a nice day!
Hi clemensamon,
Thank you for this video, I think it will help me with my future projects. For now I also want to save an HRTF model which SteamAudio provides.
Happy to hear, feel free to let us know if you run into any more issues!