PropertyAttributesClassPropertyArray.gltf 7.7 KB

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