ValidMultipleClasses.gltf 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  1. {
  2. "extensions" : {
  3. "EXT_structural_metadata" : {
  4. "schema" : {
  5. "id": "MultipleClassesSchema",
  6. "classes" : {
  7. "exampleMetadataClassA" : {
  8. "name" : "Example metadata class A",
  9. "description" : "First example metadata class",
  10. "properties" : {
  11. "example_FLOAT32" : {
  12. "name" : "Example FLOAT32 property",
  13. "description" : "An example property, with component type FLOAT32",
  14. "type" : "SCALAR",
  15. "componentType" : "FLOAT32"
  16. },
  17. "example_INT64" : {
  18. "name" : "Example INT64 property",
  19. "description" : "An example property, with component type INT64",
  20. "type" : "SCALAR",
  21. "componentType" : "INT64"
  22. }
  23. }
  24. },
  25. "exampleMetadataClassB" : {
  26. "name" : "Example metadata class B",
  27. "description" : "Second example metadata class",
  28. "properties" : {
  29. "example_UINT16" : {
  30. "name" : "Example UINT16 property",
  31. "description" : "An example property, with component type UINT16",
  32. "type" : "SCALAR",
  33. "componentType" : "UINT16"
  34. },
  35. "example_FLOAT64" : {
  36. "name" : "Example FLOAT64 property",
  37. "description" : "An example property, with component type FLOAT64",
  38. "type" : "SCALAR",
  39. "componentType" : "FLOAT64"
  40. }
  41. }
  42. }
  43. },
  44. "enums" : {
  45. "exampleEnumType" : {
  46. "values" : [ {
  47. "name" : "ExampleEnumValueA",
  48. "value" : 0
  49. }, {
  50. "name" : "ExampleEnumValueB",
  51. "value" : 1
  52. }, {
  53. "name" : "ExampleEnumValueC",
  54. "value" : 2
  55. } ]
  56. }
  57. }
  58. },
  59. "propertyTables" : [ {
  60. "name" : "First example property table",
  61. "class" : "exampleMetadataClassA",
  62. "count" : 4,
  63. "properties" : {
  64. "example_FLOAT32" : {
  65. "values" : 5
  66. },
  67. "example_INT64" : {
  68. "values" : 6
  69. }
  70. }
  71. }, {
  72. "name" : "Second example property table",
  73. "class" : "exampleMetadataClassB",
  74. "count" : 4,
  75. "properties" : {
  76. "example_UINT16" : {
  77. "values" : 7
  78. },
  79. "example_FLOAT64" : {
  80. "values" : 8
  81. }
  82. }
  83. } ]
  84. }
  85. },
  86. "extensionsUsed" : [ "EXT_mesh_features", "EXT_structural_metadata" ],
  87. "accessors" : [ {
  88. "bufferView" : 0,
  89. "byteOffset" : 0,
  90. "componentType" : 5123,
  91. "count" : 24,
  92. "type" : "SCALAR",
  93. "max" : [ 15 ],
  94. "min" : [ 0 ]
  95. }, {
  96. "bufferView" : 1,
  97. "byteOffset" : 0,
  98. "componentType" : 5126,
  99. "count" : 16,
  100. "type" : "VEC3",
  101. "max" : [ 1.0, 1.0, 0.0 ],
  102. "min" : [ 0.0, 0.0, 0.0 ]
  103. }, {
  104. "bufferView" : 2,
  105. "byteOffset" : 0,
  106. "componentType" : 5126,
  107. "count" : 16,
  108. "type" : "VEC3",
  109. "max" : [ 0.0, 0.0, 1.0 ],
  110. "min" : [ 0.0, 0.0, 1.0 ]
  111. }, {
  112. "bufferView" : 3,
  113. "byteOffset" : 0,
  114. "componentType" : 5121,
  115. "count" : 16,
  116. "type" : "SCALAR",
  117. "max" : [ 3 ],
  118. "min" : [ 0 ]
  119. }, {
  120. "bufferView" : 4,
  121. "byteOffset" : 0,
  122. "componentType" : 5121,
  123. "count" : 16,
  124. "type" : "SCALAR",
  125. "max" : [ 3 ],
  126. "min" : [ 0 ]
  127. } ],
  128. "asset" : {
  129. "generator" : "JglTF from https://github.com/javagl/JglTF",
  130. "version" : "2.0"
  131. },
  132. "buffers" : [ {
  133. "uri" : "data:application/gltf-buffer;base64,AAABAAIAAQADAAIABAAFAAYABQAHAAYACAAJAAoACQALAAoADAANAA4ADQAPAA4AAAAAAAAAAAAAAAAAZmbmPgAAAAAAAAAAAAAAAGZm5j4AAAAAZmbmPmZm5j4AAAAAzcwMPwAAAAAAAAAAAACAPwAAAAAAAAAAzcwMP2Zm5j4AAAAAAACAP2Zm5j4AAAAAAAAAAM3MDD8AAAAAZmbmPs3MDD8AAAAAAAAAAAAAgD8AAAAAZmbmPgAAgD8AAAAAzcwMP83MDD8AAAAAAACAP83MDD8AAAAAzcwMPwAAgD8AAAAAAACAPwAAgD8AAAAAAAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AwAAAAMAAAADAAAAAwAAAAIAAAACAAAAAgAAAAIAAAABAAAAAQAAAAEAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAADAAAAAwAAAAMAAAACAAAAAgAAAAIAAAACAAAAAQAAAAEAAAABAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAA=",
  134. "byteLength" : 560
  135. }, {
  136. "uri" : "data:application/gltf-buffer;base64,zcyMP83MDEAzM1NAzcyMQIfWEgAAAAAAzsojAAAAAAAVvzQAAAAAAFKzRQAAAAAA",
  137. "byteLength" : 48
  138. }, {
  139. "uri" : "data:application/gltf-buffer;base64,OTCgWweHbrKHiJtTycDzP9GSx9PywwJAX2HB/YCnC0Da5sb0hEUSQA==",
  140. "byteLength" : 40
  141. } ],
  142. "bufferViews" : [ {
  143. "buffer" : 0,
  144. "byteOffset" : 0,
  145. "byteLength" : 48,
  146. "target" : 34963
  147. }, {
  148. "buffer" : 0,
  149. "byteOffset" : 48,
  150. "byteLength" : 192,
  151. "target" : 34962
  152. }, {
  153. "buffer" : 0,
  154. "byteOffset" : 240,
  155. "byteLength" : 192,
  156. "target" : 34962
  157. }, {
  158. "buffer" : 0,
  159. "byteOffset" : 432,
  160. "byteLength" : 64,
  161. "byteStride" : 4,
  162. "target" : 34962
  163. }, {
  164. "buffer" : 0,
  165. "byteOffset" : 496,
  166. "byteLength" : 64,
  167. "byteStride" : 4,
  168. "target" : 34962
  169. }, {
  170. "buffer" : 1,
  171. "byteOffset" : 0,
  172. "byteLength" : 16
  173. }, {
  174. "buffer" : 1,
  175. "byteOffset" : 16,
  176. "byteLength" : 32
  177. }, {
  178. "buffer" : 2,
  179. "byteOffset" : 0,
  180. "byteLength" : 8
  181. }, {
  182. "buffer" : 2,
  183. "byteOffset" : 8,
  184. "byteLength" : 32
  185. } ],
  186. "materials" : [ {
  187. "pbrMetallicRoughness" : {
  188. "baseColorFactor" : [ 0.5, 1.0, 0.5, 1.0 ],
  189. "metallicFactor" : 0.0,
  190. "roughnessFactor" : 1.0
  191. },
  192. "alphaMode" : "OPAQUE",
  193. "doubleSided" : true
  194. } ],
  195. "meshes" : [ {
  196. "primitives" : [ {
  197. "extensions" : {
  198. "EXT_mesh_features" : {
  199. "featureIds" : [ {
  200. "featureCount" : 4,
  201. "attribute" : 0,
  202. "propertyTable" : 0
  203. }, {
  204. "featureCount" : 4,
  205. "attribute" : 1,
  206. "propertyTable" : 1
  207. } ]
  208. }
  209. },
  210. "attributes" : {
  211. "POSITION" : 1,
  212. "NORMAL" : 2,
  213. "_FEATURE_ID_0" : 3,
  214. "_FEATURE_ID_1" : 4
  215. },
  216. "indices" : 0,
  217. "material" : 0,
  218. "mode" : 4
  219. } ]
  220. } ],
  221. "nodes" : [ {
  222. "mesh" : 0
  223. } ],
  224. "scene" : 0,
  225. "scenes" : [ {
  226. "nodes" : [ 0 ]
  227. } ]
  228. }