Ambience System for an open world game
Calling all audio programmers and smart people!
On my current project, I’m co-developing a comprehensive ambience system in Unreal 5 and FMOD. Our game is an open world action adventure with quite vertical world including a lot of biomes and caves underneath. The big challenge is to smoothly change ambient sound based on different biomes, when navigating through the world.
Our current system is based on this article from Audiokinetic: https://www.audiokinetic.com/en/blog/volumetric_audio_emitter_for_custom_shapes_in_ue4/
We basically recreated the custom shape audio zones by using splines and calculating dot product of the closest spline point’s right vector, which tells us if the player is outside the spline or not. If not, an ambient emitter follows the spline and if you enter the spline it snaps to the player.
This is pretty neat solution, but has some issues - the spline can’t be as customizable as I would like - concave shapes are not possible to use, it can act randomly in some scenarios, where a spline point is rotated so the right vector is not inside the spline and the biggest one - with more and more splines on the map, the detection starting to jump seemingly random, even if you’re not inside.
I found this post https://www.airwiggles.com/c/gameaudio/ue5-wwise-flexible-ambzone-tool by @Avishai Karawan, where it seems there are the same issues with concave shapes. If you have any update, Avishai, would love to see how you improved your system 😊 There were some hints how to design such system during (amazing) AirCon talks, especially in Bjørn Jacobsen’s one, but everyone was mainly talking about middleware implementation.
Have you ever worked on a title that needed this kind of ambient system or how would you approach it? Would there be any other solution apart from ambient zones?