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

Incorrect winding order for imported GLTF with PRIMITIVE_TRIANGLE_STRIP #91593

Open
PredatorCZ opened this issue May 5, 2024 · 2 comments
Open

Comments

@PredatorCZ
Copy link

PredatorCZ commented May 5, 2024

Tested versions

4.2.1

System information

debian

Issue description

Inside gltf_document.cpp I can see conversions CCW->CW for Triangles but not for Triangle Strips, causing imported gltf with triangle strip primitives to have flipped face winding, causing inverted face culling.

Steps to reproduce

Import any GLTF with Triangle Strip mode for mesh primitives

Minimal reproduction project (MRP)

Test model:
test_model.zip

@clayjohn
Copy link
Member

Could you please upload an MRP to make this easier for contributors to troubleshoot?

An MRP is a project that is as small as can be while still reproducing the bug you are reporting. We include the MRP in the bug reporting template as including one greatly increases the chance that a contributor will be able to reproduce the bug you reported and be able to fix it.

@PredatorCZ
Copy link
Author

Thank you for reply. I've updated the issue and added model with triangle strips.

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

No branches or pull requests

3 participants