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

FB15096579: Arbitrary triangle clipping if scene contains collinear triangle #551

Open
dsvensson opened this issue Sep 15, 2024 · 0 comments

Comments

@dsvensson
Copy link

dsvensson commented Sep 15, 2024

  • Date: 2024-09-11
  • Resolution: Open
  • Area: Metal
  • OS: 14.6
  • Type: Incorrect/Unexpected Behavior
  • Keywords: gpu, clipping

Description

When collinear triangles are passed to OpenGL triangle strip draw call, unrelated triangles are clipped. The clipped triangle will always have two vertices behind the view. The bug is reproducible in all ezQuake, QuakeSpasm, FTE versions. From 2024-09-15 a temporary workaround got introduced in ezQuake to filter out collinear triangles on macOS arm64. The Quake engines all use fixed pipeline OpenGL on macOS, but the bug is reproducible with plain Metal as well as mentioned in the QuakeSpasm issue. No other hardware or OS combination has produced this issue, even macOS Intel is fine.

Files

Triangle here is incorrectly clipped due to a collinear triangle elsewhere in the scene. Pruning the collinear triangle makes the missing triangle here draw again.

image

@dsvensson dsvensson changed the title FB15096579: FB15096579: Arbitrary triangle clipping if scene contains collinear triangle Sep 15, 2024
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

1 participant