-
Notifications
You must be signed in to change notification settings - Fork 756
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fog occlusion hides chunks incorrectly with blindness effect #35
Comments
Fixed with jellysquid3@5568b4c. |
I am still encountering this issue: System Information
|
Still happening in 0.1.0, this should be reopened. It works a little bit better than in the original report, but it's definitely still a bug. System info:
|
I'm also encountering this bug. I was about to open an issue for it, but thankfully, I was smart enough to check for a change, hahaha. System Info:
|
I'm also encountering this bug. System Info:
|
I'm also experiencing this issue btw, it reduces lag so much but it's issue just won't let me. |
When using fog occlusion, it is possible for the sky to be visible through culled chunks, ruining the illusion that there is fog. This is because vanilla relies on chunk fog to hide the sky when fog distance is reduced, however Sodium's chunk occlusion will cull these chunks as they are completely obscured by fog. To solve this issue without completely disabling chunk occlusion, the sky no longer renders when the fog distance is reduced from the default, since more dense fog means you cannot see the sky past it. Without the sky being rendered, the background of the world becomes the exact same as the fog color, so chunks culled by fog occlusion will now be indistinguishable from the fog. This behavior deviates from vanilla and can cause visual differences, however it solves some visual inconsistencies and matches Minecraft Bedrock Edition (it also seems to hide the sky when the fog distance is reduced). The most notible visual differences from vanilla incude the sky not being visible from underwater and the End dimension's noise sky not being visible during the boss fight, both due to the fog being reduced. This fixes CaffeineMC#35, CaffeineMC#438, and CaffeineMC#612. It also fixes MC-152504.
* fix: Prevent rendering sky when fog distance is reduced When using fog occlusion, it is possible for the sky to be visible through culled chunks, ruining the illusion that there is fog. This is because vanilla relies on chunk fog to hide the sky when fog distance is reduced, however Sodium's chunk occlusion will cull these chunks as they are completely obscured by fog. To solve this issue without completely disabling chunk occlusion, the sky no longer renders when the fog distance is reduced from the default, since more dense fog means you cannot see the sky past it. Without the sky being rendered, the background of the world becomes the exact same as the fog color, so chunks culled by fog occlusion will now be indistinguishable from the fog. This behavior deviates from vanilla and can cause visual differences, however it solves some visual inconsistencies and matches Minecraft Bedrock Edition (it also seems to hide the sky when the fog distance is reduced). The most notible visual differences from vanilla incude the sky not being visible from underwater and the End dimension's noise sky not being visible during the boss fight, both due to the fog being reduced. This fixes #35, #438, and #612. It also fixes MC-152504. * fix: Use LegacyFogHelper instead of GlFogHelper * change: Update to 1.17 * change: Bump Fabric Loader to 0.11.6 * change: Set source and target compatibility to Java 16 * fix: Use camera status instead of fog distance to detect reduced fog Before, the fog distance was used to detect if the fog was reduced. While this seems like a good solution, the fog distance is calculated after the sky is rendered, meaning the visibility of the sky was always 1 frame behind. Instead, we can use the camera to calculate if the fog distance is reduced, so the visibility of the sky is up-to-date. * Rewrite portion of comment describing the patch I accidentally wrote the exact opposite of the intended message. This commit fixes that, and makes the comment easier to understand by removing unneeded information. Co-authored-by: JellySquid <jellysquid3@users.noreply.github.com>
* fix: Prevent rendering sky when fog distance is reduced When using fog occlusion, it is possible for the sky to be visible through culled chunks, ruining the illusion that there is fog. This is because vanilla relies on chunk fog to hide the sky when fog distance is reduced, however Sodium's chunk occlusion will cull these chunks as they are completely obscured by fog. To solve this issue without completely disabling chunk occlusion, the sky no longer renders when the fog distance is reduced from the default, since more dense fog means you cannot see the sky past it. Without the sky being rendered, the background of the world becomes the exact same as the fog color, so chunks culled by fog occlusion will now be indistinguishable from the fog. This behavior deviates from vanilla and can cause visual differences, however it solves some visual inconsistencies and matches Minecraft Bedrock Edition (it also seems to hide the sky when the fog distance is reduced). The most notible visual differences from vanilla incude the sky not being visible from underwater and the End dimension's noise sky not being visible during the boss fight, both due to the fog being reduced. This fixes CaffeineMC#35, CaffeineMC#438, and CaffeineMC#612. It also fixes MC-152504. * fix: Use LegacyFogHelper instead of GlFogHelper * change: Update to 1.17 * change: Bump Fabric Loader to 0.11.6 * change: Set source and target compatibility to Java 16 * fix: Use camera status instead of fog distance to detect reduced fog Before, the fog distance was used to detect if the fog was reduced. While this seems like a good solution, the fog distance is calculated after the sky is rendered, meaning the visibility of the sky was always 1 frame behind. Instead, we can use the camera to calculate if the fog distance is reduced, so the visibility of the sky is up-to-date. * Rewrite portion of comment describing the patch I accidentally wrote the exact opposite of the intended message. This commit fixes that, and makes the comment easier to understand by removing unneeded information. Co-authored-by: JellySquid <jellysquid3@users.noreply.github.com>
Update to Gradle 7.2
Expected Behavior
Chunks within vision should not be culled
Actual Behavior
Having fog occlusion enabled will cause chunks to disappear when the player is very close, but not inside them, while the blindness effect is on the player.
Reproduction Steps
Apply blindness effect, be near a chunk border, have fog occlusion enabled.
Attachments
https://cdn.discordapp.com/attachments/651120262129123330/726131134970462228/2020-06-27_03-05-46-1.mp4
System Information
The text was updated successfully, but these errors were encountered: