Skip to content
This repository has been archived by the owner on Aug 18, 2024. It is now read-only.

Better gltf viewer #98

Draft
wants to merge 24 commits into
base: dev
Choose a base branch
from
Draft
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
157 changes: 157 additions & 0 deletions assets/GLTF/Duck/basic/Duck.gltf
Original file line number Diff line number Diff line change
@@ -0,0 +1,157 @@
{
"asset": {
"generator": "COLLADA2GLTF",
"version": "2.0"
},
"scene": 0,
"scenes": [
{
"nodes": [0]
}
],
"nodes": [
{
"children": [2, 1],
"matrix": [
0.009999999776482582, 0.0, 0.0, 0.0, 0.0, 0.009999999776482582, 0.0, 0.0, 0.0, 0.0, 0.009999999776482582, 0.0,
0.0, 0.0, 0.0, 1.0
]
},
{
"matrix": [
-0.7289686799049377, 0.0, -0.6845470666885376, 0.0, -0.4252049028873444, 0.7836934328079224, 0.4527972936630249,
0.0, 0.5364750623703003, 0.6211478114128113, -0.571287989616394, 0.0, 400.1130065917969, 463.2640075683594,
-431.0780334472656, 1.0
],
"camera": 0
},
{
"mesh": 0
}
],
"cameras": [
{
"perspective": {
"aspectRatio": 1.5,
"yfov": 0.6605925559997559,
"zfar": 10000.0,
"znear": 1.0
},
"type": "perspective"
}
],
"meshes": [
{
"primitives": [
{
"attributes": {
"NORMAL": 1,
"POSITION": 2,
"TEXCOORD_0": 3
},
"indices": 0,
"mode": 4,
"material": 0
}
],
"name": "LOD3spShape"
}
],
"accessors": [
{
"bufferView": 0,
"byteOffset": 0,
"componentType": 5123,
"count": 12636,
"max": [2398],
"min": [0],
"type": "SCALAR"
},
{
"bufferView": 1,
"byteOffset": 0,
"componentType": 5126,
"count": 2399,
"max": [0.9995989799499512, 0.999580979347229, 0.9984359741210938],
"min": [-0.9990839958190918, -1.0, -0.9998319745063782],
"type": "VEC3"
},
{
"bufferView": 1,
"byteOffset": 28788,
"componentType": 5126,
"count": 2399,
"max": [96.17990112304688, 163.97000122070313, 53.92519760131836],
"min": [-69.29850006103516, 9.929369926452637, -61.32819747924805],
"type": "VEC3"
},
{
"bufferView": 2,
"byteOffset": 0,
"componentType": 5126,
"count": 2399,
"max": [0.9833459854125976, 0.9800369739532472],
"min": [0.026409000158309938, 0.01996302604675293],
"type": "VEC2"
}
],
"materials": [
{
"pbrMetallicRoughness": {
"baseColorTexture": {
"index": 0
},
"metallicFactor": 0.0
},
"emissiveFactor": [0.0, 0.0, 0.0],
"name": "blinn3-fx"
}
],
"textures": [
{
"sampler": 0,
"source": 0
}
],
"images": [
{
"uri": "DuckCM.png"
}
],
"samplers": [
{
"magFilter": 9729,
"minFilter": 9986,
"wrapS": 10497,
"wrapT": 10497
}
],
"bufferViews": [
{
"buffer": 0,
"byteOffset": 76768,
"byteLength": 25272,
"target": 34963
},
{
"buffer": 0,
"byteOffset": 0,
"byteLength": 57576,
"byteStride": 12,
"target": 34962
},
{
"buffer": 0,
"byteOffset": 57576,
"byteLength": 19192,
"byteStride": 8,
"target": 34962
}
],
"buffers": [
{
"byteLength": 102040,
"uri": "Duck0.bin"
}
]
}
Binary file added assets/GLTF/Duck/basic/Duck0.bin
Binary file not shown.
Binary file added assets/GLTF/Duck/basic/DuckCM.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/GLTF/Duck/binary/Duck.glb
Binary file not shown.
Binary file added assets/GLTF/Duck/draco/Duck.bin
Binary file not shown.
224 changes: 224 additions & 0 deletions assets/GLTF/Duck/draco/Duck.gltf
Original file line number Diff line number Diff line change
@@ -0,0 +1,224 @@
{
"asset": {
"generator": "COLLADA2GLTF",
"version": "2.0"
},
"scene": 0,
"scenes": [
{
"nodes": [
0
]
}
],
"nodes": [
{
"children": [
2,
1
],
"matrix": [
0.009999999776482582,
0,
0,
0,
0,
0.009999999776482582,
0,
0,
0,
0,
0.009999999776482582,
0,
0,
0,
0,
1
]
},
{
"matrix": [
-0.7289686799049377,
0,
-0.6845470666885376,
0,
-0.4252049028873444,
0.7836934328079224,
0.4527972936630249,
0,
0.5364750623703003,
0.6211478114128113,
-0.571287989616394,
0,
400.1130065917969,
463.2640075683594,
-431.0780334472656,
1
],
"camera": 0
},
{
"mesh": 0
}
],
"cameras": [
{
"perspective": {
"aspectRatio": 1.5,
"yfov": 0.6605925559997559,
"zfar": 10000,
"znear": 1
},
"type": "perspective"
}
],
"meshes": [
{
"primitives": [
{
"attributes": {
"NORMAL": 1,
"POSITION": 2,
"TEXCOORD_0": 3
},
"indices": 0,
"mode": 4,
"material": 0,
"extensions": {
"KHR_draco_mesh_compression": {
"bufferView": 0,
"attributes": {
"NORMAL": 0,
"POSITION": 1,
"TEXCOORD_0": 2
}
}
}
}
],
"name": "LOD3spShape"
}
],
"accessors": [
{
"componentType": 5123,
"count": 12636,
"max": [
2398
],
"min": [
0
],
"type": "SCALAR"
},
{
"componentType": 5126,
"count": 2399,
"max": [
1.0083384775647932,
1.007422473383885,
1.0075904988775068
],
"min": [
-1.0069254898557476,
-1.0078414940366558,
-1.007673468543034
],
"type": "VEC3"
},
{
"componentType": 5126,
"count": 2399,
"max": [
96.26074059602396,
164.09024489374352,
54.029730459044615
],
"min": [
-69.37933953401223,
9.848530453475558,
-61.40903695222513
],
"type": "VEC3"
},
{
"componentType": 5126,
"count": 2399,
"max": [
0.9846059706495423,
0.9809754626608782
],
"min": [
0.025470511450678954,
0.019024537339121947
],
"type": "VEC2"
}
],
"materials": [
{
"pbrMetallicRoughness": {
"baseColorTexture": {
"index": 0,
"texCoord": 0
},
"metallicFactor": 0,
"baseColorFactor": [
1,
1,
1,
1
],
"roughnessFactor": 1
},
"emissiveFactor": [
0,
0,
0
],
"name": "blinn3-fx",
"alphaMode": "OPAQUE",
"doubleSided": false
}
],
"textures": [
{
"sampler": 0,
"source": 0
}
],
"images": [
{
"name": "DuckCM",
"uri": "DuckCM.png"
}
],
"samplers": [
{
"magFilter": 9729,
"minFilter": 9986,
"wrapS": 10497,
"wrapT": 10497
}
],
"bufferViews": [
{
"buffer": 0,
"byteOffset": 0,
"byteLength": 10366
}
],
"buffers": [
{
"name": "Duck",
"byteLength": 10368,
"uri": "Duck.bin"
}
],
"extensionsRequired": [
"KHR_draco_mesh_compression"
],
"extensionsUsed": [
"KHR_draco_mesh_compression"
]
}
Binary file added assets/GLTF/Duck/draco/DuckCM.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading