- Home /
How to make 3d sound with realistic reflection
I'm an architectural student and i want to make a concert hall project presentation with unity (interactive presentation of the project) but I know nothing about programming and I want to make the sound reflects off walls and to be absorbed , I tried to use FMOD and Steam Audio but it didn't work (or I didn't know how yo apply them) , I think there could be a way to make it happen with Raycast by Raycasting from the audio source in multiple directions and make the Raycast bounce off the walls and when it hits the listener the sound could be heard otherwise it won't .
I really hope you could help me or at least tell me how to make Raycast in multiple directions.
Answer by JelmerV · Mar 23, 2021 at 03:52 PM
I don't think there is a realtime wave raycasting solution for Unity yet. I think Steam and Resonance (Open source spatializer from Google) is your way to go. Resonance has the option to bake reverb for spaces which may be what you are looking for. https://resonance-audio.github.io/resonance-audio/develop/unity/getting-started.html
Answer by ahsen35813 · Mar 23, 2021 at 04:10 PM
Perhaps you cuold try implementing this manually? For example, send out a raycast in various directions (Possibly similar to how raycasts were implemented in this video: https://www.youtube.com/watch?v=bqtqltqcQhw), and then compute bounces until there's a direct line of sight to the audio source. At that point you can play the audio source at the position around the player/user/listener that the raycast was sent off from.
Maybe you can make it even more performant by computing the sound bounces every once in a while instead of every frame, and/or computing it in the background using IEnumerator instead of during the frame update.
This is just an idea. I have no idea if it would work, and I have never tried it. I don't know how to implement half the things I mentioned here, but I think with some research and learning, it should be possible. This is a very interesting idea though, and I think I'll try this myself one day as well.
Your answer
Follow this Question
Related Questions
Advance when the sound is done playing 1 Answer
Best architecture for a vision system 0 Answers
Multiple/Different footsteps sounds (solved) 2 Answers
help with multiple sounds 0 Answers
can foe hear us? 1 Answer