# Question About Reverb 3D

**URL:** https://qa.fmod.com/t/question-about-reverb-3d/21652
**Category:** FMOD Engine
**Tags:** unity, csharp
**Created:** [May 23, 2024, 3:13am UTC](https://qa.fmod.com/t/question-about-reverb-3d/21652 "2024-05-23T03:13:15Z")
**Posts on this page:** 14
**Page:** 1

<div class="post-metadata">

### Author: ![leeSteven](https://avatars.discourse-cdn.com/v4/letter/l/4491bb/32.png) [@leeSteven](https://qa.fmod.com/u/leeSteven)
#### Post date: [May 23, 2024, 3:13am UTC](https://qa.fmod.com/t/question-about-reverb-3d/21652/1 "2024-05-23T03:13:16Z")

</div>

I’m having trouble getting the Reverb3D feature to work. I’ve followed all the steps in the documentation, and everything seems to be in order. My project structure is also quite simple; I just used a sphere to represent the area. Here is my code:

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

---

<div class="post-metadata">

### Author: ![Leah\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/leah_fmod/32/3685_2.png) [@Leah\_FMOD](https://qa.fmod.com/u/Leah_FMOD)
#### Post date: [May 23, 2024, 5:00am UTC](https://qa.fmod.com/t/question-about-reverb-3d/21652/2 "2024-05-23T05:00:19Z")

</div>

What version of Unity and the FMOD for Unity plugin are you using? Also, could I get you to copy the entire `ReverbSpatialize` class as text instead of a screenshot? You can wrap your code in triple backticks (```) to format it properly, i.e.

```  
MyCodeHere();  
```

becomes:

```auto
MyCodeHere();

```

---

<div class="post-metadata">

### Author: ![leeSteven](https://avatars.discourse-cdn.com/v4/letter/l/4491bb/32.png) [@leeSteven](https://qa.fmod.com/u/leeSteven)
#### Post date: [May 23, 2024, 6:03am UTC](https://qa.fmod.com/t/question-about-reverb-3d/21652/3 "2024-05-23T06:03:14Z")

</div>

Unity ：2022.3.9f1  
Fmod：2.02.09

```auto
using System;
using System.Collections;
using System.Collections.Generic;
using FMOD;
using FMODUnity;
using UnityEngine;
using Debug = UnityEngine.Debug;

public class ReverbSpatialize : MonoBehaviour
{
    public GameObject listener;
    public GameObject player;
    REVERB_PROPERTIES reverbProperties = PRESET.GENERIC();
    private VECTOR reverbPosition;
    private Reverb3D reverb;
    public float minidistance = 10.0f;
    public float maxdistance = 15.0f;
    
    void OnEnable()
    {
        RuntimeManager.CoreSystem.createReverb3D(out reverb);
        reverb.setProperties(ref reverbProperties);
        reverbPosition = RuntimeUtils.ToFMODVector(transform.position);
        reverb.set3DAttributes(ref reverbPosition, minidistance, maxdistance);
        reverb.setActive(active: true);
    }

    private void OnDisable()
    {
        reverb.release();
    }

    void Update()
    {
        var listenerPosition = RuntimeUtils.ToFMODVector(listener.transform.position);
        var listenerForward = RuntimeUtils.ToFMODVector(listener.transform.forward);
        var listenerUp = RuntimeUtils.ToFMODVector(listener.transform.up);
        var listenerVelocity = RuntimeUtils.ToFMODVector(player.GetComponent<Rigidbody>().velocity);
        RuntimeManager.CoreSystem.set3DListenerAttributes(0,ref listenerVelocity, ref listenerPosition, ref listenerForward, ref listenerUp);
        Debug.Log($"listener position: {listener.transform.position}" + "\n" + $"listener forward: {listener.transform.forward}" + "\n" + $"listener up: {listener.transform.up}"
                  + "\n" + $"listener velocity: {player.GetComponent<Rigidbody>().velocity}" + "\n" + $"reverb position: {transform.position}" + "\n" + $"minidistance: {minidistance}"
                  + "\n" + $"maxdistance: {maxdistance}" + 
                  "\n" + $"reverb properties: {reverbProperties}");
    }
}

```

Actually,this is my entire class. i just create a sphere with a studio event emitter，and put the script on it.  
However, i just wonder if we assume that reverb 3D can’t work well on my project, is there any ways to create reverb with spatial information.  
We now working on a game using fmod,but we need to custom a feature like wwise portal ,so we need to spatialize the reverb,thanks for your reply

---

<div class="post-metadata">

### Author: ![leeSteven](https://avatars.discourse-cdn.com/v4/letter/l/4491bb/32.png) [@leeSteven](https://qa.fmod.com/u/leeSteven)
#### Post date: [May 27, 2024, 3:03am UTC](https://qa.fmod.com/t/question-about-reverb-3d/21652/4 "2024-05-27T03:03:57Z")

</div>

anyone can help me T\_T

---

<div class="post-metadata">

### Author: ![Leah\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/leah_fmod/32/3685_2.png) [@Leah\_FMOD](https://qa.fmod.com/u/Leah_FMOD)
#### Post date: [May 27, 2024, 4:44am UTC](https://qa.fmod.com/t/question-about-reverb-3d/21652/5 "2024-05-27T04:44:26Z")

</div>

The code appears to be missing a call to [`Studio::EventInstance::setReverbLevel`](https://www.fmod.com/docs/2.02/api/studio-api-eventinstance.html#studio_eventinstance_setreverblevel), which by default is set to 0. Try setting it to a different value with the index that matches your Reverb3D, and see whether it works as expected. You will need to grab the [`StudioEventEmitter::EventInstance`](https://www.fmod.com/docs/2.02/unity/api-studioeventemitter.html#studioeventemitter_eventinstance) to do so.

As for spatializing a reverb signal, the main way I would recommend doing it would be to use a reverb send that has a muted output, but has a [transceiver](https://www.fmod.com/docs/2.02/api/effects-reference.html#transceiver) in the signal chain set to the “transmit” mode. Then, you can create an event with a corresponding transceiver in “receive” mode, and a spatializer on the output.

In-game, you can place the receiving event in a specific space - the wet reverb signal will be transmitted to this event, and then spatialized based on its position. You can go further, for example, by automating reverb volume and/or filtering based on the distance between the player and the receiving event.

Depending on the detail level of audio propagation that you require, you may also find it practical to make use of third party plugins like [Resonance Audio](https://resonance-audio.github.io/resonance-audio/develop/fmod/getting-started.html) or [Steam Audio](https://valvesoftware.github.io/steam-audio/), which can model propagation more accurately than FMOD’s [stock SFX reverb effect](https://www.fmod.com/docs/2.02/api/effects-reference.html#sfx-reverb).

---

<div class="post-metadata">

### Author: ![leeSteven](https://avatars.discourse-cdn.com/v4/letter/l/4491bb/32.png) [@leeSteven](https://qa.fmod.com/u/leeSteven)
#### Post date: [May 27, 2024, 6:31am UTC](https://qa.fmod.com/t/question-about-reverb-3d/21652/6 "2024-05-27T06:31:29Z")

</div>

oh god, you guys are really helpful and nice,thanks four your advice.Once i have done this spatial audio plan, i wiil share it on the forum. 🥰

---

<div class="post-metadata">

### Author: ![leeSteven](https://avatars.discourse-cdn.com/v4/letter/l/4491bb/32.png) [@leeSteven](https://qa.fmod.com/u/leeSteven)
#### Post date: [May 28, 2024, 2:46am UTC](https://qa.fmod.com/t/question-about-reverb-3d/21652/7 "2024-05-28T02:46:58Z")

</div>

Another question plz，if i muted the reverb,there is no signal to receive event

---

<div class="post-metadata">

### Author: ![leeSteven](https://avatars.discourse-cdn.com/v4/letter/l/4491bb/32.png) [@leeSteven](https://qa.fmod.com/u/leeSteven)
#### Post date: [May 28, 2024, 2:47am UTC](https://qa.fmod.com/t/question-about-reverb-3d/21652/8 "2024-05-28T02:47:58Z")

</div>

this is original event send to “room1reverb” reverb bus.

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

---

<div class="post-metadata">

### Author: ![leeSteven](https://avatars.discourse-cdn.com/v4/letter/l/4491bb/32.png) [@leeSteven](https://qa.fmod.com/u/leeSteven)
#### Post date: [May 28, 2024, 2:48am UTC](https://qa.fmod.com/t/question-about-reverb-3d/21652/9 "2024-05-28T02:48:39Z")

</div>

the picture of reverb bus

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

---

<div class="post-metadata">

### Author: ![leeSteven](https://avatars.discourse-cdn.com/v4/letter/l/4491bb/32.png) [@leeSteven](https://qa.fmod.com/u/leeSteven)
#### Post date: [May 28, 2024, 2:49am UTC](https://qa.fmod.com/t/question-about-reverb-3d/21652/10 "2024-05-28T02:49:46Z")

</div>

here is my receive event

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

---

<div class="post-metadata">

### Author: ![leeSteven](https://avatars.discourse-cdn.com/v4/letter/l/4491bb/32.png) [@leeSteven](https://qa.fmod.com/u/leeSteven)
#### Post date: [May 28, 2024, 7:05am UTC](https://qa.fmod.com/t/question-about-reverb-3d/21652/11 "2024-05-28T07:05:15Z")

</div>

please somebody help me 😭

---

<div class="post-metadata">

### Author: ![leeSteven](https://avatars.discourse-cdn.com/v4/letter/l/4491bb/32.png) [@leeSteven](https://qa.fmod.com/u/leeSteven)
#### Post date: [May 29, 2024, 2:02am UTC](https://qa.fmod.com/t/question-about-reverb-3d/21652/12 "2024-05-29T02:02:16Z")

</div>

please help me，our company will buy license if we develop this feature 😭

---

<div class="post-metadata">

### Author: ![Leah\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/leah_fmod/32/3685_2.png) [@Leah\_FMOD](https://qa.fmod.com/u/Leah_FMOD)
#### Post date: [May 29, 2024, 2:42am UTC](https://qa.fmod.com/t/question-about-reverb-3d/21652/13 "2024-05-29T02:42:14Z")

</div>

My apologies - muting is applied at the bus’ fader, so you’ll want to do one of the following to ensure the signal flows to the transceiver but is still inaudible:

- Place the reverb and transceiver before the fader on your reverb bus, and continue to use the bus’ mute toggle
- Keep the reverb and transceiver in the place they currently are, place a gain effect after them, and then “mute” using the gain effect instead by setting it to -∞ dB

---

<div class="post-metadata">

### Author: ![leeSteven](https://avatars.discourse-cdn.com/v4/letter/l/4491bb/32.png) [@leeSteven](https://qa.fmod.com/u/leeSteven)
#### Post date: [May 29, 2024, 3:34am UTC](https://qa.fmod.com/t/question-about-reverb-3d/21652/14 "2024-05-29T03:34:00Z")

</div>

love from china
