Skip to content

Commit

Permalink
glTF Version of object
Browse files Browse the repository at this point in the history
Exported a glTF version with textures to go with the glb
  • Loading branch information
PatrickRyanMS committed Sep 14, 2017
1 parent f763210 commit 2dad3b0
Show file tree
Hide file tree
Showing 6 changed files with 287 additions and 0 deletions.
Binary file added glTF/TextureTestPlane.bin
Binary file not shown.
287 changes: 287 additions & 0 deletions glTF/TextureTestPlane.gltf
Original file line number Diff line number Diff line change
@@ -0,0 +1,287 @@
{
"accessors" : [
{
"bufferView" : 0,
"componentType" : 5121,
"count" : 6,
"max" : [
3
],
"min" : [
0
],
"type" : "SCALAR"
},
{
"bufferView" : 1,
"componentType" : 5126,
"count" : 4,
"max" : [
5.0,
0.0,
5.0
],
"min" : [
-5.0,
0.0,
-5.0
],
"type" : "VEC3"
},
{
"bufferView" : 2,
"componentType" : 5126,
"count" : 4,
"max" : [
0.0,
1.0,
-0.0
],
"min" : [
0.0,
1.0,
-0.0
],
"type" : "VEC3"
},
{
"bufferView" : 3,
"componentType" : 5126,
"count" : 4,
"max" : [
1.0,
0.0,
-0.0,
1.0
],
"min" : [
1.0,
0.0,
-0.0,
1.0
],
"type" : "VEC4"
},
{
"bufferView" : 4,
"componentType" : 5126,
"count" : 4,
"max" : [
1.0,
1.0
],
"min" : [
0.0,
0.0
],
"type" : "VEC2"
}
],
"asset" : {
"generator" : "Khronos Blender glTF 2.0 exporter",
"version" : "2.0"
},
"bufferViews" : [
{
"buffer" : 0,
"byteLength" : 6,
"byteOffset" : 0,
"target" : 34963
},
{
"buffer" : 0,
"byteLength" : 48,
"byteOffset" : 8,
"target" : 34962
},
{
"buffer" : 0,
"byteLength" : 48,
"byteOffset" : 56,
"target" : 34962
},
{
"buffer" : 0,
"byteLength" : 64,
"byteOffset" : 104,
"target" : 34962
},
{
"buffer" : 0,
"byteLength" : 32,
"byteOffset" : 168,
"target" : 34962
}
],
"buffers" : [
{
"byteLength" : 200,
"uri" : "TextureTestPlane.bin"
}
],
"cameras" : [
{
"name" : "Camera",
"perspective" : {
"aspectRatio" : 1.7777777777777777,
"yfov" : 0.5033799372418416,
"zfar" : 100.0,
"znear" : 0.10000000149011612
},
"type" : "perspective"
}
],
"images" : [
{
"uri" : "TextureTests_TexturePlane_BaseColor.png"
},
{
"uri" : "TextureTests_TexturePlane_OcclusionRoughMetal.png"
},
{
"uri" : "TextureTests_TexturePlane_Normal.png"
},
{
"uri" : "TextureTests_TexturePlane_Emissive.png"
}
],
"materials" : [
{
"emissiveFactor" : [
1.0,
1.0,
1.0
],
"emissiveTexture" : {
"index" : 3
},
"name" : "Material.001",
"normalTexture" : {
"index" : 2
},
"occlusionTexture" : {
"index" : 1
},
"pbrMetallicRoughness" : {
"baseColorTexture" : {
"index" : 0
},
"metallicRoughnessTexture" : {
"index" : 1
}
}
}
],
"meshes" : [
{
"name" : "Untitled",
"primitives" : [
{
"attributes" : {
"NORMAL" : 2,
"POSITION" : 1,
"TANGENT" : 3,
"TEXCOORD_0" : 4
},
"indices" : 0,
"material" : 0
}
]
}
],
"nodes" : [
{
"camera" : 0,
"name" : "Correction_Camera",
"rotation" : [
-0.7071067690849304,
-0.0,
0.0,
0.7071067690849304
]
},
{
"children" : [
0
],
"name" : "Camera",
"rotation" : [
0.5896543860435486,
0.1518314629793167,
-0.09754165261983871,
0.7872361540794373
],
"scale" : [
0.9999999403953552,
1.0,
1.0
],
"translation" : [
3.1087565422058105,
2.4374051094055176,
7.50246524810791
]
},
{
"name" : "Lamp",
"rotation" : [
0.3019924461841583,
0.23406964540481567,
-0.10707198083400726,
0.9179039001464844
],
"translation" : [
1.8232996463775635,
3.7706217765808105,
4.171635627746582
]
},
{
"mesh" : 0,
"name" : "TexturePlane",
"rotation" : [
0.7071068286895752,
0.0,
-0.0,
0.7071067094802856
],
"scale" : [
0.36814817786216736,
0.36814817786216736,
0.36814817786216736
]
}
],
"samplers" : [
{}
],
"scene" : 0,
"scenes" : [
{
"name" : "Scene",
"nodes" : [
3,
2,
1
]
}
],
"textures" : [
{
"sampler" : 0,
"source" : 0
},
{
"sampler" : 0,
"source" : 1
},
{
"sampler" : 0,
"source" : 2
},
{
"sampler" : 0,
"source" : 3
}
]
}
Binary file added glTF/TextureTests_TexturePlane_BaseColor.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 glTF/TextureTests_TexturePlane_Emissive.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 glTF/TextureTests_TexturePlane_Normal.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 2dad3b0

Please sign in to comment.