Some block models have misaligned textures when many block textures are loaded
Lolothepro opened this issue ยท 3 comments
Bug Description
When many textures are loaded, there is a slight gap on some textures.
Reproduction Steps
Use this modpack :
All the Mods 9 (Modified for Sodium compat and with Frostrealm).zip (Curseforge format)
Give yourself the "frostrealm:frost_crystal_ore
" block with the /give @p frostrealm:frost_crystal_ore
command.
See the bug
Textures atlas:
minecraft_textures_atlas_blocks.png.txt
Log File
Crash Report
I found the texture. It's the frost_crystal_ore_glow overlay (x=1344 y=5785 w=16 h=16)
You can clearly see the surrounding textures are the ones in the screenshot.
As you can see the texture position in the atlas is very off grid (probably due to several non-pot and non square textures in the atlas)
I wonder if that's whats causing it.
Maybe changing how textures are packed into the atlas (perhaps even with padding to maintain a perfect 16x16 grid allignment) would fix this.
It would need to be done in such a way as to not drastically increase the size of the atlas tho.
Maybe group textures into several groups during packing
- Square & POT =>16px
- Non-Square & POT =>16px
- Everything else
The third group would be packed into the atlas at the very end so it wouldn't affect the rest of the atlas, and would isolate the precision issues to only the non-pot textures because they deserve it.