I have created a tileset.json file with three levels of discrete LOD.
I use the BoundingVolume "region" type to specify model location.
Using the debugShowBoundingVolume I can see the volume is oriented in the proper location on the globe, but the model is either not inside it, or not inside the bounding box. I've tried removing the mean from the model vertex values and I've tried keeping the values non mean-offset.
Here are the important steps taken to create and display the tileset.json file
For 3 levels of decimation:
-Create OBJ file
-use obj2gltf converter to create glb file
-use gltf-pipeline with draco compression to compress glb file
-3d-tiles-tools.js glbToB3dm to convert glb to b3dm
The inside of the tileset.json looks like this:
{
"asset": {
"version": "1.0"
},
"geometricError": 500,
"root": {
"boundingVolume": {
"region": [west, south, east, north, z_min, z_max]
},
"geometricError": 10,
"refine": "REPLACE",
"content": {
"uri": texture_mesh_level_2.b3dm
},
"children": [
{
"boundingVolume": {
"region": [west, south, east, north, z_min, z_max]
},
"geometricError": 5,
"content": {
"uri": texture_mesh_level_2.b3dm
},
"children": [
{
"boundingVolume": {
"region": [west, south, east, north, z_min, z_max]
},
"geometricError": 0,
"content": {
"uri": texture_mesh_level_2.b3dm
}
}
]
}
]
}
}
west, south, east, north are in EPSG:4326 (in radians)
z_min, z_max are in meters above the WGS84 ellipsoid
The frontend code looks like this (abbreviated):
tileset = $scope.viewer.scene.primitives.add(new Cesium.Cesium3DTileset({
url : url,
debugShowBoundingVolume: true,
debugShowGeometricError: true,
debugShowUrl: true,
debugWireframe: true
}));
tileset.readyPromise.then(function(loaded_tileset) {
$scope.viewer.zoomTo(loaded_tileset);
});
It zooms to the red bounding volume at the correct location on the globe, but that's it. Checking the network it shows that the b3dm models are loading in and the objects are all there in the console. They just don't display on the viewer.
(Note that I was able to get a plain glb model to display in the browser just fine. It's just getting the 3D tiles that is giving me all sorts of problems)
I am using Cesium 1.48. Neither Chrome nor Firefox work. Ubuntu 16.04 OS.
Any help would be greatly appreciated!