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

Support for mesh primitive modes LINE_LOOP #689

Open
atteneder opened this issue Apr 18, 2024 · 0 comments
Open

Support for mesh primitive modes LINE_LOOP #689

atteneder opened this issue Apr 18, 2024 · 0 comments
Labels
2.0 core spec bug Something isn't working

Comments

@atteneder
Copy link
Owner

atteneder commented Apr 18, 2024

Out of all mesh primitive modes, these are not supported and render incorrectly:

  • LINE_LOOP
  • TRIANGLE_STRIP
  • TRIANGLE_FAN

For the latter two, there's issue #316

Unity does not have native support for those (see MeshTopology), so what needs to be done is calculate new index buffers instead of using the provided originals.

As an example, in case of line loop the calculated index buffer needs to be increased by one element in size, which is a duplicate of the first index (to close the loop).

@atteneder atteneder added bug Something isn't working 2.0 core spec labels Apr 18, 2024
@atteneder atteneder added this to To do in glTFast development via automation Apr 18, 2024
@atteneder atteneder moved this from To do to Runtime Loading in glTFast development Apr 18, 2024
@atteneder atteneder changed the title Support for mesh primitive modes LINE_LOOP, TRIANGLE_STRIP and TRIANGLE_FAN Support for mesh primitive modes LINE_LOOP Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.0 core spec bug Something isn't working
Projects
glTFast development
Runtime Loading
Development

No branches or pull requests

1 participant