Skip to content

AcousticMaterial

A resource that says how a surface treats sound: how much it soaks up, and how much gets through.

Inherits: Resource
Script: addons/spatial_audio_extended/acoustic_material.gd

How the values are used

Each value is a share from 0 to 1, set for three bands: low (up to 400 Hz), mid (400 to 2,500 Hz) and high (above 2,500 Hz).

  • Absorption is how much sound the surface soaks up when sound bounces off it. The room rays use it: high absorption (carpet, gravel) gives a short, quiet reverb, low absorption (concrete, glass) a long, loud one. absorption_high dulls the reverb tail and absorption_low thins out its bass.
  • Scattering is how rough the surface is. Bounced rays off a rough surface spread out instead of mirroring.
  • Transmission is how much sound gets through. The ray to the listener uses it. transmission_high and transmission_mid set how muffled the sound is. transmission_low sets how much quieter it gets.
  • Total absorption makes the surface soundproof. Sound behind it fades to silence, and rooms lined with it have almost no reverb.

Properties

Absorption

Property Range Default Description
absorption_low 0 to 1 0.10 Share of low frequencies absorbed on a bounce
absorption_mid 0 to 1 0.20 Share of mid frequencies absorbed on a bounce
absorption_high 0 to 1 0.30 Share of high frequencies absorbed on a bounce

Scattering

Property Range Default Description
scattering 0 to 1 0.05 How diffuse reflections are. 0 is mirror-like, 1 is fully scattered. Changes where bounced rays go, so it only matters with fibonacci_ray_reflections above 0

Transmission

Property Range Default Description
transmission_low 0 to 1 0.100 Share of low frequencies that get through. Lowers the volume
transmission_mid 0 to 1 0.050 Share of mid frequencies that get through. Adds to the muffling
transmission_high 0 to 1 0.030 Share of high frequencies that get through. Sets most of the muffling

Special

Property Range Default Description
total_absorption on or off off Makes the surface soundproof
total_absorption_transition_speed 0.1 to 20 2.5 How fast sound fades out and back in behind a soundproof surface. Lower is smoother

Presets

Each preset has a function that returns a new copy. The values are on the Material presets page.

Function Material
AcousticMaterial.preset_generic() A balanced, all-round surface
AcousticMaterial.preset_brick() Brick
AcousticMaterial.preset_concrete() Concrete
AcousticMaterial.preset_ceramic() Ceramic tiles
AcousticMaterial.preset_gravel() Gravel and loose stone
AcousticMaterial.preset_carpet() Carpet
AcousticMaterial.preset_glass() Glass
AcousticMaterial.preset_plaster() Plaster and drywall
AcousticMaterial.preset_wood() Wood panels
AcousticMaterial.preset_metal() Sheet metal
AcousticMaterial.preset_rock() Natural rock
AcousticMaterial.preset_acoustic_foam() Acoustic foam, soundproof
$Window/AcousticBody.acoustic_material = AcousticMaterial.preset_glass()