From 1866e11237415cc22bf43dceae19cfe00e702cd1 Mon Sep 17 00:00:00 2001 From: Syoyo Fujita Date: Sat, 27 May 2017 23:55:32 +0900 Subject: [PATCH] Add Cube test model. --- README.md | 6 +- models/Cube/Cube.bin | Bin 0 -> 1800 bytes models/Cube/Cube.gltf | 193 +++++++ models/Cube/Cube_BaseColor.png | 715 +++++++++++++++++++++++++ models/Cube/Cube_MetallicRoughness.png | 715 +++++++++++++++++++++++++ models/Cube/README.md | 4 + 6 files changed, 1630 insertions(+), 3 deletions(-) create mode 100644 models/Cube/Cube.bin create mode 100644 models/Cube/Cube.gltf create mode 100644 models/Cube/Cube_BaseColor.png create mode 100644 models/Cube/Cube_MetallicRoughness.png create mode 100644 models/Cube/README.md diff --git a/README.md b/README.md index 90ccab8..4e2aae2 100644 --- a/README.md +++ b/README.md @@ -42,11 +42,11 @@ * [ ] Support `extensions` and `extras` property * [ ] HDR image? -## License +## Licenses -TinyGLTFLoader is licensed under MIT license. +TinyGLTF is licensed under MIT license. -TinyGLTFLoader uses the following third party libraries. +TinyGLTF uses the following third party libraries. * picojson.h : Copyright 2009-2010 Cybozu Labs, Inc. Copyright 2011-2014 Kazuho Oku * base64 : Copyright (C) 2004-2008 René Nyffenegger diff --git a/models/Cube/Cube.bin b/models/Cube/Cube.bin new file mode 100644 index 0000000000000000000000000000000000000000..7dae4b0b93e3251ca8886c43b6a9403f27648a39 GIT binary patch literal 1800 zcmcIhNm2wc3={jX@B1<=Z=g8#)5wWmQS&680G1PF(jh%P2S`;{Y*|ulH?V?LtYIA+ z*u)kl*v1Zav4?#e;1EYR#tBYwhI3rt5?8p!4Q_FVdpux@M?B#fF91Sk->kS959VLr z@8oxrsPot`@w+0f-8FtBIc~hgDG4+1eGd6JQYQAF) zU*f9i?i!eQ^_{o~QDeW(f`OPNhH^g zGgfh|f4+UZiu*fWv=`dZn0fUy zjohgr`J2aB?taGS(VMy7)I&251>eO*ZZ&GMAM19;=ZXK`x&HQ89zETBDgVR_skeXF zPwqv#OMPX$EB3-ZEZ5P#bUPmAeBwIVWvOSa)Rr}A%es4oxu#b$T&Ia!U7nf8+0vJ> I)N}Os0UGHvApigX literal 0 HcmV?d00001 diff --git a/models/Cube/Cube.gltf b/models/Cube/Cube.gltf new file mode 100644 index 0000000..bc873da --- /dev/null +++ b/models/Cube/Cube.gltf @@ -0,0 +1,193 @@ +{ + "accessors" : [ + { + "bufferView" : 0, + "byteOffset" : 0, + "componentType" : 5123, + "count" : 36, + "max" : [ + 35 + ], + "min" : [ + 0 + ], + "type" : "SCALAR" + }, + { + "bufferView" : 1, + "byteOffset" : 0, + "componentType" : 5126, + "count" : 36, + "max" : [ + 1.000000, + 1.000000, + 1.000001 + ], + "min" : [ + -1.000000, + -1.000000, + -1.000000 + ], + "type" : "VEC3" + }, + { + "bufferView" : 2, + "byteOffset" : 0, + "componentType" : 5126, + "count" : 36, + "max" : [ + 1.000000, + 1.000000, + 1.000000 + ], + "min" : [ + -1.000000, + -1.000000, + -1.000000 + ], + "type" : "VEC3" + }, + { + "bufferView" : 3, + "byteOffset" : 0, + "componentType" : 5126, + "count" : 36, + "max" : [ + 1.000000, + -0.000000, + -0.000000, + 1.000000 + ], + "min" : [ + 0.000000, + -0.000000, + -1.000000, + -1.000000 + ], + "type" : "VEC4" + }, + { + "bufferView" : 4, + "byteOffset" : 0, + "componentType" : 5126, + "count" : 36, + "max" : [ + 1.000000, + 1.000000 + ], + "min" : [ + -1.000000, + -1.000000 + ], + "type" : "VEC2" + } + ], + "asset" : { + "generator" : "VKTS glTF 2.0 exporter", + "version" : "2.0" + }, + "bufferViews" : [ + { + "buffer" : 0, + "byteLength" : 72, + "byteOffset" : 0, + "target" : 34963 + }, + { + "buffer" : 0, + "byteLength" : 432, + "byteOffset" : 72, + "target" : 34962 + }, + { + "buffer" : 0, + "byteLength" : 432, + "byteOffset" : 504, + "target" : 34962 + }, + { + "buffer" : 0, + "byteLength" : 576, + "byteOffset" : 936, + "target" : 34962 + }, + { + "buffer" : 0, + "byteLength" : 288, + "byteOffset" : 1512, + "target" : 34962 + } + ], + "buffers" : [ + { + "byteLength" : 1800, + "uri" : "Cube.bin" + } + ], + "images" : [ + { + "uri" : "Cube_BaseColor.png" + }, + { + "uri" : "Cube_MetallicRoughness.png" + } + ], + "materials" : [ + { + "name" : "Cube", + "pbrMetallicRoughness" : { + "baseColorTexture" : { + "index" : 0 + }, + "metallicRoughnessTexture" : { + "index" : 1 + } + } + } + ], + "meshes" : [ + { + "name" : "Cube", + "primitives" : [ + { + "attributes" : { + "NORMAL" : 2, + "POSITION" : 1, + "TANGENT" : 3, + "TEXCOORD_0" : 4 + }, + "indices" : 0, + "material" : 0, + "mode" : 4 + } + ] + } + ], + "nodes" : [ + { + "mesh" : 0, + "name" : "Cube" + } + ], + "samplers" : [ + {} + ], + "scene" : 0, + "scenes" : [ + { + "nodes" : [ + 0 + ] + } + ], + "textures" : [ + { + "sampler" : 0, + "source" : 0 + }, + { + "sampler" : 0, + "source" : 1 + } + ] +} diff --git a/models/Cube/Cube_BaseColor.png b/models/Cube/Cube_BaseColor.png new file mode 100644 index 0000000..2e29233 --- /dev/null +++ b/models/Cube/Cube_BaseColor.png @@ -0,0 +1,715 @@ + + + + + + + + + + + + + + + + + + + + + + + glTF-Sample-Models/Cube_BaseColor.png at master · KhronosGroup/glTF-Sample-Models + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Skip to content +
+ + + + + + + + + + + + + +
+ +
+ +
+
+ + + +
+
+
+ + + + + +
+
+ +
    +
  • +
    + +
    + + + + Watch + + + + +
    +
    +
    + + Notifications +
    + + + +
    +
    +
    +
    +
  • + +
  • +
    +
    + + +
    +
    + + +
    + +
  • + +
  • + + + Fork + + + + + +
  • +
