PropertyAttributesClassPropertyString.gltf 7.6 KB

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