I am looking for some insight into the best way to create a distance crossfade for 3rd person guns. I'm in the process of remixing my game using the new HDR system, and in doing so I wanted to try and clean up my messy hack for distance crossfades, and improve on the system.
My current set up for 3rd person guns goes as follows- Parent is a Random looping container, ten blend containers nested inside, with each blend container playing three sounds; Near, mid, far. I then set each of the three distance sounds with different attenuations to mimic a distance crossfade.
This system is not working as well as it did pre-HDR, as I am now changing to sharper and more realistic attenuation curves. Ideally I would be using a blend track but I was told that creating a RTPC that sent how far away each gun was from the player would eat up a lot of math doing the traces to find how far away each object is from the listener. It seems like wwise is already recieving the distance information to control attenuation though, so is there a way to tap into that?
Is there a way that you can easily find the max attenuation of a sound to create and set a rtpc for use in a blend track. Is there a way to make a blend track using the max distance from the blend containers attenuation? It seems like there should be a elegant solution to this but I can not find one.
Engine - Unreal3 : Platforms - PC and PS4
TL:DR: Has anyone had success creating a RTPC to control distance crossfades from blend tracks? Is there a way to tap into the distance information wwise is recieving and use it to control a blend track for distance crossfading.
Any help would be much appreciated.