Skip to content
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

[BUG] Transparency z-fighting in water brushes. (Regresion from 0.7.0) #358

Open
drHyperion451 opened this issue Nov 14, 2024 · 3 comments

Comments

@drHyperion451
Copy link

Ironwail 0.7.0:
https://github.com/user-attachments/assets/097d7902-6948-486e-b0bf-6e9ac6b851bb

Ironwail 0.8.0:

2024-11-14.13-02-13.mp4

How to replicate:

Go to the "start" map from the original, id1 game inside the episode 4 hall. Look at the water.

My specs:

CPU: 12th Gen Intel(R) Core(TM) i7-1255U, 1700 Mhz
GPU: Intel Iris Xe Graphics (integrated) OGL 4.6
OS: Microsoft Windows 11 Pro Version10.0.22631 compilation 22631

@andrei-drexler
Copy link
Owner

This is a side effect of the optimized culling in 0.8 - it's much faster, but the polygon order varies more now. You can fix it by setting r_oit to 1 (or Graphics > Transparency: Modern). That does come with a performance cost though (especially on integrated GPUs), so I'll look into alternatives for a later update.

@drHyperion451
Copy link
Author

Thanks for the answer. I suggest renaming the cvar to something more clear like "r_optimized_culling" though, since I didn't know it existed in the first place.

@andrei-drexler
Copy link
Owner

The cvar doesn't control culling, it enables order-independent transparency (OIT), which means that even if culling produces polygons in a different order each frame, the blending is not affected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants