Geopipe / gltf2glb

GLTF to Binary GLTF (GLB) converter, supporting Cesium Batch and Instance files (b3dm and i3dm) as well.
BSD 3-Clause "New" or "Revised" License
93 stars 27 forks source link

Example of the batch table data? #8

Open mngyng opened 7 years ago

mngyng commented 7 years ago

I have a question regarding the use of gltf2glb for converting gltf files to b3dm: Should the batch table be like a json string denoting the attributes of the features, like this following one?

{   "id" : [0, 0, 0, 1, 1, 1, 2, 2],
    "color" : ["yellow", "white", "white", "green", "blue", "red", "black", "white"]   }

And if I'm understanding it correctly, each value of an attribute corresponds to one of the techniques specified in the gltf file?

Also, currently I have .gltf files that contain no information regarding the batch id. Would it be possible that I use a batch table containing the batch ids (as in the json string I showed above that says "id") and convert the .gltf files to their .b3dm counterparts?