ValveSoftware / steam-audio

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

[Unity] Indirect sound doesn't work for dynamic objects #144

Open pi314a opened 3 years ago

pi314a commented 3 years ago

Hey there!

I‘m trying to recreate this example of dynamic geometry with Embree: https://steamcommunity.com/games/596420/announcements/detail/1624021088655207523 I’m running: Unity 2019.4.17f1 (LTS) and Steam Audio 2.0-beta.19

The problem is that I don’t get any indirect sound from the side walls if I place them as shown in the example. Only the ceiling and the floor appear to reflect the sound correctly, so it seems that the source is directional (Dipole Weight and Dipole Power is both 0; actually, the source should be a monopole). Attached is a link to a minimal project to clarify my issue: https://gigamove.rz.rwth-aachen.de/d/id/qcqoV4WjKk8og5

The environment shows the floor and two side walls. I build this scene two times.

Model_Unity

The first scene, named “Static”, consists only of static objects. Here the reflections work without problems, so that you can perceive the indirect sound. In the second scene, named “Dynamic”, the side walls have a Steam Audio Dynamic Object (the wall is stored as a prefab, so that you can theoretically recreate the example above). The comparison between these two scenes in game mode illustrates that the reflections from the side walls are missing in the scene with dynamic objects. In the dynamic scene you can activate/ deactivate both side walls without any audible change even if there should be a difference like shown in the example. When you now rotate one of the walls around the x-axis as in the screenshot below, indirect sound is audible as soon as the wall is above the audio source. In contrast to this the rotation of the audio source makes no difference.

Rotate_Side_Wall

I also have tried to set different Simulation Settings. On the one hand I select High for the Simulation Preset, on the other hand I tried custom settings with maximum Realtime Secondary Rays and maximum Realtime Bounces but there’s no change.

Does anyone know why it doesn’t work and how to fix this?

achandak commented 3 years ago

@pi314a - I can't seem to download your minimal project. It gives 404 error when I click on download. Can you share again and let me know. Thanks.

pi314a commented 3 years ago

Here is a new link to the minimal project: https://gigamove.rz.rwth-aachen.de/d/id/J5SKozwAGdszvo

@achandak, please let me know if this link does not work either.

achandak commented 3 years ago

@pi314a - Confirming that we are able to reproduce the issue. Our observation has been that whenever rotation is applied to the dynamic geometry this issue occurs. I will follow up when we have a workout or a hotfix. Thanks.

pi314a commented 3 years ago

Thanks for checking the issue, I will keep an eye out for this!

github-actions[bot] commented 3 months ago

This issue has been automatically marked stale, and will automatically be closed in 30 days if no activity occurs.

lakulish commented 2 months ago

commenting to keep open