minecraft-access icon indicating copy to clipboard operation
minecraft-access copied to clipboard

Integrate with Sound Physics Remastered mod

Open boholder opened this issue 1 year ago • 2 comments

Current block-finding algorithm like Fall Detector and Find nearest water is a simply BFS that checks every block around player, which is CPU consuming and will lag the game for seconds even on powerful PC.

Here is a active mod called Sound Physics Remastered, which provides realistic sound attenuation, reverberation, and absorption through blocks. https://modrinth.com/mod/sound-physics-remastered https://github.com/henkelmax/sound-physics-remastered

My idea is, if this mod already does well in sound processing:

  • For the "sonar" feature players have always wanted, we can add a feature like pressing key to send sound from player position, but not really play the sound for player, so player only hears reverberation sounds generated by this mod.
  • For block finding features like POI Block and Find nearest water, mixin Sound Physics Remastered mod to make it answer special sounds louder, and reuse the sonar feature above to send the sound.

related issues: #370

boholder avatar Jan 02 '25 02:01 boholder

My version of sonar would be akin to the one on Swamp, for people who have played that. I'm interested in this as a possibility, though I would have some questions like:

  • Does this mod handle 3D panning so you would know if something is above your head?
  • Is there a way to make it continuous if you want? My goal, in whatever a navigator mod is, is to be able to do something like walk through a structure or house without crashing into things all the time.

rstrunk avatar Jan 09 '25 06:01 rstrunk

The precondition of assertions below is the final result works like what I described in this issue:

Does this mod handle 3D panning so you would know if something is above your head?

Depends on whether the player can tell a sound is playing above them.

Is there a way to make it continuous if you want?

There is only one thing the mc access mod would do: play a special sound at the location of player. According to this doc we can play a loop sound.

My goal, in whatever a navigator mod is, is to be able to do something like walk through a structure or house without crashing into things all the time.

Sense the surroundings while the player close them, yes, works like sonar. But this Audio Orientation feature should be considered at the beginning of game engine design, Minecraft's existing representation of the game world isn't suitable for achieving this, see how current find the most close fluid achieves it. The point is, current implementation will lag the game, we need to find an efficient way to check blocks surrounding the player, that's the biggest problem. The XYZ sounds feature hasn't got involved in this problem, once you need the information about blocks and world, this problem appears. All the features under "Audio Orientation" of epic #149 shares this problem, so does your intention I bet.

boholder avatar Jan 09 '25 09:01 boholder