ValveSoftware / steam-audio

Steam Audio
https://valvesoftware.github.io/steam-audio/
Apache License 2.0
2.26k stars 156 forks source link

Audio Occlusion is too abrupt & missing default HRTF #236

Open jnbbender opened 1 year ago

jnbbender commented 1 year ago

I've got audio occlusion working with different materials but when I transition behind a wall, let's say, the audio immediately cuts down to the occluded value. Is there a way to Lerp to the new Audio Occluded value?

Also, when running the application I get the following error: Unable to load HRTF: D:/Unity/Projects/Sci-Fi-2022/Assets/StreamingAssets.sofa. UnityEngine.Debug:LogError (object)`

I was under the impression that adding a sofa file was for custom configuration. Not a requirement.

Oldnice commented 1 year ago

Assuming the Unity integration supports this (and I don't see why it wouldn't): have you tried settings the occlusion type to volumetric, and modifying the occlusion sample count & radius? This should allow your virtual head to sample bigger radius, with partial audio occlusion.

achandak commented 1 year ago

What does your Steam Audio Settings look like? Make sure SOFA files count is set to 0 or if it is non-zero it is pointing to valid sofa files.