버전

menu_open
Wwise SDK 2023.1.8
Using Reverb Zones

A Reverb Zone models a region within a Room that has a distinct reverb effect but does not require portals to connect to neighboring Rooms. Use Reverb Zones instead of standard Rooms whenever there are no obvious walls, or generally when there is more negative space than positive space at the interface between the two regions. Here are some example scenarios where Reverb Zones can be used:

  • A covered balcony that connects to an outdoor space, which effectively creates a room with no walls, but with a floor and a ceiling.
  • A highway overpass. The area beneath the overpass requires a unique reverb, and a Reverb Zone is a more precise and straightforward solution than large portals that connect to the areas outside.
  • A forested area, where the forest reverb should be distinct from the surrounding environment, and might also have a unique ambience.
  • A small city or village area in a mountainous outdoor region.

A Reverb Zone is a type of Room within Wwise Spatial Audio, and has all the same properties of a Room. Additionally, a Reverb Zone:

  • Has a parent Room. A Reverb Zone's parent is the Room that contains the Reverb Zone. A parent room can also be a Reverb Zone with its own parent. Reverb Zones and their parents form hierarchies of rooms. It is recommended that a Reverb Zone be fully contained within its parent.
  • Has a transition region. The transition region is a fuzzy boundary at the interface of the Reverb Zone and its parent. The width of the transition region is customizable, and defined in game units. The transition region is comparable to a Portal connecting the Reverb Zone to its parent: it smooths the transition between the two Rooms and crossfades various parameters when a Game Object is inside the transition region.
  • Has a Geometry Set and Geometry Instance that define the size and shape of the Reverb Zone. For standard Rooms, defining geometry is optional. However, it is required for Reverb Zones so that Spatial Audio can calculate when an object transitions into and out of the Reverb Zone.
  • Has some unique considerations regarding attenuation. (Reverb Zones and Attenuation)

Sound Propagation Through Reverb Zones

There are different ways to manage sound propagation: you can add an extra send with AK::SoundEngine::SetGameObjectAuxSendValues or you can use Reverb Zones. However, Reverb Zones have an advantage: they integrate with and take full advantage of the sound propagation framework provided by the Rooms and Portals API in Wwise Spatial Audio.

  • Reverb Zones are Rooms, and are therefore rendered with a unique Game Object, and are spatialized in 3D.
  • Reverb Zones chain with other Rooms, including other Reverb Zones. A sound can propagate from one Room/Reverb Zone to another if the two Room are connected, either by a portal or if one Reverb Zone is the parent Room of the other.

The following example demonstrates Reverb Zone usage. It is included in the Integration Demo project, which is distributed as part of the Wwise SDK.

The emitter plays inside a Room called "Room Object"
The sound propagates ou of a Portal, which is connected to a Reverb Zone called "Patio Object".
사운드가 Reverb Zone의 상위 계층 Room의 외부로 계속 전달됩니다. 외부에서 사운드가 또한 지오메트리에 의해 정의된 장애물 주변으로 회절됩니다.

You can see how the five Game Objects are chained together in the Voice Graph in either the Advanced Profiler or the Voice Inspector.

The emitter "Emitter E" sends to both the Room it is currently inside, and any adjacent Rooms. In this case, the emitter is inside "Room Object" and adjacent to "Patio Object".
Each Room sends to the next Room, following the shortest path towards the listener. "Room Object" sends to "Patio Object", which in turn sends to "Outside Object". The link between "Patio Object" and "Outside Object" is established by the parent-child relationship between the two Rooms.

Reverb Zone Transition Regions

