resonance-audio / resonance-audio-unity-sdk

Resonance Audio SDK for Unity
https://resonance-audio.github.io/resonance-audio/develop/unity/getting-started
Other
297 stars 38 forks source link

Resonance audio source directivity affected by scaling factor #46

Open JonOlive opened 6 years ago

JonOlive commented 6 years ago

If the game object (or parent) to which an audio source is attached is scaled by less than 1, this seems to result in some sort of rounding error in the directivity calculation whereby when directivity approaches zero there is a sudden cutoff of audio rather than a smooth transition. Particularly noticeable with extreme directivity settings - but a simple cardioid (alpha 0.5, sharpness 1) will show it up. Ideally directivity should be unaffected by scaling. Unity 2018.2, google resonance SDK 1.2.1 To reproduce - create resonance audio source with reasonably extreme directivity. scale the audio source game object to, say 0.1,0.1,0.1. rotate game object with respect to listener.

jelmerS2 commented 3 years ago

Wow thanks for writing this down. This is probably explaining some really strange issues that I'm experiencing!