MCRcortex / MCRcortex/voxy

Transparent textures (Water/Glass) on LODs slide with camera movement [With Shaders]

Open
#370 6 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
1.2k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

Image Image

Environment:
OS: Arch Linux
GPU: AMD Radeon RX 7900 XT (RDNA 3)
Kernel/Drivers: Mesa (latest)
Minecraft Version: 1.21.11
Sodium: 0.8.4+mc1.21.11
Voxy Version: 0.2.10-alpha
Iris Version: 1.10.5+mc1.21.11
Shader Used: Eclipse-Unstable/BSL
Log:
https://mclo.gs/QnD5Tcz

Image

I am experiencing a visual bug where transparent textures (such as water and glass) on distant LOD chunks do not stay fixed in the world. Instead, they appear to "slide" or shift across the terrain in relation to my camera/head movement.

The Issue: "When moving the camera, transparent textures on LOD chunks seem to 'slide' over the terrain. It is possible to 'push' these textures out of the field of view. For example, if I look down at normally rendered chunks (non-LOD) containing water, the LOD water textures in the distance shift or disappear based on my looking angle."
Shaders: This occurs with all supported shaders I have tested [e.g. BSL, Eclips], but without a shader it just works fine.

I noticed that resizing the game window (smaller and larger) temporarily "fixes" the issue. Upon resizing, the transparent LOD textures (water/glass) immediately snap back to their correct positions.
However, as soon as I start moving the camera again, they begin to slide and lose their alignment.
Could it be that the projection matrix or viewport scaling isn't updating properly during movement, but gets forced to refresh on a resize?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue with Voxy 0.2.10-alpha, Sodium 0.8.4, Iris 1.10.5, and the listed BSL or Eclipse shader setup, then review the linked log and screenshots. Trace the distant transparent LOD rendering during camera movement and after window resizing; done means water and glass remain aligned with the terrain while the view moves.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
computer-graphics, game-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.