A Subtree JSON object defines how availability information for tiles, content, and child subtrees is encoded and stored. It uses buffers and bufferViews to point to binary data that represents availability bitstreams.
Key availability fields include:
tileAvailability: Indicates which tiles are available. Can be defined by a constant value or a bitstream (referencing a buffer).contentAvailability: An array of availability objects (one per content type) indicating if content is available for specific tiles. Can be defined by constant or bitstream.childSubtreeAvailability: Indicates the availability of child subtrees. Can be defined by constant or bitstream.
When constant is used, the availability is uniform across the specified availableCount. When bitstream is used, the availability is determined by reading bits from the specified bufferViews.
{
"buffers" : [
{
"byteLength" : 8
}
],
"bufferViews" : [
{
"buffer" : 0,
"byteOffset" : 0,
"byteLength" : 2
}
],
"tileAvailability" : {
"availableCount" : 5,
"constant" : 1
},
"contentAvailability" : [
{
"availableCount" : 5,
"constant" : 1
}
],
"childSubtreeAvailability" : {
"bitstream" : 0,
"availableCount" : 4
}
}