Add a red box mesh whose geometry and material sit in sidecar files.
#13
by trinityc - opened
- meshes/red_box/red_box.bin +3 -0
- meshes/red_box/red_box.gltf +132 -0
- meshes/red_box/red_box.mtl +7 -0
- meshes/red_box/red_box.obj +3 -0
meshes/red_box/red_box.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ebec9258868c4e538ec680cacd565eccc1ec9782d4cfd9c117221f55370b958c
|
| 3 |
+
size 864
|
meshes/red_box/red_box.gltf
ADDED
|
@@ -0,0 +1,132 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"scene": 0,
|
| 3 |
+
"scenes": [
|
| 4 |
+
{
|
| 5 |
+
"nodes": [
|
| 6 |
+
0
|
| 7 |
+
]
|
| 8 |
+
}
|
| 9 |
+
],
|
| 10 |
+
"asset": {
|
| 11 |
+
"version": "2.0",
|
| 12 |
+
"generator": "https://github.com/mikedh/trimesh"
|
| 13 |
+
},
|
| 14 |
+
"accessors": [
|
| 15 |
+
{
|
| 16 |
+
"componentType": 5125,
|
| 17 |
+
"type": "SCALAR",
|
| 18 |
+
"bufferView": 0,
|
| 19 |
+
"count": 36,
|
| 20 |
+
"max": [
|
| 21 |
+
35
|
| 22 |
+
],
|
| 23 |
+
"min": [
|
| 24 |
+
0
|
| 25 |
+
]
|
| 26 |
+
},
|
| 27 |
+
{
|
| 28 |
+
"componentType": 5126,
|
| 29 |
+
"type": "VEC3",
|
| 30 |
+
"byteOffset": 0,
|
| 31 |
+
"bufferView": 1,
|
| 32 |
+
"count": 36,
|
| 33 |
+
"max": [
|
| 34 |
+
0.05000000074505806,
|
| 35 |
+
0.10000000149011612,
|
| 36 |
+
0.15000000596046448
|
| 37 |
+
],
|
| 38 |
+
"min": [
|
| 39 |
+
-0.05000000074505806,
|
| 40 |
+
-0.10000000149011612,
|
| 41 |
+
-0.15000000596046448
|
| 42 |
+
]
|
| 43 |
+
},
|
| 44 |
+
{
|
| 45 |
+
"componentType": 5126,
|
| 46 |
+
"type": "VEC2",
|
| 47 |
+
"byteOffset": 0,
|
| 48 |
+
"bufferView": 2,
|
| 49 |
+
"count": 36,
|
| 50 |
+
"max": [
|
| 51 |
+
0.0,
|
| 52 |
+
1.0
|
| 53 |
+
],
|
| 54 |
+
"min": [
|
| 55 |
+
0.0,
|
| 56 |
+
1.0
|
| 57 |
+
]
|
| 58 |
+
}
|
| 59 |
+
],
|
| 60 |
+
"meshes": [
|
| 61 |
+
{
|
| 62 |
+
"name": "geometry_0",
|
| 63 |
+
"extras": {
|
| 64 |
+
"shape": "box",
|
| 65 |
+
"extents": [
|
| 66 |
+
0.1,
|
| 67 |
+
0.2,
|
| 68 |
+
0.3
|
| 69 |
+
]
|
| 70 |
+
},
|
| 71 |
+
"primitives": [
|
| 72 |
+
{
|
| 73 |
+
"attributes": {
|
| 74 |
+
"POSITION": 1,
|
| 75 |
+
"TEXCOORD_0": 2
|
| 76 |
+
},
|
| 77 |
+
"indices": 0,
|
| 78 |
+
"mode": 4,
|
| 79 |
+
"material": 0
|
| 80 |
+
}
|
| 81 |
+
]
|
| 82 |
+
}
|
| 83 |
+
],
|
| 84 |
+
"materials": [
|
| 85 |
+
{
|
| 86 |
+
"pbrMetallicRoughness": {
|
| 87 |
+
"baseColorFactor": [
|
| 88 |
+
1.0,
|
| 89 |
+
0.0,
|
| 90 |
+
0.0,
|
| 91 |
+
1.0
|
| 92 |
+
]
|
| 93 |
+
},
|
| 94 |
+
"doubleSided": false
|
| 95 |
+
}
|
| 96 |
+
],
|
| 97 |
+
"nodes": [
|
| 98 |
+
{
|
| 99 |
+
"name": "world",
|
| 100 |
+
"children": [
|
| 101 |
+
1
|
| 102 |
+
]
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"name": "geometry_0",
|
| 106 |
+
"mesh": 0
|
| 107 |
+
}
|
| 108 |
+
],
|
| 109 |
+
"buffers": [
|
| 110 |
+
{
|
| 111 |
+
"uri": "red_box.bin",
|
| 112 |
+
"byteLength": 864
|
| 113 |
+
}
|
| 114 |
+
],
|
| 115 |
+
"bufferViews": [
|
| 116 |
+
{
|
| 117 |
+
"buffer": 0,
|
| 118 |
+
"byteOffset": 0,
|
| 119 |
+
"byteLength": 144
|
| 120 |
+
},
|
| 121 |
+
{
|
| 122 |
+
"buffer": 0,
|
| 123 |
+
"byteOffset": 144,
|
| 124 |
+
"byteLength": 432
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"buffer": 0,
|
| 128 |
+
"byteOffset": 576,
|
| 129 |
+
"byteLength": 288
|
| 130 |
+
}
|
| 131 |
+
]
|
| 132 |
+
}
|
meshes/red_box/red_box.mtl
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# https://github.com/mikedh/trimesh
|
| 2 |
+
|
| 3 |
+
newmtl material_0
|
| 4 |
+
Ka 0.40000000 0.40000000 0.40000000
|
| 5 |
+
Kd 1.00000000 0.00000000 0.00000000
|
| 6 |
+
Ks 0.40000000 0.40000000 0.40000000
|
| 7 |
+
Ns 1.00000000
|
meshes/red_box/red_box.obj
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ee29ba76087c5a44e3d7ed0961d4407510fb7b0c0911c0e65e46a54f8c5bddf4
|
| 3 |
+
size 1511
|