Skip to content

Instantly share code, notes, and snippets.

@mjvo
Last active July 26, 2020 18:12
Show Gist options
  • Save mjvo/ff3526956c6b008189264042cdd4ba9a to your computer and use it in GitHub Desktop.
Save mjvo/ff3526956c6b008189264042cdd4ba9a to your computer and use it in GitHub Desktop.
3D WebXR Viewer JSON (Sample)
{
"title": "Some 3D Collection",
"desc": "This is a description of this particular collection of 3D objects.",
"viewer-settings": "some array of additional global model-viewer settings could go here (shadow intensity, autoplay, environment image, etc)",
"objects": [{
"id": 2213,
"poster": "path/to/2213.png",
"src": "path/to/2213.glb",
"ios": "path/to.2213.usdz",
"hotspots": [{
"label": "Something cool",
"position": "0.4007812111279194 m 0.5728657373429219 m 1.097146245737618 m ",
"normal": "0.16744492173726025m 0.8337560844961998m 0.5261302022788354m",
"visibility": "visible"
},
{
"label": "Something else cool",
"position": "-0.5732061558897641m 0.5330821278667062m 0.9063000376948391m",
"normal": "-0.9294973541164393m -0.05834724631259222m 0.364184386730508m",
"visibility": "visible"
}
]
},
{
"id": 9671,
"poster": "path/to/9671.png",
"src": "path/to/9671.glb",
"ios": "path/to.9671.usdz"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment