Open Darek505 opened 1 month ago
So, as it turned out, all these problems arise due to overwriting the skybox. I removed almost everything in SkyProviderCelestial, but the problem remained. Removing world.provider.setSkyRenderer(new SkyProviderCelestial());
from ModEventHandlerClient solved the problem on earth, but the rest of the planets implement the skybox directly:
https://github.com/JameH2/Hbm-s-Nuclear-Tech-GIT/blob/091fb8ebd3becaede22009aad778bfb84096aefa/src/main/java/com/hbm/dim/WorldProviderCelestial.java#L410-L414
So this cannot be resolved there yet. (or can, but need to study it in detail)
By the way, there is another question: why can't we use chainloader on the earth? Basically, chainloader renders the current skybox (for example from a mod) and overlays the bobmazon satellite and digamma star renders on it. And if we need to change the color of the sky in accordance with the atmosphere (quote: "if you change the atmospheric composition of the Earth, but the skybox remains a cool blue, you'll suffocate with no indication as to why"), why can't we add a color effect on top of the skybox?
This can be imagined as a small box underneath the main skybox, which is normally transparent, but as soon as the atmosphere changes, we change the color of the box from full-transparent to the semi-transparent with color of the skybox (we can do this gradually, increasing alpha, as the atmosphere color change increases).
This is actually pretty good: until you change the atmosphere, you'll see your cool (or not) modded skybox, and when the atmosphere changes, you'll see a semi-transparent atmosphere-colored box so you know from what you're going to die (suffocate), and the modded skybox will show through a bit
At least that's the best I can come up with for now (we have a death cause in the form of a changed atmosphere color and a modded skybox, better than either of those separately)
At the very least, if an invisible/semi-transparent atmosphere-colored box underneath the main skybox is a crap, it could be a config option for those who really want a modded skybox (or proper shaders)
So, here's some updated information regarding shaders (namely, how shaders behave with ntm space skyboxes):
Shader name | State | Overall rating |
---|---|---|
builders-modded-shaders-v2.4.1 | Lighting bug, No ntm skybox | π§ |
ComplementaryReimagined_r5.2.2 | Works | β |
BSL_v8.2.09 | Works | β |
projectLUMA-v1.54 | Lighting bug, Shadow bug, GL leak | β |
SEUS Renewed | No ntm skybox | π§ |
Sildur's+Enhanced+Default+v1.16+Fast | Lighting bug, Shadow bug | π§ |
Sildur's+Vibrant+Shaders+v1.51+Extreme | Broken | β |
Shader name | State | Overall rating |
---|---|---|
builders-modded-shaders-v2.4.1 | Unstable (sometimes it works, sometimes it doesnβt (sometimes it crashes)) | β |
ComplementaryReimagined_r5.2.2 | Partially works (angelica errors) | π§ |
BSL_v8.2.09 | Partially works (angelica errors) | π§ |
projectLUMA-v1.54 | Broken (GL leak) | β |
SEUS Renewed | Broken (angelica) | β |
Sildur's+Enhanced+Default+v1.16+Fast | Overall it works (no Lighting bug, Shadow bug not very visible) | β |
Sildur's+Vibrant+Shaders+v1.51+Extreme | Broken (angelica?) | β |
1) All tests above contain a bug that causes the skybox to flicker.
This can be fixed by binding a completely transparent texture to the skybox in all places where tessellator.addVertex
(NOT tessellator.addVertexWithUV
) is used. More info
2) The fix suggested in the "Skybox" comment (using chainloader + box underneath main skybox) will work on earth, but not on other planets
(On earth, we use chainloader to render the shader skybox and skybox from ntm (because the earth is part of vanilla and uses vanilla SkyProvider there will be no bugs (similar to weakSkyRender from AstralSorcery)) Other planets use SkyProviderCelestial, which is different from overworld's vanilla SkyProvider , so bugs appear).
While this can probably be fixed by using mixins in optifine (doesn't make much sense), it will need to be reported to the angelica bug tracker when they start testing the shaders (as these are common bugs caused by using a third party skybox in dimensions other than -1
,0
,1
. The same thing happens for example in galacticraft, twilight forest, etc.)
Edited: See 2 messages below