# Occlusion within FMOD using Resonance is still incomplete?

**URL:** https://qa.fmod.com/t/occlusion-within-fmod-using-resonance-is-still-incomplete/21152
**Category:** Unity
**Tags:** unity
**Created:** [January 24, 2024, 2:23pm UTC](https://qa.fmod.com/t/occlusion-within-fmod-using-resonance-is-still-incomplete/21152 "2024-01-24T14:23:29Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![nicolasmanz](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/nicolasmanz/32/1965_2.png) [@nicolasmanz](https://qa.fmod.com/u/nicolasmanz)
#### Post date: [January 24, 2024, 2:23pm UTC](https://qa.fmod.com/t/occlusion-within-fmod-using-resonance-is-still-incomplete/21152/1 "2024-01-24T14:23:30Z")

</div>

Hello,  
I’m trying to implement Occlusion w/ raycasting using FMOD + Resonance plugin (built-in), and even though everything works fine, the amount of occlusion is the same being 1 or 10 (passed as a parameter to the event, linked to the spatializer)

[This was mentioned in 2018 as an issue in the Github repo](https://github.com/resonance-audio/resonance-audio-fmod-sdk/issues/3) and a dev claimed it was “fixed” but I’m using FMOD 2.02.19 and it still happens.

Is there something I’m missing out?

Thanks in advance!

---

<div class="post-metadata">

### Author: ![cameron-fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/cameron-fmod/32/261_2.png) [@cameron-fmod](https://qa.fmod.com/u/cameron-fmod)
#### Post date: [January 25, 2024, 12:51am UTC](https://qa.fmod.com/t/occlusion-within-fmod-using-resonance-is-still-incomplete/21152/2 "2024-01-25T00:51:47Z")

</div>

I tested it out in Studio, which works as expected at different values, and in Unity using a button press to increase the parameter value each time and I could hear the difference in occlusion each time.

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/3/3e409f2721151f945d47f070f49b98206cddb4fd.png)

Are you able to provide more information on how you are doing it?

---

<div class="post-metadata">

### Author: ![nicolasmanz](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/nicolasmanz/32/1965_2.png) [@nicolasmanz](https://qa.fmod.com/u/nicolasmanz)
#### Post date: [January 25, 2024, 1:33pm UTC](https://qa.fmod.com/t/occlusion-within-fmod-using-resonance-is-still-incomplete/21152/3 "2024-01-25T13:33:08Z")

</div>

Hey, thanks for the answer and checking it out. I followed exactly what you tried and recorded it.

Unfortunately I can’t upload the file here but you can check it out on [this public Discord attachment link](https://cdn.discordapp.com/attachments/902749546210279444/1199903311848030238/2024-01-24_23-25-35.mp4?ex=65c43c0a&is=65b1c70a&hm=fc3b8472ae2daf903b8de7101e7e41ed6255aa9431d6e43218ea703a811e4036&) (it’s a downloadable MP4)

If you pay attention to the Unity console you will see every time the occlusion intensity parameter is updated. There are changes indeed, but high frequencies do not change as expected, might this be how Resonance computes occlusion internally? [I found some code that could explain it](https://github.com/resonance-audio/resonance-audio/blob/master/resonance_audio/graph/occlusion_node.cc#L91) but I’m not sure how to improve upon it.

---

<div class="post-metadata">

### Author: ![cameron-fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/cameron-fmod/32/261_2.png) [@cameron-fmod](https://qa.fmod.com/u/cameron-fmod)
#### Post date: [January 31, 2024, 5:48am UTC](https://qa.fmod.com/t/occlusion-within-fmod-using-resonance-is-still-incomplete/21152/4 "2024-01-31T05:48:25Z")

</div>

> [@nicolasmanz](#):
>
> might this be how Resonance computes occlusion internally?

Yes, this is all handled by the Resonance Audio plugin. The Resonance Audio plugin that comes with FMOD is a version that we keep and maintain, so it is something that we can modify but we don’t have it publicly available.

I can log a task to investigate this further so let me know if you have any extra information you would like me to add to it.

As a workaround you could possibly use a Multiband EQ to help take some of the higher frequencies out.

---

<div class="post-metadata">

### Author: ![nicolasmanz](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/nicolasmanz/32/1965_2.png) [@nicolasmanz](https://qa.fmod.com/u/nicolasmanz)
#### Post date: [January 31, 2024, 4:23pm UTC](https://qa.fmod.com/t/occlusion-within-fmod-using-resonance-is-still-incomplete/21152/5 "2024-01-31T16:23:13Z")

</div>

Yeah that sounds good. I think it would be good to know the frequencies the occlusion filter handles, or just how it works internally for our audio engineer to tackle it.