+ +

+ + /glTF-Sample-Models + +

+ +
+ +
+ +
+
+ + + + +Permalink + + + +
+ +
+ + +
+ +
+
+ + Switch branches/tags +
+ +
+
+ +
+
+ +
+
+ + + +
+
+ + +
+ +
Nothing to show
+
+ +
+
+
+ +
+ + Find file + + +
+ +
+ + + +
+ Fetching contributors… +
+ +
+ + Cannot retrieve contributors at this time +
+
+
+
+
+ + + + + + + +
+ +
+ +
+ 871 KB +
+
+ + + +
+
+ Cube_BaseColor.png +
+
+ +
+ + + + + +
+ +
+ +
+
+ +
+ + + + + + +
+ + + You can't perform that action at this time. +
+ + + + + + + + + +
+ + You signed in with another tab or window. Reload to refresh your session. + You signed out in another tab or window. Reload to refresh your session. +
+ + + + + + diff --git a/models/Cube/Cube_MetallicRoughness.png b/models/Cube/Cube_MetallicRoughness.png new file mode 100644 index 0000000..a944391 --- /dev/null +++ b/models/Cube/Cube_MetallicRoughness.png @@ -0,0 +1,715 @@ + + + + + + + + + + + + + + + + + + + + + + + glTF-Sample-Models/Cube_MetallicRoughness.png at master · KhronosGroup/glTF-Sample-Models + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Skip to content +
+ + + + + + + + + + + + + +
+ +
+ +
+
+ + + +
+
+
+ + + + + +
+
+ +
    +
  • +
    + +
    + + + + Watch + + + + +
    +
    +
    + + Notifications +
    + + + +
    +
    +
    +
    +
  • + +
  • +
    +
    + + +
    +
    + + +
    + +
  • + +
  • + + + Fork + + + + + +
  • +
+ +

+ + /glTF-Sample-Models + +

+ +
+ +
+ +
+
+ + + + +Permalink + + + +
+ +
+ + +
+ +
+
+ + Switch branches/tags +
+ +
+
+ +
+
+ +
+
+ + + +
+
+ + +
+ +
Nothing to show
+
+ +
+
+
+ +
+ + Find file + + +
+ +
+ + + +
+ Fetching contributors… +
+ +
+ + Cannot retrieve contributors at this time +
+
+
+
+
+ + + + + + + +
+ +
+ +
+ 319 Bytes +
+
+ + + +
+
+ Cube_MetallicRoughness.png +
+
+ +
+ + + + + +
+ +
+ +
+
+ +
+ + + + + + +
+ + + You can't perform that action at this time. +
+ + + + + + + + + +
+ + You signed in with another tab or window. Reload to refresh your session. + You signed out in another tab or window. Reload to refresh your session. +
+ + + + + + diff --git a/models/Cube/README.md b/models/Cube/README.md new file mode 100644 index 0000000..6a2f622 --- /dev/null +++ b/models/Cube/README.md @@ -0,0 +1,4 @@ +License: Donated by Norbert Nopper for glTF testing. + +https://github.com/KhronosGroup/glTF-Sample-Models/tree/master/2.0/Cube +