Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
261 changes: 261 additions & 0 deletions extensions/2.0/Vendor/MPEG_anchor/README.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
{
"$schema" : "http://json-schema.org/draft-07/schema",
"title": "MPEG_anchor.anchor.schema.json",
"type": "object",
"description": "Anchor schema",
"properties": {
"trackable": {
"description": "Index of the trackable in the trackables array that will be used for this anchor",
"type": "integer"
},
"requiresAnchoring": {
"description": "Indicates if AR anchoring is required for the rendering of the associated nodes. If TRUE, the application shall skip the virtual assets attached to this anchor until the pose of this anchor in the real world is known. if FALSE, the application shall process the virtual assets attached to this anchor",
"type": "boolean"
},
"minimumRequiredSpace": {
"description": "Space required to anchor the AR asset (width, heigh, depth in meters). This space corresponds to an axis-aligned bounding box placed at the origine of the trackable local space. Width is aligned with x axis, height with y axis and depth with z axis, expressed in trackable local space. This value shall be compared to the bounding box of the real-world available space associated with the trackable as estimated by the XR runtime.",
"type": "array",
"items": {
"type": "number"
},
"default": [
0, 0, 0
],
"minItems": 3,
"maxItems": 3
},
"aligned": {
"type": "integer",
"enum": [
0, 1, 2
],
"default": 0,
"description": "If ALIGNED_SCALED is set, the bounding box of the virtual assets attached to that anchor is aligned and scaled to match the bounding box of the real available space determined by the application.",
"gltf_detailedDescription":"Value is oneOf NOT_USED=0, ALIGNED_NOTSCALED=1, ALIGNED_SCALED=2."
},
"actions": {
"description": "Indices of the actions in the actions array of the interactivity extension to be executed once the pose of this anchor is determined. An example is a setTransform action to place the virtual assets attached to that anchor.",
"type": "array",
"items": {
"type": "integer"
}
},
"light": {
"description": "Reference to an item in the lights array of the MPEG_lights_video_based extension.",
"type": "integer"
},
"recommendedSpatialComputingConfig":{
"description": "Set of recommended parameters specifying the needed spatial description. ",
"type" :"object",
"$ref": "MPEG_recommendedSpatialComputingConfig.schema.json"
},
"extensions": {},
"extras": {}
},
"allOf": [{ "$ref" : "glTFProperty.schema.json" }],
"required": [
"trackable",
"requiresAnchoring"
]
}
13 changes: 13 additions & 0 deletions extensions/2.0/Vendor/MPEG_anchor/schema/MPEG_anchor.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"$schema" : "http://json-schema.org/draft-07/schema",
"title": "MPEG_anchor.schema.json",
"type": "object",
"description": "anchor object schema",
"properties": {
"anchor": {
"type": "integer",
"description": "Reference to an item in the anchors array of the MPEG_anchor root level extension."
}
},
"required": ["anchor"]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
{
"$schema" : "http://json-schema.org/draft-07/schema",
"title": "MPEG_anchor.trackable.schema.json",
"type": "object",
"description": "Trackable schema",
"properties": {
"type": {
"type": "integer",
"enum": [ 0, 1, 2, 3, 4, 5, 6, 7],
"description": "Type of the trackable",
"gltf_detailedDescription":"Value is oneOf TRACKABLE_FLOOR=0, TRACKABLE_VIEWER=1, TRACKABLE_CONTROLLER=2, TRACKABLE_PLANE=3, TRACKABLE_MARKER_2D=4, TRACKABLE_MARKER_3D=5, TRACKABLE_MARKER_GEO=6, TRACKABLE_APPLICATION=7"
},
"path": {
"type": "string",
"description":"Path that describes the action space "
},
"geometricConstraint": {
"type": "integer",
"enum": [0, 1],
"description": "GeometricConstraint flag",
"gltf_detailedDescription":"Value is oneOf HORIZONTAL_PLANE=0, VERTICAL_PLANE=1"
},
"markerNode": {
"type": "integer",
"description": "Index to the node in the nodes array in which the marker geometry and texture are described"
},
"coordinate": {
"type": "array",
"items": { "type":"number"},
"minItems": 3,
"maxItems": 3,
"description": "Array of 3 float numbers giving the longitude, the latitude, and the elevation of the geolocation of the center, that shall be as specified in [GeoJSON] for the point geometry type. ",
"gltf_detailedDescription":"The longitude in units of decimal degrees. The value is in range of −180.0 to 180.0, inclusive. Positive values represent eastern longitude and negative values represent western longitude. the latitude in units of decimal degrees. The value is in range of −90.0 to 90.0, inclusive. Positive value represents northern latitude and negative value represents southern latitude. the elevation is in units of meters above the WGS 84 reference ellipsoid."
},
"trackableId": {
"type": "string",
"description": "An application-defined trackable id, that is known to the application."
}
},
"allOf": [
{
"if": {
"properties": {
"type" : {"const": 2,"description":"TRACKABLE_CONTROLLER"}
}
},
"then": { "required": ["path"] }
},
{
"if": {
"properties": {
"type" : {"const": 3,"description":"TRACKABLE_PLANE"}
}
},
"then": { "required": ["geometricConstraint"] }
},
{
"if": {
"properties": {
"type" : {"const": 4,"description":"TRACKABLE_MARKER_2D"}
}
},
"then": { "required": ["markerNode"] }
},
{
"if": {
"properties": {
"type" : {"const": 5,"description":"TRACKABLE_MARKER_3D"}
}
},
"then": { "required": ["markerNode"] }
},
{
"if": {
"properties": {
"type" : {"const": 6,"description":"TRACKABLE_MARKER_GEO"}
}
},
"then": { "required": ["geoCoordinate"] }
},
{
"if": {
"properties": {
"type" : {"const": 7,"description":"TRACKABLE_APPLICATION"}
}
},
"then": { "required": ["trackableId"] }
}
],
"required": ["type"]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"$schema" : "http://json-schema.org/draft-07/schema",
"title": "MPEG_recommendedspatialcomputingconfig.scanDetails.schema.json",
"type": "object",
"description": "The required level of detail for the mesh",
"properties": {
"primitivesNumber": {
"description": "The quantity of geometric primitives per m3",
"type": "number"
},
"textureOption": {
"description": "The resolution of the texture of textured mesh..",
"type": "integer",
"enum": [
0, 1, 2
],
"default": 0,
"gltf_detailedDescription":"Value is oneOf R512x512=0, R1024x1024=1, R2048x2048=1."
},
"extensions": {},
"extras": {}
},
"allOf": [{ "$ref" : "glTFProperty.schema.json" }],
"required": []
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
{
"$schema" : "http://json-schema.org/draft-07/schema",
"title": "MPEG_recommendedspatialcomputingconfig.scanVolume.schema.json",
"type": "object",
"description": "The bounding volume used to defined the scan volume",
"properties": {
"type": {
"description": "The type of bounding volume",
"type": "integer",
"enum": [
0, 1, 2
],
"default": 0,
"gltf_detailedDescription":"Value is oneOf SPHERE=0, BOX=1, FRUSTUM=2."
},
"center": {
"description":"3D coordinate of the center of the sphere." ,
"type": "array",
"items": {
"type": "number"
},
"default": [
0, 0, 0
],
"minItems": 3,
"maxItems": 3
},
"radius": {
"description":"Radius of the sphere in meters.." ,
"type": "number"
},
"pose": {
"type":"array",
"items":{ "type":"number"},
"minItems": 16,
"maxitem": 16,
"description":"4x4 matrix representing the center position and orientation of the bounding volume."
},
"extents" : {
"type":"array",
"items":{ "type":"number"},
"minItems": 3,
"maxitem": 3,
"description":"Edge-to-edge length of the box along each dimension."
},
"fov": {
"description": "Angles of the four sides of the frustum",
"type": "array",
"items":{ "type":"number"},
"minItems": 4,
"maxitem": 4
},
"far": {
"description": "Positive distance of the far plane of the frustum",
"type": "number"
},
"near": {
"description": "Positive distance of the near plane of the frustum",
"type": "number"
},
"extensions": {},
"extras": {}
},
"allOf": [{ "$ref" : "glTFProperty.schema.json" }],
"required": []
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
{
"$schema" : "http://json-schema.org/draft-07/schema",
"title": "MPEG_recommendedspatialcomputingconfig.schema.json",
"type": "object",
"description": "Recommendedspatialcomputingconfig schema",
"properties": {
"scanOptions": {
"description": "Array of options (enumeration) for the scan computation",
"type": "array",
"items": {
"type": "integer",
"enum": [
0, 1, 2, 3, 4, 5, 6
],
"default": 0,
"description": "Type of the Mesh",
"gltf_detailedDescription":"Value is oneOf PLANE=0, PLANAR_MESH=1, VISUAL_MESH=2, COLLIDER_MESH=3, FREE_VOLUME=4, BOUNDING_BOX=5, TEXTURED_MESH=6."
}
},
"scanDetails": {
"description": "The required level of detail for the mesh",
"type": "object",
"$ref": "MPEG_recommendedSpatialComputingConfig.scanDetails.schema.json"
},
"scanUpdate": {
"description": "Specifies the frequency at which the spatial description must be updated.",
"type": "object",
"$ref": "MPEG_recommendedSpatialComputingConfig.update.schema.json"
},
"scanVolumes": {
"description": "Array of bounding volumes that determine the spaces where scanned objects must be provided. Real scan objects that intersect one or more of the bounding volumes should be provided, and all other objects ignored. ",
"type": "array",
"items": {
"type": "object",
"$ref": "MPEG_recommendedSpatialComputingConfig.scanVolume.schema.json"
}
},
"realSemantic": {
"description": "Semantic descriptions of nodes that are needed.",
"type": "array",
"items": {
"type": "string",
"gltf_detailedDescription":"Value is a string, for instance table, room, chair, wall, light, freespace ... )."
}
},
"lightOptions": {
"description": "Array of option (enumeration) for the light extraction.",
"type": "array",
"items": {
"type": "integer",
"enum": [
0, 1, 2, 3, 4
],
"default": 0,
"gltf_detailedDescription":"Value is oneOf DIRECTIONAL_LIGHT =0, ENV_LIGHT=1, POINT_LIGHT=2, SPOT_LIGHT=3, AREA_LIGHT=4."
}
},
"lightUpdate": {
"description": "Specifies the frequency at which the extraction of real light must be updated.",
"type": "object",
"$ref": "MPEG_recommendedSpatialComputingConfig.update.schema.json"
},
"extensions": {},
"extras": {}
},
"allOf": [{ "$ref" : "glTFProperty.schema.json" }],
"required": []
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"$schema" : "http://json-schema.org/draft-07/schema",
"title": "MPEG_recommendedspatialcomputingconfig.update.schema.json",
"type": "object",
"description": "Specifies the frequency of the update process.",
"properties": {
"occurences": {
"description": "An occurrence value: - ONCE = 0: the update is performed only once, for instance in case of a static real scene, -N_FRAME: the update is performed periodically, every N rendering frames, N depending on the dynamism of the real scene. The N value is provided in the frameNumber parameter. -AUTO: the update frequency is managed by the module that compute the representation. This module may perform an analysis to detect significant changes in the real world and start an update. This analysis may be performed from raw images data, like RGB images from a camera or depth images from a depth sensor.",
"type": "integer",
"enum": [
0, 1, 2
],
"default": 0,
"gltf_detailedDescription":"Value is oneOf ONCE=0, N_FRAME=1, AUTO=2."
},
"numberOfFrames": {
"description": "Indicate the periodicity, in number of frames, of the update, when the occurrences value is N_FRAME.",
"type": "number"
},
"extensions": {},
"extras": {}
},
"allOf": [{ "$ref" : "glTFProperty.schema.json" }],
"required": []
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"$schema" : "http://json-schema.org/draft-07/schema",
"title": "glTF_MPEG_anchor_extension",
"type": "object",
"description": "MPEG anchor",
"properties": {
"trackables": {
"type": "array",
"description": "Provides a list of trackables used by the anchor objects. ",
"items": {
"type": "object",
"$ref": "MPEG_anchor.trackable.schema.json"
},
"minItems": 1
},
"anchors": {
"type": "array",
"description": "Provides a list of anchors for a scene or for root nodes to enable AR anchoring",
"items": {
"type": "object",
"$ref": "MPEG_anchor.anchor.schema.json"
},
"minItems": 1
}
},
"required": ["trackables","anchors"]
}
Loading