You can use the AK::SpatialAudio::SetReverbZone API to specify a transition region between a Reverb Zone and its parent Room. This transition region functions very similarly to a portal. A transition region can overlap with portals and other transition regions as long as the Rooms' geometries do not overlap. You can use this type of overlap to create smooth crossfades between Reverb Zones. To define a transition region for a Reverb Zone, the Reverb Zone Room must have geometry with 1 or more "transparent" surfaces. A transparent surface is a surface with AkAcousticSurface::transmissionLoss set to 0. The extent of a Reverb Zone's transition region is defined by the location of the Room's transparent triangles, and the in_transitionRegionWidth parameter passed to AK::SpatialAudio::SetReverbZone. The transition region is centered around each triangle. Consider a Room with one wall composed of transparent surfaces, which we define as a Reverb Zone by calling AK::SpatialAudio::SetReverbZone with in_transitionRegionWidth set to 5. The transition region starts when a Game Object is 5 units away from the transparent wall on the outside of the Reverb Zone, and ends when the Game Object is 5 units past the wall on inside of the Reverb Zone. Because transition regions are only defined by transparent triangles, you can define a custom shape for the transition region. For more information about defining room geometry, refer to Setting up Room Geometry.

Creating Reverb Zones

This section describes the general Reverb Zone creation process. The following example demonstrates how to create a forest surrounded by an outdoor environment. The forest and the outdoor environment each have a unique reverb effect.

  1. Customize the "Outdoors" Room parameters. The "Outdoors" Room is created automatically, but you must call AK::SpatialAudio::SetRoom to assign a reverb bus to it.
  2. Define a shape for the Reverb Zone. In this example, the shape is a simple box. The following sample code creates a Geometry Set that defines the surfaces and triangles, and a Geometry Instance that defines the scale and position of the forest.
  3. Create a Room for the forest. Call set AK::SpatialAudio::SetReverbZone to assign the Outdoors Room as a parent Room, and set the transition region width.

Reverb Zones and Attenuation

Reverb Zones inherit the behaviors and properties of Rooms when it comes to attenuation, with these added considerations:

Transmission Loss

Normally, a diffraction path never carries transmission loss because only a transmission path can pass through a surface. With Reverb Zones, there are exceptions for the wet path and for room tones, if a diffraction path passes through the transition region of a Reverb Zone with AkRoomParams::TransmissionLoss higher than 0. When this happens, it's possible for different paths from the same room to have different amounts of transmission loss. This can be seen in the Voice Inspector:

In this example of a room tone, there is a transmission path directly from the room to the listener. There is also a path diffracting through a portal. Each path carries a different amount of transmission loss.

Transmission on the direct transmission path is calculated as described in Emitter-Listener (Direct) Connection, as the max of the listener's room and the emitter's room transmission loss. When those rooms are part of different Reverb Zone hierarchies, then transmission loss will be the max of both room and their parents.

On a diffraction path, whenever a path crosses a transition region, the transmission loss of the child room applies (as specified by AkRoomParams::TransmissionLoss), with the final transmission loss being the max of the values found along the path.

Distance

Care needs to be taken to choose which surfaces of a Reverb Zone are transparent (transmission loss is 0) because of their effect on the calculation of distance between an object in the Reverb Zone and its parent room. Any distance calculation to or from a Reverb Zone is taken based on the nearest opaque triangles.

A common example of this is the floor of a large Reverb Zone. If the floor of a Reverb Zone is transparent (has a surface transmission loss of 0), and a listener is positioned to be far away from any walls, then the nearest distance to the parent room will be through the floor, which is usually undesirable.

Another common example is a surface in a Reverb Zone that has a portal to another room. A surface with a portal connected to it should usually be opaque.

In this example, the three highlighted surfaces of a Reverb Zone have been made opaque. The bottom surface is shared with the floor. The left surface is shared with another room and has a connected portal. The top surface is a creative choice representing something like a covered balcony. All other surfaces are transparent.

