1+ {
2+ "extensions" : {
3+ "EXT_structural_metadata" : {
4+ "schema" : {
5+ "id" : " FeatureIdAttributeAndPropertyTableSchema" ,
6+ "classes" : {
7+ "exampleMetadataClass" : {
8+ "name" : " Example metadata class" ,
9+ "description" : " An example metadata class" ,
10+ "properties" : {
11+ "example_VEC3_FLOAT32" : {
12+ "name" : " Example VEC3 FLOAT32 property" ,
13+ "description" : " An example property, with type VEC3, with component type FLOAT32" ,
14+ "type" : " VEC3" ,
15+ "componentType" : " FLOAT32" ,
16+ "max" : [ 3.0 , 3.0 , 3.0 ]
17+ }
18+ }
19+ }
20+ }
21+ },
22+ "propertyTables" : [ {
23+ "name" : " Example property table" ,
24+ "class" : " exampleMetadataClass" ,
25+ "count" : 4 ,
26+ "properties" : {
27+ "example_VEC3_FLOAT32" : {
28+ "values" : 4
29+ }
30+ }
31+ } ]
32+ }
33+ },
34+ "extensionsUsed" : [ " EXT_mesh_features" , " EXT_structural_metadata" ],
35+ "accessors" : [ {
36+ "bufferView" : 0 ,
37+ "byteOffset" : 0 ,
38+ "componentType" : 5123 ,
39+ "count" : 24 ,
40+ "type" : " SCALAR" ,
41+ "max" : [ 15 ],
42+ "min" : [ 0 ]
43+ }, {
44+ "bufferView" : 1 ,
45+ "byteOffset" : 0 ,
46+ "componentType" : 5126 ,
47+ "count" : 16 ,
48+ "type" : " VEC3" ,
49+ "max" : [ 1.0 , 1.0 , 0.0 ],
50+ "min" : [ 0.0 , 0.0 , 0.0 ]
51+ }, {
52+ "bufferView" : 2 ,
53+ "byteOffset" : 0 ,
54+ "componentType" : 5126 ,
55+ "count" : 16 ,
56+ "type" : " VEC3" ,
57+ "max" : [ 0.0 , 0.0 , 1.0 ],
58+ "min" : [ 0.0 , 0.0 , 1.0 ]
59+ }, {
60+ "bufferView" : 3 ,
61+ "byteOffset" : 0 ,
62+ "componentType" : 5121 ,
63+ "count" : 16 ,
64+ "type" : " SCALAR" ,
65+ "max" : [ 3 ],
66+ "min" : [ 0 ]
67+ } ],
68+ "asset" : {
69+ "generator" : " JglTF from https://github.com/javagl/JglTF" ,
70+ "version" : " 2.0"
71+ },
72+ "buffers" : [ {
73+ "uri" : " data:application/gltf-buffer;base64,AAABAAIAAQADAAIABAAFAAYABQAHAAYACAAJAAoACQALAAoADAANAA4ADQAPAA4AAAAAAAAAAAAAAAAAZmbmPgAAAAAAAAAAAAAAAGZm5j4AAAAAZmbmPmZm5j4AAAAAzcwMPwAAAAAAAAAAAACAPwAAAAAAAAAAzcwMP2Zm5j4AAAAAAACAP2Zm5j4AAAAAAAAAAM3MDD8AAAAAZmbmPs3MDD8AAAAAAAAAAAAAgD8AAAAAZmbmPgAAgD8AAAAAzcwMP83MDD8AAAAAAACAP83MDD8AAAAAzcwMPwAAgD8AAAAAAACAPwAAgD8AAAAAAAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AAAAAAAAAAAAAAAAAAAAAAEAAAABAAAAAQAAAAEAAAACAAAAAgAAAAIAAAACAAAAAwAAAAMAAAADAAAAAwAAAA==" ,
74+ "byteLength" : 496
75+ }, {
76+ "uri" : " data:application/gltf-buffer;base64,AAAAAM3MzD3NzEw+AACAP83MjD+amZk/AAAAQGZmBkDNzAxAAABAQGZmRkDNzExA" ,
77+ "byteLength" : 48
78+ } ],
79+ "bufferViews" : [ {
80+ "buffer" : 0 ,
81+ "byteOffset" : 0 ,
82+ "byteLength" : 48 ,
83+ "target" : 34963
84+ }, {
85+ "buffer" : 0 ,
86+ "byteOffset" : 48 ,
87+ "byteLength" : 192 ,
88+ "target" : 34962
89+ }, {
90+ "buffer" : 0 ,
91+ "byteOffset" : 240 ,
92+ "byteLength" : 192 ,
93+ "target" : 34962
94+ }, {
95+ "buffer" : 0 ,
96+ "byteOffset" : 432 ,
97+ "byteLength" : 64 ,
98+ "byteStride" : 4 ,
99+ "target" : 34962
100+ }, {
101+ "buffer" : 1 ,
102+ "byteOffset" : 0 ,
103+ "byteLength" : 48
104+ } ],
105+ "materials" : [ {
106+ "pbrMetallicRoughness" : {
107+ "baseColorFactor" : [ 0.5 , 1.0 , 0.5 , 1.0 ],
108+ "metallicFactor" : 0.0 ,
109+ "roughnessFactor" : 1.0
110+ },
111+ "alphaMode" : " OPAQUE" ,
112+ "doubleSided" : true
113+ } ],
114+ "meshes" : [ {
115+ "primitives" : [ {
116+ "extensions" : {
117+ "EXT_mesh_features" : {
118+ "featureIds" : [ {
119+ "featureCount" : 4 ,
120+ "attribute" : 0 ,
121+ "propertyTable" : 0
122+ } ]
123+ }
124+ },
125+ "attributes" : {
126+ "POSITION" : 1 ,
127+ "NORMAL" : 2 ,
128+ "_FEATURE_ID_0" : 3
129+ },
130+ "indices" : 0 ,
131+ "material" : 0 ,
132+ "mode" : 4
133+ } ]
134+ } ],
135+ "nodes" : [ {
136+ "mesh" : 0
137+ } ],
138+ "scene" : 0 ,
139+ "scenes" : [ {
140+ "nodes" : [ 0 ]
141+ } ]
142+ }
0 commit comments