Hi, I’m working on a pipeline to produce a tileset with hierarchical lodding of CAD models. Initially I was doing the coordinate system incorrectly for boundingVolumes mixing Z and Y axis up - but now that I’ve fixed that up, my tiles disappear when I get close.
Enabling the bounding volumes seems like they are correctly aligned:
However when I get close like this:
And then perform one more scroll, everything unloads. I’m a little confused as when I had Z and Y mixed up (volumes were more vertical) I had a better experience, but now I can’t explain it.
Here’s a onedrive upload of the tileset in a .zip: Microsoft OneDrive - Access files anywhere. Create docs with free Office Online.
My code looks like this:
<div id="cesiumContainer"></div>
<script>
var viewer = new Cesium.Viewer('cesiumContainer',
{
scene3DOnly: true,
timeline: false,
sceneMode : Cesium.SceneMode.SCENE3D,
infoBox: false,
animation: false
});
viewer.extend(Cesium.viewerCesium3DTilesInspectorMixin);
var inspectorViewModel = viewer.cesium3DTilesInspector.viewModel;
var tileset = viewer.scene.primitives.add(new Cesium.Cesium3DTileset({
url : './tilesets/Stadium6/tileset.json',
allowPicking: true,
debugShowBoundingVolume: true
}));
inspectorViewModel.tileset = tileset;
viewer.zoomTo(tileset);
</script>