henkelmax / sound-physics-remastered

A Minecraft mod that provides realistic sound attenuation, reverberation, and absorption through blocks.
GNU General Public License v3.0
69 stars 22 forks source link

Sounds get muffled when they should not get muffled. #193

Closed LukeOnuke closed 1 month ago

LukeOnuke commented 3 months ago

Bug description

As the title suggests the mod seems to muffle sounds when they go through any block, even if its something like a fence, or a chest.

Funnly enough I think this whole issue could be fixed by adding fences, trapdoors, doors and chests to oclusion.properties.

Minecraft version

1.20.4

Mod version

1.20.4-1.3.1

Mod loader and version

0.15.7

Steps to reproduce

  1. Stand in such a way to obstruct the sound raycast between the player and the sound source. (see figure 1.1 and 1.2)
  2. Listen to the muffled sounds

figure 1.1 figure 1.1 - figure 1.2 figure 1.2

Expected behavior

Expected behavior is that such sounds don't get muffled, its quite jarring.

Log files

https://gist.github.com/LukeOnuke/52aa670d2da4cce3406149c1c3fe8b50

Videos

i have no idea on how to enable debug rays for your mod, well oops. Anyways doubt a video would show much.

atlev commented 2 months ago

I know how this could be fixed. If the block can trace a line to the player, ignore occlusion completely. I work in a lot of small spaces and this mod is unusable for me. Especially if the player is standing in a doorway.

ChronicNameChanger commented 1 month ago

I have noticed this as well. I have many chests next to each other, and it seems like the top most row plays sounds at full volume, but any chests below or ones you're not on the same axis as, are obscured.

https://github.com/henkelmax/sound-physics-remastered/assets/170038226/b35f29d5-6e2c-465b-a35f-dac721c08e20 Sorry for the horrid audio, but the chest sounds are quite clear. I also had to shorten it to like 4 seconds so it could be under 10mb.

henkelmax commented 1 month ago

This should also be fixed with 3b0dbd07518bb557d0f6a92a0cf82e43ae9a8b42

Feel free to reopen if the issue persists.