I’m encountering an issue while utilizing the 3DTILES_content_voxel extension. I’m attempting to organize two voxels within the tileset.json file, but Cesium fails to load, indicating an error message: “Root must have content,” despite the fact that my root node indeed lacks content. The specific voxel content is contained within the children array. How can this issue be resolved? Thanks for your assistance!
{
"asset": {
"version": "1.1"
},
"geometricError": 40.0,
"schema": {
"id": "voxel",
"classes": {
"voxel": {
"properties": {
"aa": {
"type": "SCALAR",
"componentType": "FLOAT32"
}
}
}
}
},
"root": {
"boundingVolume": {
"box": [ 1.0, 0.0, 0.0, 2.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0 ]
},
"geometricError": 40.0,
"refine": "REPLACE",
"children": [
{
"boundingVolume": {
"box": [ 2.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0 ]
},
"geometricError": 32.0,
"refine": "REPLACE",
"content": {
"uri": "voxel2/voxel_{level}__{x}_{y}_{z}.json",
"extensions": {
"3DTILES_content_voxels": {
"dimensions": [
4,
4,
4
],
"class": "voxel"
}
}
},
"implicitTiling" : {
"subdivisionScheme" : "OCTREE",
"subtreeLevels" : 1,
"availableLevels" : 1,
"subtrees" : {
"uri" : "subtrees/{level}.{x}.{y}.{z}.subtree"
}
}
},
{
"boundingVolume": {
"box": [ 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0 ]
},
"geometricError": 32.0,
"refine": "REPLACE",
"content": {
"uri": "voxel1/voxel_{level}__{x}_{y}_{z}.json",
"extensions": {
"3DTILES_content_voxels": {
"dimensions": [
4,
4,
4
],
"class": "voxel"
}
}
},
"implicitTiling" : {
"subdivisionScheme" : "OCTREE",
"subtreeLevels" : 1,
"availableLevels" : 1,
"subtrees" : {
"uri" : "subtrees/{level}.{x}.{y}.{z}.subtree"
}
}
}
]
},
"extensionsUsed": [
"3DTILES_content_voxels"
],
"extensionsRequired": [
"3DTILES_content_voxels"
]
}
test-dataset.zip (2.6 KB)