What are you searching for?

Longview
Longview

Longview

Fixes flickering, jaggies and Z-fighting on long distances using the Reverse Z technique.

download 5 Downloads · favorite 3 Followers · Updated 3 days ago
Fabric Neoforge Utility 26.1-snapshot-7 26.1-snapshot-8 26.1-snapshot-9

Versions

inventory_2
Longview 0.1.0

0.1.0 · 3 days ago · 27.84 KB

Release download
Fabric Neoforge 26.1-snapshot-7 26.1-snapshot-8 26.1-snapshot-9

Gallery

About

Longview

A comparison between having Longview installed and not having it installed. The cold pig is visibly jagged on the "Longview Off" shot and Z-fighting is visible on the waterlogged leaves. The "Longview On" shot shows the exact same scene but without the jaggies and with waterlogged leaves working as intended.

Longview is a mod that fixes glitches such as Z-fighting and jaggies on far distances.

This is accomplished through two techniques:

  1. By changing the Z coordinate limits from [-1,1] to [0,1] using the GL_ARB_CLIP_CONTROL extension (officially part of OpenGL 4.5)
  2. By applying the reversed Z technique, where the far plane and the near plane are swapped in the renderer.

This ensures that the depth buffer will be evenly distributed no matter the distance, fixing all sorts of glitches that happens from a distance!

Compatibility

This mod requires a device supporting either the GL_ARB_CLIP_CONTROL extension or OpenGL 4.5 in order to apply Technique 1.

On devices that don't support either, like ones running macOS, Technique 2 will still be applied, although since the Z coordinate limits will remain as [-1,1], flipping them will do nothing at all considering said limit is effectively symmetric.

Acknowledgements

  • This Godot Engine blog post for introducing me to the reverse Z technique.
  • Depth Precision Visualized: an excellent article covering the topic of depth precision as well as the reverse Z technique.
  • The many people who have independently discovered and popularized this technique, including goddamn Quake developers.
  • qendolin for putting together the farz-poc proof-of-concept and for starting discussions involving Mojang developers.
  • IMS for he's a jolly good fellow, which nobody can deny.
open_in_new View on Modrinth
Categories
Compatibility
Client: Required Server: Unsupported
gavel MPL-2.0

Conversation

What are your thoughts?

Related projects

Optimization Utility
FerriteCore
FerriteCore

by malte0811

Memory usage optimizations

download 87.9M
favorite 12,905
Utility
Mod Menu
Mod Menu

by Prospector

Adds a mod menu to view the list of mods you have installed.

download 81.1M
favorite 22,360
Library Management Utility
YetAnotherConfigLib (YACL)
YetAnotherConfigLib (YACL)

by isxander

A builder-based configuration library for Minecraft!

download 68.8M
favorite 7,697
Adventure Transportation Utility
Xaero's Minimap
Xaero's Minimap

by thexaero

Displays a map of the nearby world terrain, players, mobs, entities in the corner of your screen. Lets you create waypoints which help you find the locations you've marked.

download 63.6M
favorite 13,908
lock Cookie consent

SkinMC uses cookies to provide functionality and features.