
Redstone z-fighting
7777777-4547 opened this issue ยท 3 comments
Describe the bug
Some emissive UV Face obstruct emissive others.
Redstone dust have Z-fighting.
To reproduce
Steps to reproduce the behavior:
- Install Glowing Resourcepack
- Join a world and make a dark environment
- Place redstone torch and redstone dust
- See error
Expected behavior
Redstone torch has some Alpha UV face to obstruct other emissive thing's emissive face.
Redstone dust will have Z-fighting.
Which Minecraft versions does this bug affect?
1.16.5
Mod loader
Which mod loaders does this bug affect?
- Forge
- Fabric
Mods list
- dynamic-fps-2.0.2
- emissive-plugin-1.16.5-1.1.0-fabric
- entityculling-fabric-mc1.16.5-1.5.2
- fabric-api-0.42.0+1.16
- ferritecore-2.1.1-fabric
- indium-1.0.0+mc1.16.5
- iris-mc1.16.5-1.4.5
- lazydfu-0.1.2
- lithium-fabric-mc1.16.5-0.6.6
- memoryleakfix-fabric-pre1.17-1.1.1
- modernfix-fabric-5.7.1+mc1.16.5
- modmenu-1.16.23
- moremcmeta-1.16.5-4.2.0-fabric
- phosphor-fabric-mc1.16.2-0.8.0
- reeses_sodium_options-1.6.3+mc1.16.5-build.86
- sodium-extra-0.4.18+mc1.16.5-build.96
- sodium-fabric-mc1.16.5-0.2.0+build.4
Resource pack
- Glowing-OF_v0.2.0-1.16
Additional context
None
Thanks for the detailed report and images. I am going to split this into two threads because these are two separate issues. This will become the tracking issue for the z-fighting problem with redstone dust. #5 will become the tracking issue for the face obstruction issue.
Emissive plugin v1.1.1 has been released. This version contains a z-fighting fix pack with a custom block model that avoids the z-fighting issues. You'll need to enable this from your resource packs screen.
A special block model has to be used because Minecraft rendering has issues with a bunch of translucent quads on top of each other like in the redstone model. If you look very closely, you'll notice that two pixels aren't visible in the new model that are visible in the old one; enlarging the model to include these two pixels causes a small rendering bug. It's not that noticeable, though. (The programmatic alternatives I tested didn't work well.)
Please report any other instances of z-fighting that you notice; these unfortunately have to be fixed individually. However, the redstone model seems fairly unique, so this is hopefully the only instance of the problem.