Sodium

Sodium

35M Downloads

Customizable vertical rendering distance

demecoandrea opened this issue ยท 7 comments

commented

Request Description

I used to play minecraft 1.20.1 with sodium 0.4.10 and NoFog 1.3.4. Rendering distance: 16, simulation distance 12.
I could always see the ground beneath my feet, even when flying very high.
Updating Sodium 0.5 I cannot see the terrain if I fly for example over 300 blocks (I know it depends on rendering distance, but I don't want to raise it too much).
I understand that this maybe improves the performance, but I'd rather want few less fps but being able to see what's beneath me while I'm flying with the elytra.
Should be possible to add an option to revert back the change?
After all, 300 blocks it's not even the build limit, why I shouldn't see the terrain under my feet?
image

commented

I know it's been a while, but this issue is still open and having an effect.

While I don't use no-fog mods, some shaders as Complementary have this effect while active. Some of them are looking to this trouble, by trying something commented as "spherical fog", but it would be an awesome feature to have an option for not apply render distance limits vertically. If that breaks with Sodium philosophy, maybe do a separate, compatible mod? or add its feature to other mod like indium or lithium.

The looks are definitely better when vertical rendering limit is not applied. Having an option for it would be awesome.

commented

Hm. We've had a lot of complaints about this recently. The problem is that Sodium 0.4 had a bug which was causing the render distance limit to not apply vertically. We fixed this and thought it wouldn't be an issue. But when players disable fog, the calculation that Sodium uses to determine if a chunk is hidden (completely obscured by fog) doesn't work anymore, because it assumes the fog is always there.

Seeing that the server doesn't enforce fog distance (i.e. the client's render distance is always used to determine how much fog is used, regardless of the server's actual view distance), it seems fairly safe to allow users to change this behavior...

I guess what we can do is make it so vertical culling is also controlled by the "Use Fog Occlusion" setting, but I'm not sure if it makes sense for Sodium to be doing this when we don't even allow the player to disable fog in the first place...

I'm going to leave this issue open while we brainstorm on what's the most reasonable way to fix it.

commented

I understand that this maybe improves the performance

This is vanilla behavior.

commented

Thanks for your answer.
I know it's vanilla, and I don't like it, that's why I'm using a mod, and asking an enhancement.
Further, it's kinda sad that something that worked before has been broken by an update. Why can't I just choose?
here is the same visual with sodium 0.4.10
I wish there was an option to increase the vertical render distance only, or to return the vertical render to how it was before the update.
image

commented

I'm really glad that there is still hope :)
In other words, it was not a feature, it was a bug. I see. But I'd pay to have that bug back again! :D
I googled it and seems there are no other solutions beside this.
Thanks a lot for your work!

commented

Logically, it should be a tweak implemented by your fog remover mod. Ask them about it too

commented

Disabling the Fog with Sodium Extra (an extension mod to Sodium) works as requested in this Issue, and is an appropriate solution to this problem (at least when one wants to disable fog completely). Notably, this also works with Complementary (with fog disabled as well in the shader options).

Note that many other for disabling the fog do not have the requested vertical view distance adjustement (e.g., Tweakeroo 'yeet').

This still does not provide a similar behavior to prior versions of minecraft (that is, cylindrical fog, rather than spherical).