I would be ecstatic if someone were able to fix this lighting issue which has plagued the game since the very addition of smooth lighting to Minecraft. Here are just a few images referencing the issue which can be found and replicated very easily in literally any version of the game.
Notice the hard edges of light? This has been around forever and it bugs me to all hell. All of these screenshots were taken in different Minecraft versions, and all of them had Smooth Lighting set to maximum. This issue becomes very apparent especially underwater, but as you can see in the images, it affects all parts of the game. This link: https://bugs.mojang.com/browse/MC-43968 will send you to a post from 2013 where someone addresses this lighting issue, and even provides code which fixes the problem, but seeing as it was from an earlier Minecraft version from 2013, that code has been confirmed to be no longer useful. I don't know how to code, but I've been told by the creator of the "Canvas Renderer" mod: https://www.curseforge.com/minecraft/mc-mods/canvas-renderer (which actually fixes this issue, but unfortunately only for Fabric) who no longer mods with Forge that the issue stems from a bug with the Ambient Occlusion Code, and that "it's a relatively simple patch."
Once again, I don't know how to code so I don't know what will, and what wont, help anyone who takes this project into consideration, thus why I'm trying to provide you with as much info/links as possible. But as I said before, Canvas Renderer does fix this lighting issue, but it also changes a lot of other things surrounding Minecraft's lighting. Canvas Renderer is also open source, and as seen in the screenshot attached to this post, the mod author of Canvas Renderer has told me it is okay for others to port his mod and/or its features elsewhere. That being said, I'm not asking for an entire port of Canvas Renderer to Forge. I simply want the one feature (the lighting in the images above) to be fixed both above ground and underwater. Once again, let me say that I don't know what will and what wont aid you in the creation of this mod, hence the reason why I only bring up Canvas Renderer as a reference and possible starting off point in the off chance that any of the code from that mod aids you in the creation of this mod.
Below are 2 images, the top image showing Vanilla Minecraft and this lighting bug, and the bottom image showing what Minecraft should look like if this mod were to be created.
All in all, I am interested in this mod either for version Forge 1.15.2, or Forge 1.12.2. Also, I am genuinely willing to compensate you for your work if this mod is completed. Thank you for your consideration!
ATTACHMENTS
Permission to use code from Canvas Renderer if needed
Hi.
I'm also having this exact same issue on 1.16.5 and It's also annoying me a great amount. Considering you posted this in June last year, I was wondering If you found a fix? (without using canvas).
Hi. I've been searching to fix the light glitch in 1.12.2 and can not find a fix or mod, only for spigot server (in game).
So i added an option to my 1.12.2 region file creator / editor for just loading, recalculating the block- and skylight, and save it again. It seems to work ok.
I only have the source code for Linux (Ubuntu) adapted to this, if you need the Windows version you need to adapt the Windows src version (root). On request i can do this for you.
Hi. I've been searching to fix the light glitch in 1.12.2 and can not find a fix or mod, only for spigot server (in game).
So i added an option to my 1.12.2 region file creator / editor for just loading, recalculating the block- and skylight, and save it again. It seems to work ok.
I only have the source code for Linux (Ubuntu) adapted to this, if you need the Windows version you need to adapt the Windows src version (root). On request i can do this for you.
The bug this thread is referring to is in the rendering code; you can't fix it by fixing lighting within the save files - it requires actually modifying the game (I fixed all of these myself, in part by using code examples, like in the first link - shame on Mojang for not using them! Also, despite the fix versions all of these bugs have been in the game since smooth lighting was added in Beta 1.3 and has only worsened since then; unfortunately, no, I can't provide fixes for newer versions, I only mod 1.6.4, but the concepts should still be applicable, e.g. the incorrect offsets mentioned in the first one are the primary cause of the issue in this thread and should be locatable within the modern equivalent of the rendering code for 1.7/1.6):
I would be ecstatic if someone were able to fix this lighting issue which has plagued the game since the very addition of smooth lighting to Minecraft. Here are just a few images referencing the issue which can be found and replicated very easily in literally any version of the game.
Notice the hard edges of light? This has been around forever and it bugs me to all hell. All of these screenshots were taken in different Minecraft versions, and all of them had Smooth Lighting set to maximum. This issue becomes very apparent especially underwater, but as you can see in the images, it affects all parts of the game. This link: https://bugs.mojang.com/browse/MC-43968 will send you to a post from 2013 where someone addresses this lighting issue, and even provides code which fixes the problem, but seeing as it was from an earlier Minecraft version from 2013, that code has been confirmed to be no longer useful. I don't know how to code, but I've been told by the creator of the "Canvas Renderer" mod: https://www.curseforge.com/minecraft/mc-mods/canvas-renderer (which actually fixes this issue, but unfortunately only for Fabric) who no longer mods with Forge that the issue stems from a bug with the Ambient Occlusion Code, and that "it's a relatively simple patch."
Once again, I don't know how to code so I don't know what will, and what wont, help anyone who takes this project into consideration, thus why I'm trying to provide you with as much info/links as possible. But as I said before, Canvas Renderer does fix this lighting issue, but it also changes a lot of other things surrounding Minecraft's lighting. Canvas Renderer is also open source, and as seen in the screenshot attached to this post, the mod author of Canvas Renderer has told me it is okay for others to port his mod and/or its features elsewhere. That being said, I'm not asking for an entire port of Canvas Renderer to Forge. I simply want the one feature (the lighting in the images above) to be fixed both above ground and underwater. Once again, let me say that I don't know what will and what wont aid you in the creation of this mod, hence the reason why I only bring up Canvas Renderer as a reference and possible starting off point in the off chance that any of the code from that mod aids you in the creation of this mod.
Below are 2 images, the top image showing Vanilla Minecraft and this lighting bug, and the bottom image showing what Minecraft should look like if this mod were to be created.
All in all, I am interested in this mod either for version Forge 1.15.2, or Forge 1.12.2. Also, I am genuinely willing to compensate you for your work if this mod is completed. Thank you for your consideration!
Hi.
I'm also having this exact same issue on 1.16.5 and It's also annoying me a great amount. Considering you posted this in June last year, I was wondering If you found a fix? (without using canvas).
Thanks
Offline light glitch fixer 1.12.2
Hi. I've been searching to fix the light glitch in 1.12.2 and can not find a fix or mod, only for spigot server (in game).
So i added an option to my 1.12.2 region file creator / editor for just loading, recalculating the block- and skylight, and save it again. It seems to work ok.
I only have the source code for Linux (Ubuntu) adapted to this, if you need the Windows version you need to adapt the Windows src version (root). On request i can do this for you.
https://github.com/HakkaTjakka/CAVES/tree/main/Linux_ShaderTest_v1.1
The bug this thread is referring to is in the rendering code; you can't fix it by fixing lighting within the save files - it requires actually modifying the game (I fixed all of these myself, in part by using code examples, like in the first link - shame on Mojang for not using them! Also, despite the fix versions all of these bugs have been in the game since smooth lighting was added in Beta 1.3 and has only worsened since then; unfortunately, no, I can't provide fixes for newer versions, I only mod 1.6.4, but the concepts should still be applicable, e.g. the incorrect offsets mentioned in the first one are the primary cause of the issue in this thread and should be locatable within the modern equivalent of the rendering code for 1.7/1.6):
MC-43968 Ambient occlusion bug on staircase structures
MC-68129 Smooth lighting doesn't work properly underwater (this is the only one that has been fixed, in 1.17)
MC-138211 Incorrect Smooth Lighting (Ambient Occlusion)
MC-197497 Smooth lighting transition from level 1 to 0 is not smooth
MC-225516 Smooth lighting doesn't work on blocks that emit light
TheMasterCaver's First World - possibly the most caved-out world in Minecraft history - includes world download.
TheMasterCaver's World - my own version of Minecraft largely based on my views of how the game should have evolved since 1.6.4.
Why do I still play in 1.6.4?