Skip to content

Commit

Permalink
Add splat build schema
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-liang committed Nov 16, 2023
1 parent 0368dfd commit 5bc7be8
Show file tree
Hide file tree
Showing 2 changed files with 83 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build/schemas/arena-schema-files.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@
"file": "schemas/gltf-model.json",
"title": "GLTF Model"
},
"gaussian-splat": {
"description": "Load 3D Gaussian Splat",
"file": "schemas/gaussian-splat.json",
"title": "3D Gaussian Splat"
},
"image": {
"description": "Display an image on a plane",
"file": "schemas/image.json",
Expand Down
78 changes: 78 additions & 0 deletions build/schemas/gaussian-splat.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
{
"title": "3D Gaussian Splat",
"description": "Load a 3D Gaussian Splat for Real-Time Radiance Field Rendering",
"allOf": [
{
"$ref": "./schemas/definitions-arena-object.json#/properties"
},
{
"properties": {
"data": {
"allOf": [
{
"properties": {
"object_type": {
"type": "string",
"title": "3D object type",
"description": "3D object type (derived from 'type' select above).",
"enum": [
"entity"
]
},
"src": {
"description": "Splat URL. Dropbox share links also accepted. Store files paths under '/store/users/<username>' (e.g. store/users/wiselab/models/factory_robot_arm/scene.gltf); to use CDN, prefix with `https://arena-cdn.conix.io/` (e.g. https://arena-cdn.conix.io/store/users/wiselab/models/factory_robot_arm/scene.gltf)",
"format": "uri",
"title": "src",
"type": "string"
},
"cutoutEntity": {
"description": "Selector to a box primitive that uses scale and position to define the bounds of splat points to render",
"type": "string",
"title": "Cutout Entity (Optional)",
"default": ""
},
"pixelRatio": {
"description": "Pixel ratio for rendering. Reducing the value decreases the resolution and improves performance. If a negative value is set, the device's native value will be applied.",
"type": "number",
"title": "Pixel Ratio",
"default": 1.0
},
"xrPixelRatio": {
"description": " \tSame as pixelRatio. Applied to XR devices.",
"type": "number",
"title": "XR Pixel Ratio",
"default": 0.5
}
}
},
{
"$ref": "./schemas/definitions-entity.json#/properties"
},
{
"$ref": "./schemas/definitions-common.json#/properties"
}
],
"title": "3D Gaussian Splat",
"additionalProperties": true,
"default": {
"object_type": "entity"
},
"required": [
"object_type",
"src",
"position",
"rotation",
"scale"
]
}
}
}
],
"required": [
"object_id",
"action",
"type",
"data",
"persist"
]
}

0 comments on commit 5bc7be8

Please sign in to comment.