Reverb Zone Placement Recommendations

  • The AK::SpatialAudio::SetReverbZone API creates hierarchies of rooms. Parent-child relationships are created directly by AK::SpatialAudio::SetReverbZone, and sibling relationships are created by specifying the same parent room for more than one Reverb Zone.
  • Portals cannot be used to connect rooms that are part of the same hierarchy because the transitions between Reverb Zones and their parent rooms are already defined by their transition regions. Calls to AK::SpatialAudio::SetReverbZone or AK::SpatialAudio::SetPortal with parameters that would cause portals to connect rooms within the same hierarchy will fail.
  • A Reverb Zone transition region always connects, and transitions, directly to the parent room, and cannot be used to connect to an adjacent or sibling room. For this reason, if two Reverb Zones are directly adjacent to each other, sharing a wall, then the shared wall should not be transparent. AkAcousticSurface::transmissionLoss should be above 0 for these shared walls. A Reverb Zone cannot directly transition into another Reverb Zone, therefore Reverb Zones and their transition regions should not overlap.
  • Surfaces that are shared with other rooms (including when a Reverb Zone shares surfaces with its parent room) should generally not be transparent. This includes the floor and ceiling of a Reverb Zone when sounds are not meant to propagate through those surfaces.
  • Similar to Portals, the size of a Reverb Zone's transition region determines area over which the properties of a Reverb Zone take effect. Large transition regions may be desired for smooth transitions into Reverb Zones.
Triangle for a spatial audio mesh.
AkTriIdx NumTriangles
Number of triangles in Triangles.
AkReal32 transmissionLoss
AKSOUNDENGINE_API AKRESULT SetReverbZone(AkRoomID in_ReverbZone, AkRoomID in_ParentRoom, AkReal32 in_transitionRegionWidth)
AkAcousticSurface * Surfaces
void SetPosition(const AkVector64 &in_position)
Set position.
Definition: AkTypes.h:476
AkVertIdx NumVertices
float AkReal32
32-bit floating point
AkUInt16 AkSurfIdx
Position and orientation of game objects in the world (i.e. supports 64-bit-precision position)
Definition: AkTypes.h:411
AKSOUNDENGINE_API AKRESULT SetGeometry(AkGeometrySetID in_GeomSetID, const AkGeometryParams &in_params)
void SetOrientation(const AkVector &in_orientationFront, const AkVector &in_orientationTop)
Set orientation. Orientation front and top should be orthogonal and normalized.
Definition: AkTypes.h:496
AKSOUNDENGINE_API AKRESULT SetGeometryInstance(AkGeometryInstanceID in_GeometryInstanceID, const AkGeometryInstanceParams &in_params)
AkTriangle * Triangles
Vertex for a spatial audio mesh.
Parameters passed to SetGeometryInstance
constexpr AkRoomID kOutdoorRoomID
The outdoor room ID. This room is created automatically and is typically used for outdoors,...
AkSurfIdx NumSurfaces
Number of of AkTriangleInfo structures in in_pTriangleInfo and number of AkTriIdx's in in_infoMap.
AKSOUNDENGINE_API AkUInt32 GetIDFromString(const char *in_pszString)
AkVertex * Vertices
Number of vertices in Vertices.
3D vector for some operations in 3D space. Typically intended only for localized calculations due to ...
Definition: AkTypes.h:362
AkGeometrySetID GeometrySetID
Parameters passed to SetGeometry
AkWorldTransform PositionAndOrientation
AKSOUNDENGINE_API AKRESULT SetRoom(AkRoomID in_RoomID, const AkRoomParams &in_Params, const char *in_RoomName=nullptr)

이 페이지가 도움이 되었나요?

지원이 필요하신가요?

질문이 있으신가요? 문제를 겪고 계신가요? 더 많은 정보가 필요하신가요? 저희에게 문의해주시면 도와드리겠습니다!

지원 페이지를 방문해 주세요

작업하는 프로젝트에 대해 알려주세요. 언제든지 도와드릴 준비가 되어 있습니다.

프로젝트를 등록하세요. 아무런 조건이나 의무 사항 없이 빠른 시작을 도와드리겠습니다.

Wwise를 시작해 보세요