Draft changes for Shapes and Bounding Volumes in glTF 2.1#2619
Open
weegeekps wants to merge 1 commit into
Open
Draft changes for Shapes and Bounding Volumes in glTF 2.1#2619weegeekps wants to merge 1 commit into
weegeekps wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the draft changes for Shapes and Bounding Volumes in glTF 2.1. This PR currently points towards the
draft-2.1branch and should be safe to merge to that branch.These changes were authored by @lilleyse.
Relevant Issues:
Summary from Copilot:
Major Additions:
1. Bounding Volumes for Nodes
boundingVolumeproperty to thenodeschema, allowing nodes to specify a local-space bounding volume for culling, loading, or other spatial operations. The bounding volume references a shape and can be transformed relative to the node. (F06053e9R1, specification/2.1/schema/boundingVolume.schema.jsonR1-R47)2. Shape Definitions and Registry
shapesarray in the glTF schema, enabling authors to define reusable shape objects.box,sphere,capsule,cylinder,plane), their parameters, and requirements for validity.3. Shape and Bounding Volume Schemas
shape.schema.jsondescribing the structure of a shape, including type and type-specific parameters.box,sphere,capsule,cylinder, andplane, each with their own required parameters and validation rules. [1] [2] [3] [4] [5]boundingVolume.schema.jsondescribing how a bounding volume references a shape and specifies its transform.Summary of Most Important Changes:
Bounding Volumes
boundingVolumeproperty to nodes, referencing a shape and specifying transform (rotation, scale, translation). (F06053e9R1, specification/2.1/schema/boundingVolume.schema.jsonR1-R47)Shape System
shapesarray in glTF, allowing reusable, parameterized shape definitions.Schema Additions
shape.schema.jsonand individual schemas for each built-in shape type (box,sphere,capsule,cylinder,plane) to validate shape definitions. [1] [2] [3] [4] [5] [6]boundingVolume.schema.jsonto validate bounding volume definitions and their relationship to shapes.