PropertyAttributesClassPropertyMaxNotInRange.gltf 7.9 KB

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