Skip to content

Instantly share code, notes, and snippets.

@andybak
Created September 19, 2024 22:08
Show Gist options
  • Save andybak/234bdecaa64b3487505f6886f9daa54c to your computer and use it in GitHub Desktop.
Save andybak/234bdecaa64b3487505f6886f9daa54c to your computer and use it in GitHub Desktop.
{
"asset": {
"version": "2.0",
"generator": "Mozilla Spoke dev"
},
"scenes": [
{
"nodes": [
2,
3,
6,
7,
8,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21,
22,
23,
24,
25,
26,
27,
28,
29,
30
],
"name": "Crater",
"extensions": {
"MOZ_hubs_components": {
"background": {
"color": "#aaaaaa"
}
}
}
}
],
"scene": 0,
"nodes": [
{
"name": "node-0",
"mesh": 0
},
{
"name": "scene-0",
"children": [
0
]
},
{
"translation": [
0.5,
0,
3
],
"name": "Model",
"children": [
1
],
"extensions": {
"MOZ_hubs_components": {
"shadow": {
"cast": false,
"receive": false
}
}
}
},
{
"translation": [
73.5,
0,
1.5
],
"name": "Media Frame",
"extensions": {
"MOZ_hubs_components": {
"media-frame": {
"mediaType": "all-2d",
"bounds": {
"x": 1,
"y": 1,
"z": 1
}
},
"networked": {
"id": "058932DA-8C76-4681-8187-B5218C381FD7"
}
}
}
},
{
"rotation": [
-0.70710678118654757,
0,
0,
0.70710678118654757
],
"translation": [
0,
-0.05,
0
],
"name": "GroundPlaneMesh",
"mesh": 1
},
{
"scale": [
100,
0.1,
100
],
"extensions": {
"MOZ_hubs_components": {
"box-collider": {
"position": {
"x": 0,
"y": 0,
"z": 0
},
"rotation": {
"x": 0,
"y": 0,
"z": 0
},
"scale": {
"x": 100,
"y": 0.1,
"z": 100
}
}
}
}
},
{
"translation": [
68,
49,
59
],
"name": "Ground Plane",
"children": [
4,
5
],
"extensions": {
"MOZ_hubs_components": {
"shadow": {
"receive": true,
"cast": false
}
}
}
},
{
"translation": [
70,
48.5,
59
],
"name": "Spawn Point",
"extensions": {
"MOZ_hubs_components": {
"spawn-point": {}
}
}
},
{
"translation": [
59,
49,
65.5
],
"name": "Way Point",
"extensions": {
"MOZ_hubs_components": {
"waypoint": {
"canBeSpawnPoint": false,
"canBeOccupied": false,
"canBeClicked": false,
"willDisableMotion": false,
"willDisableTeleporting": false,
"snapToNavMesh": false,
"willMaintainInitialOrientation": false
},
"networked": {
"id": "F037859C-D5F0-4EED-9235-A75BB4B958D4"
}
}
}
},
{
"name": "navMesh",
"mesh": 2,
"extensions": {
"MOZ_hubs_components": {
"nav-mesh": {},
"visible": {
"visible": false
}
}
}
},
{
"name": "trimesh",
"mesh": 3,
"extensions": {
"MOZ_hubs_components": {
"trimesh": {},
"visible": {
"visible": false
}
}
}
},
{
"translation": [
0,
0.005,
0
],
"name": "Floor Plan",
"children": [
9,
10
]
},
{
"translation": [
70,
43.5,
61.5
],
"name": "Trigger Volume"
},
{
"translation": [
72,
43,
61.5
],
"name": "Media Frame",
"extensions": {
"MOZ_hubs_components": {
"media-frame": {
"mediaType": "all-2d",
"bounds": {
"x": 1,
"y": 1,
"z": 1
}
},
"networked": {
"id": "4B8EF579-04A1-4729-85AA-2821A8242B78"
}
}
}
},
{
"translation": [
67,
43.5,
62
],
"name": "Audio Zone",
"extensions": {
"MOZ_hubs_components": {
"audio-zone": {
"target": {
"__mhc_link_type": "node"
},
"enabled": true,
"inOut": true,
"outIn": true
}
}
}
},
{
"name": "Ambient Light",
"extensions": {
"MOZ_hubs_components": {
"ambient-light": {
"color": "#ffffff",
"intensity": 1
}
}
}
},
{
"name": "Hemisphere Light",
"extensions": {
"MOZ_hubs_components": {
"hemisphere-light": {
"skyColor": "#ffffff",
"groundColor": "#ffffff",
"intensity": 1
}
}
}
},
{
"name": "Skybox",
"extensions": {
"MOZ_hubs_components": {
"skybox": {
"turbidity": 10,
"rayleigh": 2,
"luminance": 1,
"mieCoefficient": 0.005,
"mieDirectionalG": 0.8,
"inclination": 0,
"azimuth": 0.15,
"distance": 8000
}
}
}
},
{
"translation": [
66,
49,
59.5
],
"name": "Directional Light",
"extensions": {
"MOZ_hubs_components": {
"directional-light": {
"color": "#ffffff",
"intensity": 1,
"castShadow": true,
"shadowMapResolution": [
512,
512
],
"shadowBias": 0,
"shadowRadius": 1
}
}
}
},
{
"translation": [
64.5,
49.5,
60
],
"name": "Spot Light",
"extensions": {
"MOZ_hubs_components": {
"spot-light": {
"color": "#ffffff",
"intensity": 1,
"range": 0,
"innerConeAngle": 2.6159013735064738E-16,
"outerConeAngle": 0.78539816339744828,
"castShadow": true,
"shadowMapResolution": [
512,
512
],
"shadowBias": 0,
"shadowRadius": 1
}
}
}
},
{
"translation": [
60.5,
49,
63.5
],
"name": "Point Light",
"extensions": {
"MOZ_hubs_components": {
"point-light": {
"color": "#ffffff",
"intensity": 1,
"range": 0,
"castShadow": true,
"shadowMapResolution": [
512,
512
],
"shadowBias": 0,
"shadowRadius": 1
}
}
}
},
{
"translation": [
60,
46,
71
],
"name": "Image",
"extensions": {
"MOZ_hubs_components": {
"image": {
"src": "https://demo.hubscommunity.com/spoke/projects/%7B%7Brawspoke-base-assets-path%7D%7Dassets/images/spoke-icon-689abdfcc73a5aef104f6961d81ebacf.png",
"controls": true,
"alphaMode": "opaque",
"projection": "flat"
},
"networked": {
"id": "E93CCDFF-57C7-41AE-8CF8-B020F9527607"
}
}
}
},
{
"translation": [
61,
46.5,
66
],
"name": "Video",
"extensions": {
"MOZ_hubs_components": {
"video": {
"src": "https://assets.demo.hubscommunity.com/spoke/assets/videos/SpokePromo-d2938564ef20e10abf757c09182a1056.mp4",
"controls": true,
"autoPlay": true,
"loop": true,
"projection": "flat"
},
"networked": {
"id": "896B0875-0A9D-46B9-A533-B78159735C45"
}
}
}
},
{
"translation": [
60.5,
43,
69.5
],
"name": "Audio",
"extensions": {
"MOZ_hubs_components": {
"audio": {
"src": "",
"controls": true,
"autoPlay": true,
"loop": true
},
"networked": {
"id": "1A3D5CFA-264A-45C5-BCBF-269ACC04777F"
}
}
}
},
{
"translation": [
62,
44,
65
],
"scale": [
0.01,
0.01,
0.01
],
"name": "Spawner",
"extensions": {
"MOZ_hubs_components": {
"spawner": {
"src": "https://s3.us-east-005.backblazeb2.com/icosa-gallery/poly/fXBbhQr-T80/Mesh_Badger.gltf?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=005b04765785a8f0000000001%2F20240917%2Fus-east-005%2Fs3%2Faws4_request&X-Amz-Date=20240917T122714Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=ff8dcab1c90cea9e4a03cd4312dbcc87ad084c2f277c382d77140ba5f720fb42",
"mediaOptions": {
"applyGravity": false
}
}
}
}
},
{
"translation": [
60,
43.5,
73.5
],
"name": "Link",
"extensions": {
"MOZ_hubs_components": {
"link": {
"href": ""
},
"networked": {
"id": "70BA21C9-F3D3-47D0-B4FA-4D4DBC2CB385"
}
}
}
},
{
"translation": [
60,
43.5,
72
],
"name": "Particle Emitter",
"extensions": {
"MOZ_hubs_components": {
"particle-emitter": {
"src": "https://assets.demo.hubscommunity.com/spoke/assets/images/dot-75db99b125fe4e9afbe58696320bea73.png",
"startColor": "#ffffff",
"middleColor": "#ffffff",
"endColor": "#ffffff",
"startOpacity": 1,
"middleOpacity": 1,
"endOpacity": 1,
"colorCurve": "linear",
"sizeCurve": "linear",
"startSize": 0.25,
"endSize": 0.25,
"sizeRandomness": 0,
"ageRandomness": 10,
"lifetime": 5,
"lifetimeRandomness": 5,
"particleCount": 100,
"startVelocity": {
"x": 0,
"y": 0,
"z": 0.5
},
"endVelocity": {
"x": 0,
"y": 0,
"z": 0.5
},
"velocityCurve": "linear",
"angularVelocity": 0
}
}
}
},
{
"translation": [
72,
43.5,
61.5
],
"name": "Simple Water",
"extensions": {
"MOZ_hubs_components": {
"simple-water": {
"opacity": 1,
"color": "#0054df",
"tideHeight": 0.01,
"tideScale": {
"x": 1,
"y": 1
},
"tideSpeed": {
"x": 0.5,
"y": 0.5
},
"waveHeight": 0.1,
"waveScale": {
"x": 1,
"y": 20
},
"waveSpeed": {
"x": 0.05,
"y": 6
},
"ripplesSpeed": 0.25,
"ripplesScale": 1
}
}
}
},
{
"translation": [
60,
43.5,
71
],
"name": "scene-preview-camera",
"extensions": {
"MOZ_hubs_components": {
"scene-preview-camera": {}
}
}
},
{
"translation": [
59,
44.5,
71.5
],
"name": "Troika Text",
"extensions": {
"MOZ_hubs_components": {
"text": {
"value": "Text",
"anchorX": "center",
"anchorY": "middle",
"color": "#ffffff",
"curveRadius": 0,
"depthOffset": 0,
"direction": "auto",
"fillOpacity": 1,
"fontSize": 0.075,
"letterSpacing": 0,
"clipRect": null,
"lineHeight": 1,
"outlineBlur": 0,
"outlineColor": "#ffffff",
"outlineOffsetX": 0,
"outlineOffsetY": 0,
"outlineOpacity": 1,
"outlineWidth": 0,
"overflowWrap": "normal",
"strokeColor": "#ffffff",
"strokeOpacity": 1,
"strokeWidth": 0,
"textAlign": "left",
"textIndent": 0,
"whiteSpace": "normal",
"maxWidth": 9999
}
}
}
},
{
"translation": [
60,
44.5,
67.5
],
"name": "Mirror",
"extensions": {
"MOZ_hubs_components": {
"mirror": {
"color": "#7f7f7f"
}
}
}
}
],
"bufferViews": [
{
"buffer": 0,
"byteOffset": 0,
"byteLength": 18504,
"target": 34962,
"byteStride": 12
},
{
"buffer": 0,
"byteOffset": 18504,
"byteLength": 18504,
"target": 34962,
"byteStride": 12
},
{
"buffer": 0,
"byteOffset": 37008,
"byteLength": 12336,
"target": 34962,
"byteStride": 8
},
{
"buffer": 0,
"byteOffset": 49344,
"byteLength": 3084,
"target": 34963
},
{
"buffer": 0,
"byteOffset": 52428,
"byteLength": 408,
"target": 34962,
"byteStride": 12
},
{
"buffer": 0,
"byteOffset": 52836,
"byteLength": 408,
"target": 34962,
"byteStride": 12
},
{
"buffer": 0,
"byteOffset": 53244,
"byteLength": 272,
"target": 34962,
"byteStride": 8
},
{
"buffer": 0,
"byteOffset": 53516,
"byteLength": 192,
"target": 34963
},
{
"buffer": 0,
"byteOffset": 53708,
"byteLength": 4464,
"target": 34962,
"byteStride": 12
},
{
"buffer": 0,
"byteOffset": 58172,
"byteLength": 744,
"target": 34963
},
{
"buffer": 0,
"byteOffset": 58916,
"byteLength": 37008,
"target": 34962,
"byteStride": 12
}
],
"buffers": [
{
"byteLength": 95924,
"uri": "Crater.bin"
}
],
"accessors": [
{
"bufferView": 0,
"componentType": 5126,
"count": 1542,
"max": [
0.99982398748397827,
0.98149102926254272,
0.99994897842407227
],
"min": [
-0.99982398748397827,
-1,
-1
],
"type": "VEC3",
"normalized": false
},
{
"bufferView": 1,
"componentType": 5126,
"count": 1542,
"max": [
21.121711730957031,
34.464550018310547,
80.271499633789062
],
"min": [
-21.121711730957031,
-34.464546203613281,
-80.271499633789062
],
"type": "VEC3",
"normalized": false
},
{
"bufferView": 2,
"componentType": 5126,
"count": 1542,
"max": [
0.95205497741699219,
-0.04791099950671196
],
"min": [
0.0497249998152256,
-0.92506498098373413
],
"type": "VEC2",
"normalized": false
},
{
"bufferView": 3,
"componentType": 5123,
"count": 1542,
"max": [
1541
],
"min": [
0
],
"type": "SCALAR",
"normalized": false
},
{
"bufferView": 4,
"componentType": 5126,
"count": 34,
"max": [
4000,
4000,
0
],
"min": [
-4000,
-4000,
0
],
"type": "VEC3",
"normalized": false
},
{
"bufferView": 5,
"componentType": 5126,
"count": 34,
"max": [
0,
0,
1
],
"min": [
0,
0,
1
],
"type": "VEC3",
"normalized": false
},
{
"bufferView": 6,
"componentType": 5126,
"count": 34,
"max": [
1,
1
],
"min": [
0,
0
],
"type": "VEC2",
"normalized": false
},
{
"bufferView": 7,
"componentType": 5123,
"count": 96,
"max": [
33
],
"min": [
0
],
"type": "SCALAR",
"normalized": false
},
{
"bufferView": 8,
"componentType": 5126,
"count": 372,
"max": [
166.84275817871094,
49.135452270507812,
157.72450256347656
],
"min": [
-30.553871154785156,
-34.064548492431641,
-41.118270874023438
],
"type": "VEC3",
"normalized": false
},
{
"bufferView": 9,
"componentType": 5123,
"count": 372,
"max": [
371
],
"min": [
0
],
"type": "SCALAR",
"normalized": false
},
{
"bufferView": 10,
"componentType": 5126,
"count": 3084,
"max": [
21.621711730957031,
34.464550018310547,
83.271499633789062
],
"min": [
-20.621711730957031,
-34.464546203613281,
-77.271499633789062
],
"type": "VEC3",
"normalized": false
}
],
"materials": [
{
"pbrMetallicRoughness": {
"metallicFactor": 0,
"roughnessFactor": 0.96994766286482947,
"baseColorTexture": {
"index": 0
}
},
"doubleSided": true,
"name": "lambert2SG"
},
{
"pbrMetallicRoughness": {
"baseColorFactor": [
0.36470588235294116,
0.8901960784313725,
0.21176470588235294,
1
],
"metallicFactor": 0,
"roughnessFactor": 1
}
},
{
"pbrMetallicRoughness": {
"baseColorFactor": [
0,
0,
1,
0
],
"metallicFactor": 0,
"roughnessFactor": 0.9
},
"extensions": {
"KHR_materials_unlit": {}
},
"alphaMode": "BLEND"
},
{
"pbrMetallicRoughness": {
"baseColorFactor": [
1,
0,
0,
0
],
"metallicFactor": 0,
"roughnessFactor": 0.9
},
"extensions": {
"KHR_materials_unlit": {}
},
"alphaMode": "BLEND"
}
],
"textures": [
{
"sampler": 0,
"source": 0
}
],
"samplers": [
{
"magFilter": 9729,
"minFilter": 9987,
"wrapS": 10497,
"wrapT": 10497
}
],
"images": [
{
"name": "lambert2SG-texture",
"uri": "Crater_image0.jpg"
}
],
"meshes": [
{
"primitives": [
{
"mode": 4,
"attributes": {
"NORMAL": 0,
"POSITION": 1,
"TEXCOORD_0": 2
},
"indices": 3,
"material": 0
}
]
},
{
"primitives": [
{
"mode": 4,
"attributes": {
"POSITION": 4,
"NORMAL": 5,
"TEXCOORD_0": 6
},
"indices": 7,
"material": 1
}
]
},
{
"primitives": [
{
"mode": 4,
"attributes": {
"POSITION": 8
},
"indices": 9,
"material": 2
}
]
},
{
"primitives": [
{
"mode": 4,
"attributes": {
"POSITION": 10
},
"extras": {
"mergedUserData": [
{
"mergedUserData": [
{}
]
},
{
"mergedUserData": [
{}
]
}
]
},
"material": 3
}
]
}
],
"extensionsUsed": [
"MOZ_hubs_components",
"KHR_materials_unlit"
],
"extensions": {
"MOZ_hubs_components": {
"version": 4
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment