CriWare Unreal Engine
Plug-ins for CriWare solutions.
Loading...
Searching...
No Matches
ADX Tutorial No.7: Playing 3D sound

In this article, we will introduce how to play 3D sound.

What is 3D sound?

Sound is emitted from a certain position (sound source) in 3D space, and refers to sound that allows you to feel the distance and direction from which the sound is coming from.

Set 3D sound playback parameters

You need to set parameters to play 3D sound.
There are broadly two types of setting methods.

  1. in the CRI Atom Craft tool 3D Positioning parameter in the CRI Atom Craft tool. 2.
  2. set the AtomComponent to Sound Attenuation Information.
    Note
    If you set the parameters with the Atom Craft Tool, it will be played as 3D sound without any special processing.

Set sound attenuation information on AtomComponent

Attention
The sound attenuation expression implemented by setting sound attenuation information in AtomComponent is different from the attenuation expression defined for ADX data by ADX2's sound authoring Tool AtomCraft.
Since there is no need to predefine ADX data, it is possible to design attenuation flexibly and quickly.
If the Sound designer has defined attenuation settings for the ADX data, attenuation will be enabled or change by overriding the settings (without change the ADX data itself)

Set on UE editor

If you enable the " Attenuation > Override Attenuation " parameter from the AtomComponent details panel, parameters related to attenuation settings will be View.
By enabling the following parameters, you can implement volume attenuation and localization.

  • Attenuation (Volume) > Enable Volume Attenuation
  • Attenuation (Spatialization) > Enable Spatialization


The attenuation range can be set using the Attenuation (Volume) parameter below.

Parameters Description/ Comment
Inner Radius Sets the internal area around the sound source where no attenuation occurs.
Falloff Distance Sets the external area for falloff. The closer you are to the interior area, the lower the attenuation, and the further away you are, the higher the attenuation.


Set with BP or C++

AtomComponent provides the following APIs.

  • Call the UAtomComponent::AdjustAttenuation() function.
  • Set the UAtomAttenuation object in the UAtomComponent::AttenuationSettings variable.


Run result

You can check whether the volume increases or decreases or Panning by moving the camera closer or further away from the sound source, or moving it to the left or right.

Note
If you cannot hear the sound, please check the value of Distance Factor in the project settings.
This value sets the magnification of the value expressed for the Atom relation with respect to the distance "1" in the UE.
Assuming that the UE coordinate system is in cm and the Atom is in m, the Default value is 0.01 .


THIS SERVICE MAY CONTAIN TRANSLATIONS POWERED BY GOOGLE. GOOGLE DISCLAIMS ALL WARRANTIES RELATED TO THE TRANSLATIONS, EXPRESS OR IMPLIED, INCLUDING ANY WARRANTIES OF ACCURACY, RELIABILITY, AND ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.