PropertyAttributesMeshPrimitivePropertyAttributesInvalidLength.gltf 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327
  1. {
  2. "extensions" : {
  3. "EXT_structural_metadata" : {
  4. "schema" : {
  5. "id": "SimplePropertyAttributeSchema",
  6. "classes" : {
  7. "exampleMetadataClass" : {
  8. "name" : "Example metadata class",
  9. "description" : "An example metadata class for property attributes",
  10. "properties" : {
  11. "intensity" : {
  12. "name" : "Example intensity property",
  13. "description" : "An example property for the intensity, with component type FLOAT32",
  14. "type" : "SCALAR",
  15. "componentType" : "FLOAT32"
  16. },
  17. "classification" : {
  18. "name" : "Example classification property",
  19. "description" : "An example property for the classification, with the classificationEnumType",
  20. "type" : "ENUM",
  21. "enumType" : "classificationEnumType"
  22. }
  23. }
  24. }
  25. },
  26. "enums" : {
  27. "classificationEnumType" : {
  28. "values" : [ {
  29. "name" : "ExampleClassificationA",
  30. "value" : 0
  31. }, {
  32. "name" : "ExampleClassificationB",
  33. "value" : 1
  34. }, {
  35. "name" : "ExampleClassificationC",
  36. "value" : 2
  37. } ]
  38. }
  39. }
  40. },
  41. "propertyAttributes" : [ {
  42. "class" : "exampleMetadataClass",
  43. "properties" : {
  44. "intensity" : {
  45. "attribute" : "_INTENSITY"
  46. },
  47. "classification" : {
  48. "attribute" : "_CLASSIFICATION"
  49. }
  50. }
  51. } ]
  52. }
  53. },
  54. "extensionsUsed" : [ "EXT_structural_metadata" ],
  55. "accessors" : [ {
  56. "bufferView" : 0,
  57. "byteOffset" : 0,
  58. "componentType" : 5123,
  59. "count" : 6,
  60. "type" : "SCALAR",
  61. "max" : [ 3 ],
  62. "min" : [ 0 ]
  63. }, {
  64. "bufferView" : 1,
  65. "byteOffset" : 0,
  66. "componentType" : 5126,
  67. "count" : 4,
  68. "type" : "VEC3",
  69. "max" : [ 0.0, 1.0, 0.0 ],
  70. "min" : [ -1.0, 0.0, 0.0 ]
  71. }, {
  72. "bufferView" : 2,
  73. "byteOffset" : 0,
  74. "componentType" : 5126,
  75. "count" : 4,
  76. "type" : "VEC3",
  77. "max" : [ 0.0, 0.0, 1.0 ],
  78. "min" : [ 0.0, 0.0, 1.0 ]
  79. }, {
  80. "bufferView" : 3,
  81. "byteOffset" : 0,
  82. "componentType" : 5126,
  83. "count" : 4,
  84. "type" : "SCALAR",
  85. "max" : [ 0.25 ],
  86. "min" : [ 0.25 ]
  87. }, {
  88. "bufferView" : 4,
  89. "byteOffset" : 0,
  90. "componentType" : 5123,
  91. "count" : 4,
  92. "type" : "SCALAR",
  93. "max" : [ 0 ],
  94. "min" : [ 0 ]
  95. }, {
  96. "bufferView" : 5,
  97. "byteOffset" : 0,
  98. "componentType" : 5123,
  99. "count" : 6,
  100. "type" : "SCALAR",
  101. "max" : [ 3 ],
  102. "min" : [ 0 ]
  103. }, {
  104. "bufferView" : 6,
  105. "byteOffset" : 0,
  106. "componentType" : 5126,
  107. "count" : 4,
  108. "type" : "VEC3",
  109. "max" : [ 1.0, 1.0, 0.0 ],
  110. "min" : [ 0.0, 0.0, 0.0 ]
  111. }, {
  112. "bufferView" : 7,
  113. "byteOffset" : 0,
  114. "componentType" : 5126,
  115. "count" : 4,
  116. "type" : "VEC3",
  117. "max" : [ 0.0, 0.0, 1.0 ],
  118. "min" : [ 0.0, 0.0, 1.0 ]
  119. }, {
  120. "bufferView" : 8,
  121. "byteOffset" : 0,
  122. "componentType" : 5126,
  123. "count" : 4,
  124. "type" : "SCALAR",
  125. "max" : [ 0.5 ],
  126. "min" : [ 0.5 ]
  127. }, {
  128. "bufferView" : 9,
  129. "byteOffset" : 0,
  130. "componentType" : 5123,
  131. "count" : 4,
  132. "type" : "SCALAR",
  133. "max" : [ 1 ],
  134. "min" : [ 1 ]
  135. }, {
  136. "bufferView" : 10,
  137. "byteOffset" : 0,
  138. "componentType" : 5123,
  139. "count" : 6,
  140. "type" : "SCALAR",
  141. "max" : [ 3 ],
  142. "min" : [ 0 ]
  143. }, {
  144. "bufferView" : 11,
  145. "byteOffset" : 0,
  146. "componentType" : 5126,
  147. "count" : 4,
  148. "type" : "VEC3",
  149. "max" : [ 2.0, 1.0, 0.0 ],
  150. "min" : [ 1.0, 0.0, 0.0 ]
  151. }, {
  152. "bufferView" : 12,
  153. "byteOffset" : 0,
  154. "componentType" : 5126,
  155. "count" : 4,
  156. "type" : "VEC3",
  157. "max" : [ 0.0, 0.0, 1.0 ],
  158. "min" : [ 0.0, 0.0, 1.0 ]
  159. }, {
  160. "bufferView" : 13,
  161. "byteOffset" : 0,
  162. "componentType" : 5126,
  163. "count" : 4,
  164. "type" : "SCALAR",
  165. "max" : [ 0.75 ],
  166. "min" : [ 0.75 ]
  167. }, {
  168. "bufferView" : 14,
  169. "byteOffset" : 0,
  170. "componentType" : 5123,
  171. "count" : 4,
  172. "type" : "SCALAR",
  173. "max" : [ 2 ],
  174. "min" : [ 2 ]
  175. } ],
  176. "asset" : {
  177. "generator" : "JglTF from https://github.com/javagl/JglTF",
  178. "version" : "2.0"
  179. },
  180. "buffers" : [ {
  181. "uri" : "data:application/gltf-buffer;base64,AAABAAIAAQADAAIAAACAvwAAAAAAAAAAAAAAAAAAAAAAAAAAAACAvwAAgD8AAAAAAAAAAAAAgD8AAAAAAAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AACAPgAAgD4AAIA+AACAPgAAAAAAAAAAAAAAAAAAAAAAAAEAAgABAAMAAgAAAAAAAAAAAAAAAAAAAIA/AAAAAAAAAAAAAAAAAACAPwAAAAAAAIA/AACAPwAAAAAAAAAAAAAAAAAAgD8AAAAAAAAAAAAAgD8AAAAAAAAAAAAAgD8AAAAAAAAAAAAAgD8AAAA/AAAAPwAAAD8AAAA/AQAAAAEAAAABAAAAAQAAAAAAAQACAAEAAwACAAAAgD8AAAAAAAAAAAAAAEAAAAAAAAAAAAAAgD8AAIA/AAAAAAAAAEAAAIA/AAAAAAAAAAAAAAAAAACAPwAAAAAAAAAAAACAPwAAAAAAAAAAAACAPwAAAAAAAAAAAACAPwAAQD8AAEA/AABAPwAAQD8CAAAAAgAAAAIAAAACAAAA",
  182. "byteLength" : 420
  183. } ],
  184. "bufferViews" : [ {
  185. "buffer" : 0,
  186. "byteOffset" : 0,
  187. "byteLength" : 12,
  188. "target" : 34963
  189. }, {
  190. "buffer" : 0,
  191. "byteOffset" : 12,
  192. "byteLength" : 48,
  193. "target" : 34962
  194. }, {
  195. "buffer" : 0,
  196. "byteOffset" : 60,
  197. "byteLength" : 48,
  198. "target" : 34962
  199. }, {
  200. "buffer" : 0,
  201. "byteOffset" : 108,
  202. "byteLength" : 16,
  203. "target" : 34962
  204. }, {
  205. "buffer" : 0,
  206. "byteOffset" : 124,
  207. "byteLength" : 16,
  208. "byteStride" : 4,
  209. "target" : 34962
  210. }, {
  211. "buffer" : 0,
  212. "byteOffset" : 140,
  213. "byteLength" : 12,
  214. "target" : 34963
  215. }, {
  216. "buffer" : 0,
  217. "byteOffset" : 152,
  218. "byteLength" : 48,
  219. "target" : 34962
  220. }, {
  221. "buffer" : 0,
  222. "byteOffset" : 200,
  223. "byteLength" : 48,
  224. "target" : 34962
  225. }, {
  226. "buffer" : 0,
  227. "byteOffset" : 248,
  228. "byteLength" : 16,
  229. "target" : 34962
  230. }, {
  231. "buffer" : 0,
  232. "byteOffset" : 264,
  233. "byteLength" : 16,
  234. "byteStride" : 4,
  235. "target" : 34962
  236. }, {
  237. "buffer" : 0,
  238. "byteOffset" : 280,
  239. "byteLength" : 12,
  240. "target" : 34963
  241. }, {
  242. "buffer" : 0,
  243. "byteOffset" : 292,
  244. "byteLength" : 48,
  245. "target" : 34962
  246. }, {
  247. "buffer" : 0,
  248. "byteOffset" : 340,
  249. "byteLength" : 48,
  250. "target" : 34962
  251. }, {
  252. "buffer" : 0,
  253. "byteOffset" : 388,
  254. "byteLength" : 16,
  255. "target" : 34962
  256. }, {
  257. "buffer" : 0,
  258. "byteOffset" : 404,
  259. "byteLength" : 16,
  260. "byteStride" : 4,
  261. "target" : 34962
  262. } ],
  263. "materials" : [ {
  264. "pbrMetallicRoughness" : {
  265. "baseColorFactor" : [ 1.0, 1.0, 1.0, 1.0 ],
  266. "metallicFactor" : 0.0,
  267. "roughnessFactor" : 1.0
  268. },
  269. "alphaMode" : "OPAQUE",
  270. "doubleSided" : true
  271. } ],
  272. "meshes" : [ {
  273. "primitives" : [ {
  274. "extensions" : {
  275. "EXT_structural_metadata" : {
  276. "propertyAttributes" : []
  277. }
  278. },
  279. "attributes" : {
  280. "POSITION" : 1,
  281. "NORMAL" : 2,
  282. "_INTENSITY" : 3,
  283. "_CLASSIFICATION" : 4
  284. },
  285. "indices" : 0,
  286. "material" : 0,
  287. "mode" : 4
  288. }, {
  289. "extensions" : {
  290. "EXT_structural_metadata" : {
  291. "propertyAttributes" : [ 0 ]
  292. }
  293. },
  294. "attributes" : {
  295. "POSITION" : 6,
  296. "NORMAL" : 7,
  297. "_INTENSITY" : 8,
  298. "_CLASSIFICATION" : 9
  299. },
  300. "indices" : 5,
  301. "material" : 0,
  302. "mode" : 4
  303. }, {
  304. "extensions" : {
  305. "EXT_structural_metadata" : {
  306. "propertyAttributes" : [ 0 ]
  307. }
  308. },
  309. "attributes" : {
  310. "POSITION" : 11,
  311. "NORMAL" : 12,
  312. "_INTENSITY" : 13,
  313. "_CLASSIFICATION" : 14
  314. },
  315. "indices" : 10,
  316. "material" : 0,
  317. "mode" : 4
  318. } ]
  319. } ],
  320. "nodes" : [ {
  321. "mesh" : 0
  322. } ],
  323. "scene" : 0,
  324. "scenes" : [ {
  325. "nodes" : [ 0 ]
  326. } ]
  327. }