Skip to content

GLTFLoader: Add KHR_mesh_primitive_restart#33401

Draft
donmccurdy wants to merge 2 commits intomrdoob:devfrom
donmccurdy:feat/gltfloader-extmeshprimitiverestart
Draft

GLTFLoader: Add KHR_mesh_primitive_restart#33401
donmccurdy wants to merge 2 commits intomrdoob:devfrom
donmccurdy:feat/gltfloader-extmeshprimitiverestart

Conversation

@donmccurdy
Copy link
Copy Markdown
Collaborator

For discussion of a proposed glTF extension, supporting primitive restart values in line loop, line strip, triangle strip, and triangle fan topologies:

Because three.js requires WebGL 2, no actual rendering changes are required, this PR just ensures that GLTFLoader recognizes the extension name. The KHR_mesh_primitive_restart proposal is meant to replace the existing EXT_mesh_primitive_restart extension, which would be more complex and less efficient to support in three.js.

image

Figure: A Hilbert space-filling curve, rendered in 3D. The asset is structured as a glTF scene and a single mesh primitive, containing a series of LINE_STRIP topologies separated by primitive restart values. Created with glTF Transform.

This contribution is funded by Bentley Systems.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant