sodium-fabric icon indicating copy to clipboard operation
sodium-fabric copied to clipboard

Block model cuboids and their textures are misaligned compared to vanilla

Open WeegeeTheDoggo opened this issue 1 year ago • 3 comments

Bug Description

Expected: Block models and textures to line up as they normally do in vanilla

Actual: Block models and textures are slightly out of line

I believe this to be a bug. It does not happen with any other mods, or just by using Fabric itself, or in vanilla. I'm not aware of a setting that could remedy this, after looking through all the in-game settings for Sodium and testing each one. This bug affects an unknown number of block models, but I can verify it in end rods, torches, and fences. I expect that it affects many more.

Normal: 2023-07-22_07 35 25 Using Sodium: 2023-07-22_07 33 26

Reproduction Steps

  • Make sure fabric-loader-0.14.21-1.20.1 is installed
  • Download fabric-api-0.86.0+1.20.1 and sodium-fabric-mc1.20-0.4.10+build.27 and place them into the mods folder
  • Launch Minecraft Launcher
  • Select fabric-loader-0.14.21-1.20.1 profile
  • Wait for game to load, then enter a world and look closely at block model (such as end rod) (use spectator mode if needed)

Log File

latest.log

Crash Report

crash-2023-07-22_07.39.29-client.txt

WeegeeTheDoggo avatar Jul 22 '23 12:07 WeegeeTheDoggo

I can reproduce this on my system.

pajicadvance avatar Jul 25 '23 17:07 pajicadvance

Vanilla has its own alignment issues with models as well. (#1316)

I wonder if it'd be possible for Sodium to fix this issue and the vanilla cases as well (#1607). There exist mods such as Model Gap Fix and Model Fix Multi which resolve vanilla's issues with this, so integrating such a fix into Sodium as well so that more people can benefit would be a nice touch.

muzikbike avatar Aug 12 '23 21:08 muzikbike

We can't really fix any of these vertex precision issues until the fluid renderer is rewritten to not abuse them. At that point, it should become possible to correct the off-by-one issue which affects texture coordinates, since it won't cause texture gaps in fluid rendering.

jellysquid3 avatar Aug 14 '23 18:08 jellysquid3

The issue described here should be fixed with https://github.com/CaffeineMC/sodium-fabric/commit/ea0172768a5da9907b5a5711160dc3984fafea83.

jellysquid3 avatar Apr 29 '24 06:04 jellysquid3