You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Sound rolloff: animation sounds fade out long before their Gothic range #569
Animation and NPC sounds use Unity's linear rolloff, ending at the sound's Gothic range (R: in the model script, in cm). That gets quiet long before Gothic's range is felt in the original. Fellan's hammering in Khorinis (HAMMER, R:1000) could not be heard from Alwin's sheep pen about 18 m away, even though Alwin's quest asks whether you hear it.
The PR fixes that one case with a finite list in AudioService (HAMMER carries 24 m, chosen in play).
Check how the original attenuates by range. Find out how ZenGin (or OpenGothic, as a reference) fades a sound between its minimum distance and its range.
Decide on one approach for all animation, VOB and mob sounds. Either a rolloff curve that matches the original, or keep the per-sound list. If a curve is chosen, remove the list entry it makes unnecessary.
In #578 the HAMMER = 24 m override from #574 was removed (745812cdc). There are no per-sound range overrides any more. An animation sound carries exactly its Gothic range (R: in the model script, cm → m), with Unity's linear fade to silence at that range.
What OpenGothic does (first checkbox, as a reference)
Sounds play through OpenAL with AL_LINEAR_DISTANCE, set once for the device (lib/Tempest/Engine/sound/sounddevice.cpp:173).
Each sound gets setMaxDistance(range) from its R: (common/world/worldsound.cpp:149, reached from Npc::emitSoundEffect / Interactive::emitSoundEffect). The reference distance is OpenAL's default.
The sound is full volume at the source and fades in a straight line to silence at the range. There is no per-sound special case.
We now do the same. As a result, Fellan's hammering (R:1000 = 10 m) is not heard from Alwin's sheep pen about 18 m away. That is the same in OpenGothic.
Still open here
How the original ZenGin fades a sound. If it fades more gently than linear-to-range, Alwin's line "Hörst du nicht das Hämmern?" (DIA_Alwin_Fellan_12_02) suggests you'd hear the hammering at his pen. Neither OpenGothic nor our code answers that.
Test case for whatever fade is chosen: stand at Alwin's sheep pen in G2 while Fellan hammers.
The decision is recorded in Docs/adr/2026-12-03-sound-effects-volume.md, point 5.
Activity
fix: animation sounds carry exactly their Gothic range like in OpenGo…
JaXt0r commentedon Dec 3, 2026
The per-sound range list is gone
In #578 the
HAMMER= 24 m override from #574 was removed (745812cdc). There are no per-sound range overrides any more. An animation sound carries exactly its Gothic range (R:in the model script, cm → m), with Unity's linear fade to silence at that range.What OpenGothic does (first checkbox, as a reference)
AL_LINEAR_DISTANCE, set once for the device (lib/Tempest/Engine/sound/sounddevice.cpp:173).setMaxDistance(range)from itsR:(common/world/worldsound.cpp:149, reached fromNpc::emitSoundEffect/Interactive::emitSoundEffect). The reference distance is OpenAL's default.We now do the same. As a result, Fellan's hammering (
R:1000= 10 m) is not heard from Alwin's sheep pen about 18 m away. That is the same in OpenGothic.Still open here
DIA_Alwin_Fellan_12_02) suggests you'd hear the hammering at his pen. Neither OpenGothic nor our code answers that.Docs/adr/2026-12-03-sound-effects-volume.md, point 5.🤖 Generated with Claude Code