forked from KhronosGroup/glTF
-
Notifications
You must be signed in to change notification settings - Fork 9
Rename EXT_feature_metadata → EXT_mesh_features #19
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
Closed
donmccurdy
wants to merge
73
commits into
CesiumGS:3d-tiles-next-rev
from
donmccurdy:ext-feature-metadata-v2.6
Closed
Changes from all commits
Commits
Show all changes
73 commits
Select commit
Hold shift + click to select a range
52e466c
Feature metadata draft
lilleyse 02f08ab
New draft for version 1.0.0
lilleyse aa4e1dd
Add examples section
lilleyse 30df478
Updates from review
lilleyse a68f643
Fix min/max schema
lilleyse 26ff97c
Peer review edits
lilleyse 405137c
Resolve TODOs
lilleyse e6f3c2a
Wording
lilleyse 973865e
Insert Wetzel output
ptrgags 8885cd0
Wetzel output revisions
lilleyse 4f0ab88
Add last figure
lilleyse d7f3339
Addressed review feedback
lilleyse 3c981cc
Fix schema TOC indentation
lilleyse a71267e
Don't make class required in case the model does not have metadata
lilleyse 75397a9
Schema wording tweaks
lilleyse 35eb9bf
Change bufferView type back to integer
lilleyse 8fcb230
Update extensions/2.0/Vendor/EXT_feature_metadata/1.0.0/schema/featur…
lilleyse d22a9d1
Update links to Cesium 3D Metadata spec
lilleyse e2a54d9
Update date
lilleyse ceaefcf
Minor updates
lilleyse 97b5ac6
Update links to EXT_mesh_gpu_instancing
lilleyse 6ff6344
Reorder classes/enums
lilleyse 39b824e
Wording
lilleyse 3a907d0
Tweaks
lilleyse 972f7dc
Update README.md
lilleyse 1675ae2
Clarify enum binary properties
lilleyse 91ae3fa
Fix year
lilleyse 3bf5af9
Change number to integer in JSON schema
lilleyse eca3730
Remove landing page
lilleyse e646fa2
Add revision history section
lilleyse 222071f
Remove version number and links to versions
lilleyse c5e7761
Don't use non-standard not.required mechanism.
kring f626a49
Specify item type of statistic arrays.
kring 060a834
Add item types to class properties schema.
kring d0930a2
Avoid duplicate title.
kring f14b5e0
Merge pull request #10 from CesiumGS/metadata-schema-cleanup
lilleyse 2996cb7
Fix links to 3D Tiles Next extensions
lilleyse f826abe
Describe binary data storage, remove prefix from FEATURE_ID_#, and de…
donmccurdy 8ae6401
Update other occurences of FEATURE_ID_# and binary data storage.
donmccurdy 9c6cf46
Update extensions/2.0/Vendor/EXT_feature_metadata/README.md
donmccurdy b716e08
Clean up TODOs.
donmccurdy d2f0f47
Merge pull request #11 from donmccurdy/review-EXT_feature_metadata
ptrgags 0bed33e
Remove markdown generated from JSON schema. Flatten nested extensions.
donmccurdy 8574c05
Clean up.
donmccurdy 6cb8294
EXT_feature_metadata: Remove statistics, rename constant->offset and …
donmccurdy 62aa86b
EXT_feature_metadata: Clarify scope and examples.
donmccurdy 24be518
Minor grammar tweak
ptrgags 74e3eab
Merge pull request #13 from donmccurdy/ext-feature-metadata-v2.0
ptrgags 375f365
Merge pull request #12 from donmccurdy/ext-feature-metadata-wetzel-up…
ptrgags ae6bb27
EXT_feature_metadata: Simplify feature texture definition.
donmccurdy d9b885b
EXT_feature_metadata: featureIds refactor
donmccurdy 26cc187
EXT_feature_metadata: Updates for primitive extension schema.
donmccurdy e2168e4
typo fix
donmccurdy 1295794
EXT_feature_metadata: Add 'featureTables' to node extension.
donmccurdy ee07bc4
EXT_feature_metadata: Fix typo in feature texture example.
donmccurdy 7613375
EXT_feature_metadata: Clarify channel index numbering and required pr…
donmccurdy 8693fbc
EXT_feature_metadata: Use disjoint enums for 'type' and 'componentType'.
donmccurdy 903c85d
EXT_feature_metadata: Clarify VECN and MATN dimensions.
donmccurdy 061cd61
Merge pull request #15 from donmccurdy/ext-feature-metadata-v2.2
ptrgags 02d1ca5
Merge pull request #14 from donmccurdy/ext-feature-metadata-v2.1
ptrgags 602985d
EXT_feature_metadata: Add 'noData' property.
donmccurdy 36b9f4a
EXT_feature_metadata: Allow feature IDs outside [0, count - 1] as no-…
donmccurdy 55d327c
EXT_feature_metadata: Disallow NaN, +Inf, -Inf.
donmccurdy b5a3262
EXT_feature_metadata: Clarify ENUM noData values.
donmccurdy e2a3f58
EXT_feature_metadata: Apply wording feedback.
donmccurdy 7833833
EXT_feature_metadata: Clarify 'noData' length requirements.
donmccurdy b366af7
EXT_feature_metadata: Add 'required' boolean.
donmccurdy d6da3e9
EXT_feature_metadata: Wording & clarity in class.property schema file.
donmccurdy b3ac63c
Merge pull request #16 from donmccurdy/ext-feature-metadata-v2.3
ptrgags 3b49b24
EXT_feature_metadata: featureTables/featureTextures --> propertyTable…
donmccurdy fb17e9b
EXT_feature_metadata: Remove unneeded disambiguation.
donmccurdy 36ceb70
Merge pull request #17 from donmccurdy/ext-feature-metadata-v2.4
ptrgags a648ac8
Rename EXT_feature_metadata → EXT_mesh_features
donmccurdy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file added
BIN
+96.7 KB
extensions/2.0/Vendor/EXT_mesh_features/figures/building-components.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+107 KB
extensions/2.0/Vendor/EXT_mesh_features/figures/feature-id-texture.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+31.3 KB
extensions/2.0/Vendor/EXT_mesh_features/figures/feature-table-buildings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+53 KB
extensions/2.0/Vendor/EXT_mesh_features/figures/implicit-feature-ids.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+37.9 KB
extensions/2.0/Vendor/EXT_mesh_features/figures/material-classification.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+60.8 KB
extensions/2.0/Vendor/EXT_mesh_features/figures/multi-instance-metadata.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+83.7 KB
extensions/2.0/Vendor/EXT_mesh_features/figures/per-node-metadata.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+85.9 KB
extensions/2.0/Vendor/EXT_mesh_features/figures/per-triangle-metadata.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+64.9 KB
extensions/2.0/Vendor/EXT_mesh_features/figures/per-vertex-metadata.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+465 KB
extensions/2.0/Vendor/EXT_mesh_features/figures/point-cloud-layers.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
108 changes: 108 additions & 0 deletions
108
extensions/2.0/Vendor/EXT_mesh_features/schema/class.property.schema.json
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,108 @@ | ||
| { | ||
| "$schema": "http://json-schema.org/draft-04/schema", | ||
| "title": "Class property", | ||
| "type": "object", | ||
| "description": "A class property.", | ||
| "properties": { | ||
| "name": { | ||
| "type": "string", | ||
| "minLength": 1, | ||
| "description": "The name of the property, e.g. for display purposes." | ||
| }, | ||
| "description": { | ||
| "type": "string", | ||
| "minLength": 1, | ||
| "description": "The description of the property." | ||
| }, | ||
| "type": { | ||
| "type": "string", | ||
| "enum": [ | ||
| "SINGLE", | ||
| "VEC2", | ||
| "VEC3", | ||
| "VEC4", | ||
| "MAT2", | ||
| "MAT3", | ||
| "MAT4", | ||
| "ARRAY" | ||
| ], | ||
| "default": "SINGLE", | ||
| "description": "Element type represented by each property value. `VECN` is a vector with `N` components. `MATN` is an `N ⨉ N` matrix. `ARRAY` is fixed-length when `componentCount` is defined, and is variable-length otherwise." | ||
| }, | ||
| "enumType": { | ||
| "type": "string", | ||
| "description": "Enum ID as declared in the `enums` dictionary. Required when `componentType` is `ENUM`." | ||
| }, | ||
| "componentType": { | ||
| "enum": [ | ||
| "INT8", | ||
| "UINT8", | ||
| "INT16", | ||
| "UINT16", | ||
| "INT32", | ||
| "UINT32", | ||
| "INT64", | ||
| "UINT64", | ||
| "FLOAT32", | ||
| "FLOAT64", | ||
| "BOOLEAN", | ||
| "STRING", | ||
| "ENUM" | ||
| ], | ||
| "description": "Data type of an element's components. When `type` is `SINGLE`, then `componentType` is also the data type of the element. When `componentType` is `ENUM`, `enumType` is required." | ||
| }, | ||
| "componentCount": { | ||
| "type": "integer", | ||
| "minimum": 2, | ||
| "description": "Number of components per element for fixed-length `ARRAY` elements. Always undefined for variable-length `ARRAY` and all other element types." | ||
| }, | ||
| "normalized": { | ||
| "type": "boolean", | ||
| "description": "Specifies whether integer values are normalized. This applies both when `type` is an integer type, or when `type` is `ARRAY` with a `componentType` that is an integer type. For unsigned integer types, values are normalized between `[0.0, 1.0]`. For signed integer types, values are normalized between `[-1.0, 1.0]`. For all other types, this property is ignored.", | ||
| "default": false | ||
| }, | ||
| "max": { | ||
| "oneOf": [ | ||
| {"type": "number"}, | ||
| {"type": "array", "items": {"type": "number"}, "minItems": 1} | ||
| ], | ||
| "description": "Maximum allowed value for the property. Only applicable for single-value numeric types, fixed-length arrays of numeric types, and `VECN` types. For single-value numeric types this is a single number. For fixed-length arrays and `VECN`, the maximum is an array with the same number of elements. The `normalized` property has no effect on the maximum, which always contains integer values." | ||
| }, | ||
| "min": { | ||
| "oneOf": [ | ||
| {"type": "number"}, | ||
| {"type": "array", "items": {"type": "number"}, "minItems": 1} | ||
| ], | ||
| "description": "Minimum allowed value for the property. Only applicable for single-value numeric types, fixed-length arrays of numeric types, and `VECN` types. For single-value numeric types this is a single number. For fixed-length arrays and `VECN`, the minimum is an array with the same number of elements. The `normalized` property has no effect on the minimum, which always contains integer values." | ||
| }, | ||
| "required": { | ||
| "type": "boolean", | ||
| "description": "If required, the property must be present for every feature of its class. If not required, individual features may include `noData` values, or the entire property may be omitted from a property table or texture. As a result, `noData` has no effect on a required property. Client implementations may use required properties to make performance optimizations.", | ||
| "default": false | ||
| }, | ||
| "noData": { | ||
| "oneOf": [ | ||
| {"type": "number"}, | ||
| {"type": "string"}, | ||
| {"type": "array", "items": {"type": "number"}, "minItems": 1}, | ||
| {"type": "array", "items": {"type": "string"}, "minItems": 1} | ||
| ], | ||
| "description": "A `noData` value represents missing data — also known as a sentinel value — wherever it appears. If omitted (excluding variable-length `ARRAY` properties), property values exist for all features, and the property is required in property tables or textures instantiating the class. For variable-length `ARRAY` elements, `noData` is implicitly `[]` and the property is never required; an additional `noData` array, such as `[\"UNSPECIFIED\"]`, may be provided if necessary. For fixed-length `ARRAY` properties, `noData` must be an array of length `componentCount`. For `VECN` properties, `noData` must be an array of length `N`. For `MATN` propperties, `noData` must be an array of length `N²`. `BOOLEAN` properties may not specify `noData` values. `ENUM` `noData` values must be a valid item name, not an integer value." | ||
| }, | ||
| "semantic": { | ||
| "type": "string", | ||
| "minLength": 1, | ||
| "description": "An identifier that describes how this property should be interpreted. The semantic cannot be used by other properties in the class." | ||
| }, | ||
| "extensions": {}, | ||
| "extras": {} | ||
| }, | ||
| "dependencies": { | ||
| "componentCount": [ | ||
| "type" | ||
| ] | ||
| }, | ||
| "required": [ | ||
| "componentType" | ||
| ] | ||
| } |
28 changes: 28 additions & 0 deletions
28
extensions/2.0/Vendor/EXT_mesh_features/schema/class.schema.json
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| { | ||
| "$schema": "http://json-schema.org/draft-04/schema", | ||
| "title": "Class", | ||
| "type": "object", | ||
| "description": "A class containing a set of properties.", | ||
| "properties": { | ||
| "name": { | ||
| "type": "string", | ||
| "minLength": 1, | ||
| "description": "The name of the class, e.g. for display purposes." | ||
| }, | ||
| "description": { | ||
| "type": "string", | ||
| "minLength": 1, | ||
| "description": "The description of the class." | ||
| }, | ||
| "properties": { | ||
| "type": "object", | ||
| "description": "A dictionary, where each key is a property ID and each value is an object defining the property.", | ||
| "minProperties": 1, | ||
| "additionalProperties": { | ||
| "$ref": "class.property.schema.json" | ||
| } | ||
| }, | ||
| "extensions": {}, | ||
| "extras": {} | ||
| } | ||
| } |
46 changes: 46 additions & 0 deletions
46
extensions/2.0/Vendor/EXT_mesh_features/schema/enum.schema.json
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| { | ||
| "$schema": "http://json-schema.org/draft-04/schema", | ||
| "title": "Enum", | ||
| "type": "object", | ||
| "description": "An object defining the values of an enum.", | ||
| "properties": { | ||
| "name": { | ||
| "type": "string", | ||
| "minLength": 1, | ||
| "description": "The name of the enum, e.g. for display purposes." | ||
| }, | ||
| "description": { | ||
| "type": "string", | ||
| "minLength": 1, | ||
| "description": "The description of the enum." | ||
| }, | ||
| "valueType": { | ||
| "type": "string", | ||
| "default": "UINT16", | ||
| "enum": [ | ||
| "INT8", | ||
| "UINT8", | ||
| "INT16", | ||
| "UINT16", | ||
| "INT32", | ||
| "UINT32", | ||
| "INT64", | ||
| "UINT64" | ||
| ], | ||
| "description": "The type of the integer enum value." | ||
| }, | ||
| "values": { | ||
| "type": "array", | ||
| "description": "An array of enum values. Duplicate names or duplicate integer values are not allowed.", | ||
| "items": { | ||
| "$ref": "enum.value.schema.json" | ||
| }, | ||
| "minItems": 1 | ||
| }, | ||
| "extensions": {}, | ||
| "extras": {} | ||
| }, | ||
| "required": [ | ||
| "values" | ||
| ] | ||
| } |
28 changes: 28 additions & 0 deletions
28
extensions/2.0/Vendor/EXT_mesh_features/schema/enum.value.schema.json
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| { | ||
| "$schema": "http://json-schema.org/draft-04/schema", | ||
| "title": "Enum value", | ||
| "type": "object", | ||
| "description": "An enum value.", | ||
| "properties": { | ||
| "name": { | ||
| "type": "string", | ||
| "minLength": 1, | ||
| "description": "The name of the enum value." | ||
| }, | ||
| "description": { | ||
| "type": "string", | ||
| "minLength": 1, | ||
| "description": "The description of the enum value." | ||
| }, | ||
| "value": { | ||
| "type": "integer", | ||
| "description": "The integer enum value." | ||
| }, | ||
| "extensions": {}, | ||
| "extras": {} | ||
| }, | ||
| "required": [ | ||
| "name", | ||
| "value" | ||
| ] | ||
| } |
42 changes: 42 additions & 0 deletions
42
extensions/2.0/Vendor/EXT_mesh_features/schema/featureIdAttribute.schema.json
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| { | ||
| "$schema": "http://json-schema.org/draft-04/schema", | ||
| "title": "Feature IDs", | ||
| "type": "object", | ||
| "description": "Feature IDs to be used as indices to property arrays in the property table.", | ||
| "properties": { | ||
| "attribute": { | ||
| "type": "string", | ||
| "pattern": "^FEATURE_ID_([1-9]\\d*|0)$", | ||
| "description": "The name of the attribute containing feature IDs." | ||
| }, | ||
| "offset": { | ||
| "type": "integer", | ||
| "minimum": 0, | ||
| "default": 0, | ||
| "description": "Initial value for an implicit feature ID range." | ||
| }, | ||
| "repeat": { | ||
| "type": "integer", | ||
| "minimum": 1, | ||
| "description": "Number of vertices for which to repeat each feature ID before incrementing the ID by 1. If `repeat` is undefined, the feature ID for all vertices is `offset`." | ||
| }, | ||
| "extensions": {}, | ||
| "extras": {} | ||
| }, | ||
| "not": { | ||
| "anyOf": [ | ||
| { | ||
| "required": [ | ||
| "attribute", | ||
| "offset" | ||
| ] | ||
| }, | ||
| { | ||
| "required": [ | ||
| "attribute", | ||
| "repeat" | ||
| ] | ||
| } | ||
| ] | ||
| } | ||
| } |
26 changes: 26 additions & 0 deletions
26
extensions/2.0/Vendor/EXT_mesh_features/schema/featureIdTexture.schema.json
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| { | ||
| "$schema": "http://json-schema.org/draft-04/schema", | ||
| "title": "Feature ID Texture", | ||
| "type": "object", | ||
| "allOf": [ { "$ref": "textureInfo.schema.json" } ], | ||
| "description": "An object describing a texture used for storing per-texel feature IDs.", | ||
| "properties": { | ||
| "index": { }, | ||
| "texCoord": { }, | ||
| "propertyTable": { | ||
| "type": "string", | ||
| "description": "The ID of the property table in the model's root `EXT_mesh_features.propertyTables` dictionary." | ||
| }, | ||
| "channel": { | ||
| "type": "integer", | ||
| "minimum": 0, | ||
| "description": "Single channel index storing per-texel feature IDs." | ||
| }, | ||
| "extensions": {}, | ||
| "extras": {} | ||
| }, | ||
| "required": [ | ||
| "propertyTable", | ||
| "channel" | ||
| ] | ||
| } |
35 changes: 35 additions & 0 deletions
35
extensions/2.0/Vendor/EXT_mesh_features/schema/gltf.EXT_feature_metadata.schema.json
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| { | ||
| "$schema": "http://json-schema.org/draft-04/schema", | ||
| "title": "EXT_mesh_features glTF extension", | ||
| "type": "object", | ||
| "description": "glTF extension that assigns metadata to features in a model.", | ||
| "properties": { | ||
| "schema": { | ||
| "allOf": [ { "$ref": "schema.schema.json" } ], | ||
| "description": "An object defining classes and enums." | ||
| }, | ||
| "schemaUri": { | ||
| "type": "string", | ||
| "description": "A uri to an external schema file.", | ||
| "format": "uriref" | ||
| }, | ||
| "propertyTables": { | ||
| "type": "object", | ||
| "description": "A dictionary, where each key is a property table ID and each value is an object defining the property table.", | ||
| "minProperties": 1, | ||
| "additionalProperties": { | ||
| "$ref": "propertyTable.schema.json" | ||
| } | ||
| }, | ||
| "propertyTextures": { | ||
| "type": "object", | ||
| "description": "A dictionary, where each key is a property texture ID and each value is an object defining the property texture.", | ||
| "minProperties": 1, | ||
| "additionalProperties": { | ||
| "$ref": "propertyTexture.schema.json" | ||
| } | ||
| }, | ||
| "extensions": {}, | ||
| "extras": {} | ||
| } | ||
| } |
25 changes: 25 additions & 0 deletions
25
extensions/2.0/Vendor/EXT_mesh_features/schema/node.EXT_feature_metadata.schema.json
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| { | ||
| "$schema": "http://json-schema.org/draft-04/schema", | ||
| "title": "EXT_mesh_features extension for EXT_mesh_gpu_instancing", | ||
| "type": "object", | ||
| "description": "An object describing per-instance feature IDs to be used as indices to property arrays in the property table.", | ||
| "properties": { | ||
| "featureIds": { | ||
| "type": "array", | ||
| "description": "", | ||
| "items": {"$ref": "featureIdAttribute.schema.json"}, | ||
| "minItems": 1 | ||
| }, | ||
| "propertyTables": { | ||
| "type": "array", | ||
| "description": "An array of IDs of property tables from the root `EXT_mesh_features` object.", | ||
| "items": { | ||
| "allOf": [ {"$ref": "glTFid.schema.json" } ] | ||
| }, | ||
| "minItems": 1 | ||
| }, | ||
| "extensions": {}, | ||
| "extras": {} | ||
| }, | ||
| "required": ["featureIds"] | ||
| } |
50 changes: 50 additions & 0 deletions
50
extensions/2.0/Vendor/EXT_mesh_features/schema/primitive.EXT_feature_metadata.schema.json
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
| { | ||
| "$schema": "http://json-schema.org/draft-04/schema", | ||
| "title": "EXT_mesh_features glTF Primitive extension", | ||
| "type": "object", | ||
| "description": "`EXT_mesh_features extension` for a primitive in a glTF model, to associate it with the root `EXT_mesh_features` object.", | ||
| "properties": { | ||
| "featureIds": { | ||
| "type": "array", | ||
| "description": "", | ||
| "items": { | ||
| "oneOf": [ | ||
| {"$ref": "featureIdAttribute.schema.json"}, | ||
| {"$ref": "featureIdTexture.schema.json"} | ||
| ] | ||
| }, | ||
| "minItems": 1 | ||
| }, | ||
| "propertyTables": { | ||
| "type": "array", | ||
| "description": "An array of IDs of property tables from the root `EXT_mesh_features` object.", | ||
| "items": { | ||
| "allOf": [ {"$ref": "glTFid.schema.json" } ] | ||
| }, | ||
| "minItems": 1 | ||
| }, | ||
| "propertyTextures": { | ||
| "type": "array", | ||
| "description": "An array of IDs of property textures from the root `EXT_mesh_features` object.", | ||
| "items": { | ||
| "allOf": [ {"$ref": "glTFid.schema.json" } ] | ||
| }, | ||
| "minItems": 1 | ||
| }, | ||
| "extensions": {}, | ||
| "extras": {} | ||
| }, | ||
| "anyOf": [ | ||
| { | ||
| "required": [ | ||
| "featureIds", | ||
| "propertyTables" | ||
| ] | ||
| }, | ||
| { | ||
| "required": [ | ||
| "propertyTextures" | ||
| ] | ||
| } | ||
| ] | ||
| } | ||
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make sure to update the filename of the JSON file, it still uses
EXT_feature_metadata. There are a couple other files like this.