Material presets¶
Twelve ready-made materials, with values taken from published acoustic measurements. They're in
addons/spatial_audio_extended/presets/materials/. Use them as they are, or duplicate one and tweak it.
Which one to use¶
| Surface | Preset |
|---|---|
| Interior walls | generic or plaster |
| Warehouse or factory | concrete or brick |
| Old stone building | rock or brick |
| Office or apartment | plaster or wood |
| Bathroom or kitchen tiles | ceramic |
| Carpeted room | carpet |
| Windows and glass walls | glass |
| Ducts, machinery, thin partitions | metal |
| Cave or rocky ground | rock or gravel |
| Outdoor ground | gravel |
| Sound booth or soundproof barrier | acoustic_foam |
What you'll hear¶
- Carpet vs concrete: carpet absorbs most mids and highs, so reverb dies quickly. Concrete absorbs almost nothing, so sound bounces around.
- Glass vs brick: glass lets more sound through and soaks up some bass. Brick lets very little through.
- Metal: passes far more bass than most materials, so low sounds rumble through metal walls.
- Acoustic foam: blocks sound completely and kills reverb.
Values¶
Absorption is the share of sound soaked up when it bounces off the surface. Transmission is the share that gets through. Low is up to 400 Hz, mid is 400 to 2,500 Hz, high is above 2,500 Hz.
Absorption¶
| Preset | Low | Mid | High |
|---|---|---|---|
| generic | 0.10 | 0.20 | 0.30 |
| brick | 0.03 | 0.04 | 0.07 |
| concrete | 0.05 | 0.07 | 0.08 |
| ceramic | 0.01 | 0.02 | 0.02 |
| gravel | 0.60 | 0.70 | 0.80 |
| carpet | 0.24 | 0.69 | 0.73 |
| glass | 0.25 | 0.06 | 0.03 |
| plaster | 0.12 | 0.06 | 0.04 |
| wood | 0.11 | 0.07 | 0.06 |
| metal | 0.20 | 0.07 | 0.06 |
| rock | 0.13 | 0.20 | 0.24 |
| acoustic_foam | 1.00 | 1.00 | 1.00 |
Transmission¶
| Preset | Low | Mid | High |
|---|---|---|---|
| generic | 0.100 | 0.050 | 0.030 |
| brick | 0.025 | 0.019 | 0.010 |
| concrete | 0.015 | 0.011 | 0.008 |
| ceramic | 0.060 | 0.044 | 0.011 |
| gravel | 0.031 | 0.012 | 0.008 |
| carpet | 0.020 | 0.005 | 0.003 |
| glass | 0.060 | 0.044 | 0.011 |
| plaster | 0.056 | 0.028 | 0.004 |
| wood | 0.070 | 0.014 | 0.005 |
| metal | 0.200 | 0.025 | 0.010 |
| rock | 0.015 | 0.002 | 0.001 |
| acoustic_foam | 0.000 | 0.000 | 0.000 |
Scattering and soundproofing¶
Every preset has a scattering of 0.05 except gravel (0.60), carpet (0.57), rock (0.20) and acoustic foam
(0.60). Scattering spreads bounced rays out, so it only changes the sound with fibonacci_ray_reflections
above 0.
acoustic_foam is the only preset with total_absorption on, with a total_absorption_transition_speed of 1.2.
Use a preset in code¶
# The shared file on disk: duplicate() it before changing values
var mat = load("res://addons/spatial_audio_extended/presets/materials/concrete.tres")
# A fresh copy with the same values
var mat = AcousticMaterial.preset_concrete()
There's a preset_ function for every preset: preset_generic(), preset_brick(), preset_concrete(),
preset_ceramic(), preset_gravel(), preset_carpet(), preset_glass(), preset_plaster(), preset_wood(),
preset_metal(), preset_rock() and preset_acoustic_foam().