
Rendering over tooltips
Darkere opened this issue ยท 7 comments
Earlier versions of Minecraft don't have z-translation problems, however around 1.13-1.15 they switched to a new rendering engine, they dynamically add to a z-offset variable, which is hard to get access to, and with other mods and coremods messing with it, it can be hard to find a single good value, I just rebased all versions of my mod and tested every version, 750 works both in dev and a fresh install of every version, so if it's broken now it's because of another mod or older modloader version than latest, hopefully this fixes it for you.
It looks like you are doing your translate too high. matrices.translate(0.0D, 0.0D, 500.0F);
am I wrong? 500 is really high.
I cloned the repo and tested some numbers in debug mode. It seems 258 is the perfect z level. It's high enough to not clip into blocks. It might clip into some models from other mods though. Tooltips are rendered at z level 400. So anything between these two numbers should be fine.