Skip to content

Commit

Permalink
Wetzel output revisions
Browse files Browse the repository at this point in the history
  • Loading branch information
lilleyse committed Feb 24, 2021
1 parent 3f4c417 commit 922eda1
Show file tree
Hide file tree
Showing 10 changed files with 451 additions and 548 deletions.
910 changes: 400 additions & 510 deletions extensions/2.0/Vendor/EXT_feature_metadata/1.0.0/README.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
},
"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.",
"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": {
Expand All @@ -87,7 +87,7 @@
"string",
"array"
],
"description": "A default value to use when the property value is not defined. If used, `optional` must be set to true. The type of the default value must match the property definition: For `BOOLEAN` use `true` or `false`. For `STRING` use a JSON string. For an integer or floating point number use a JSON number. For `ENUM` use the enum `name`, not the integer value. For `ARRAY` use a JSON array containing values matching the `componentType`."
"description": "A default value to use when the property value is not defined. If used, `optional` must be set to true. The type of the default value must match the property definition: For `BOOLEAN` use `true` or `false`. For `STRING` use a JSON string. For a numeric type use a JSON number. For `ENUM` use the enum `name`, not the integer value. For `ARRAY` use a JSON array containing values matching the `componentType`."
},
"optional": {
"type": "boolean",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"$schema": "http://json-schema.org/draft-04/schema",
"title": "Enum value",
"type": "object",
"description": "The enum value.",
"description": "An enum value.",
"properties": {
"name": {
"type": "string",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{
"$schema": "http://json-schema.org/draft-04/schema",
"title": "Primitive feature mapping",
"title": "Feature ID Attribute",
"type": "object",
"description": "An object mapping per-vertex feature IDs to a feature table.",
"description": "An object mapping feature IDs to a feature table.",
"properties": {
"featureTable": {
"type": "string",
"description": "The ID of the feature table in the model's root `EXT_feature_metadata.featureTables` dictionary."
},
"featureIds": {
"allOf": [ { "$ref": "featureIdAttribute.featureIds.schema.json" } ],
"description": "An object describing per-vertex feature IDs to be used as indices to property arrays in the feature table. Feature IDs must be whole numbers in the range `[0, count - 1]` (inclusive), where `count` is the total number of elements in each property array."
"description": "An object describing feature IDs to be used as indices to property arrays in the feature table. Feature IDs must be whole numbers in the range `[0, count - 1]` (inclusive), where `count` is the total number of features in the feature table."
},
"extensions": {},
"extras": {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
"featureIds": {
"allOf": [ { "$ref": "textureAccessor.schema.json" } ],
"description": "A description of the texture and channel to use for feature IDs. The `channels` property must have a single channel. Furthermore, feature IDs must be whole numbers in the range `[0, count - 1]` (inclusive), where `count` is the total number of elements in each property array. Texel values must not be normalized. Texture filtering should be disabled when fetching feature IDs."
"description": "A description of the texture and channel to use for feature IDs. The `channels` property must have a single channel. Furthermore, feature IDs must be whole numbers in the range `[0, count - 1]` (inclusive), where `count` is the total number of features in the feature table. Texel values must not be normalized. Texture filtering should be disabled when fetching feature IDs."
},
"extensions": {},
"extras": {}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"$schema": "http://json-schema.org/draft-04/schema",
"title": "Property Values",
"title": "Feature Table Property",
"type": "object",
"description": "An array of binary property values.",
"properties": {
"bufferView": {
"allOf": [ { "$ref": "glTFid.schema.json" } ],
"description": "The index of the buffer view containing property values. The data type of property values is determined by the property definition: When `type` is `BOOLEAN` values are packed into a bitfield. When `type` is `STRING` values are stored as byte sequences and decoded as UTF-8 strings. When `type` is a numeric type values are stored as the provided `type`. When `type` is `ENUM` values are stored as the enum's `valueType`. When `type` is `ARRAY` elements are packed tightly together and the data type is based on the `componentType` following the same rules as above. Note that `arrayOffsetBufferView` is required for variable-size arrays and `stringOffsetBufferView` is required for strings (for variable-length arrays of strings, both are required). The buffer view must be aligned to a multiple of 8 bytes. For a GLB file, this is measured relative to the beginning of the file. For a glTF + BIN file, this is relative to the beginning of the BIN file."
"description": "The index of the buffer view containing property values. The data type of property values is determined by the property definition: When `type` is `BOOLEAN` values are packed into a bitfield. When `type` is `STRING` values are stored as byte sequences and decoded as UTF-8 strings. When `type` is a numeric type values are stored as the provided `type`. When `type` is `ENUM` values are stored as the enum's `valueType`. When `type` is `ARRAY` elements are packed tightly together and the data type is based on the `componentType` following the same rules as above. Note that `arrayOffsetBufferView` is required for variable-size arrays and `stringOffsetBufferView` is required for strings (for variable-length arrays of strings, both are required). The buffer view must be aligned to a multiple of 8 bytes. If the buffer view's `buffer` is the GLB-stored `BIN` chunk the byte offset is measured relative to the beginning of the GLB. Otherwise it is measured relative to the beginning of the buffer."
},
"offsetType": {
"type": "string",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"$schema": "http://json-schema.org/draft-04/schema",
"title": "EXT_feature_metadata glTF Primitive extension",
"type": "object",
"description": "EXT_feature_metadata extension for a primitive in a glTF model, to associate it with the root `EXT_feature_metadata` object.",
"description": "`EXT_feature_metadata extension` for a primitive in a glTF model, to associate it with the root `EXT_feature_metadata` object.",
"properties": {
"featureIdAttributes": {
"type": "array",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,32 +5,53 @@
"description": "Statistics about property values.",
"properties": {
"min": {
"allOf": [ { "$ref": "statistics.class.property.values.schema.json" } ],
"description": "The minimum property value."
"type": [
"number",
"array"
],
"description": "The minimum property value. Only applicable for numeric types and fixed-length arrays of numeric types. For numeric types this is a single number. For fixed-length arrays this is an array with `componentCount` number of elements. `normalized` property has no effect on these values."
},
"max": {
"allOf": [ { "$ref": "statistics.class.property.values.schema.json" } ],
"description": "The maximum property value."
"type": [
"number",
"array"
],
"description": "The maximum property value. Only applicable for numeric types and fixed-length arrays of numeric types. For numeric types this is a single number. For fixed-length arrays this is an array with `componentCount` number of elements. `normalized` property has no effect on these values."
},
"mean": {
"allOf": [ { "$ref": "statistics.class.property.values.schema.json" } ],
"description": "The arithmetic mean of the property values."
"type": [
"number",
"array"
],
"description": "The arithmetic mean of the property values. Only applicable for numeric types and fixed-length arrays of numeric types. For numeric types this is a single number. For fixed-length arrays this is an array with `componentCount` number of elements. `normalized` property has no effect on these values."
},
"median": {
"allOf": [ { "$ref": "statistics.class.property.values.schema.json" } ],
"description": "The median of the property values."
"type": [
"number",
"array"
],
"description": "The median of the property values. Only applicable for numeric types and fixed-length arrays of numeric types. For numeric types this is a single number. For fixed-length arrays this is an array with `componentCount` number of elements. `normalized` property has no effect on these values."
},
"standardDeviation": {
"allOf": [ { "$ref": "statistics.class.property.values.schema.json" } ],
"description": "The standard deviation of the property values."
"type": [
"number",
"array"
],
"description": "The standard deviation of the property values. Only applicable for numeric types and fixed-length arrays of numeric types. For numeric types this is a single number. For fixed-length arrays this is an array with `componentCount` number of elements. `normalized` property has no effect on these values."
},
"variance": {
"allOf": [ { "$ref": "statistics.class.property.values.schema.json" } ],
"description": "The variance of the property values."
"type": [
"number",
"array"
],
"description": "The variance of the property values. Only applicable for numeric types and fixed-length arrays of numeric types. For numeric types this is a single number. For fixed-length arrays this is an array with `componentCount` number of elements. `normalized` property has no effect on these values."
},
"sum": {
"allOf": [ { "$ref": "statistics.class.property.values.schema.json" } ],
"description": "The sum of the property values."
"type": [
"number",
"array"
],
"description": "The sum of the property values. Only applicable for numeric types and fixed-length arrays of numeric types. For numeric types this is a single number. For fixed-length arrays this is an array with `componentCount` number of elements. `normalized` property has no effect on these values."
},
"occurrences": {
"type": "object",
Expand All @@ -43,9 +64,6 @@
]
}
},
"additionalProperties": {
"description": "Additional application-specific statistics."
},
"extensions": {},
"extras": {}
}
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,17 @@
"channels": {
"type": "string",
"pattern": "^[rgba]{1,4}$",
"description": "Texture channels containing property values according. Channels are labeled by `rgba` and are swizzled with a string of 1-4 characters."
"description": "Texture channels containing property values. Channels are labeled by `rgba` and are swizzled with a string of 1-4 characters."
},
"texture": {
"allOf": [ { "$ref": "textureInfo.schema.json" } ],
"description": "The glTF texture and texture coordinates to use."
},
"extensions": {},
"extras": {}
}
},
"required": [
"channels",
"texture"
]
}

0 comments on commit 922eda1

Please sign in to comment.