Audio is such an essential part of any recreation and 3D audio in 3D video games provides massively to immersion. Right now we’re going to have a look at two completely different Godot add-ons that add Audio Occlusion capabilities to the Godot recreation engine. The primary answer is VASTLY simpler to make use of; the aptly named Godot Audio Occlusion Plugin that’s a part of the Audio Arsenal bundle by Ovani Sounds. The opposite is a part of the free and open-source Giga Audio plugin, which additionally offers two completely different 3D space audio zones.
The Ovani Godot Audio Occlusion Plugin is described as:
The Audio Occlusion Plugin for Godot makes sounds in your recreation behave extra realistically. When a sound is behind a wall, door, or impediment, this plugin will mechanically make it sound muffled or filtered—similar to it will in actual life.
It really works by attaching an
AudioOccluder
(aNode3D
) to anyAudioStreamPlayer3D
in your scene. The plugin calculates how sound would journey via the atmosphere and adjusts the audio in actual time, relying on what’s between the supply and the listener.To do that, it simplifies your world right into a voxel grid—a 3D block-based map—and simulates how sound waves transfer via it. You’ll be able to even preview how the plugin sees your world by enabling Voxel Preview within the Inspector (after activating the included
plugin.gd
).You’ll be able to simply customise settings like:
- Vary
- Voxel decision
- Collision masks
- Detection margin
The Giga Audio plugin is described as:
Audio Occlusion, Audio Areas, and Audio Depth Areas to your challenge.
…yeah, barely much less verbose description there. 😉 You’ll discover that as a basic pattern, the Giga Audio plugin has much less documentation and no samples to get you up and going. Don’t fear although, now we have that course of principally coated within the video beneath.
Key Hyperlinks
Audio Arsenal bundle by Ovani Sounds
Utilizing the hyperlinks on this web page to buy the bundle helps help GFS and thanks a lot should you do! You’ll be able to be taught extra about utilizing each of the Godot 4.x audio occlusion add-ons within the video beneath.