Hi All,
I’m struggling to change modelMatrix . My tileset is local coordinate system ,i want to transforms from the tile's local coordinate system to the WGS84, my code as follow:
var cesiumViewer = new Cesium.Viewer('cesiumContainer');
cesiumViewer.scene.globe.depthTestAgainstTerrain = true;
var scene = cesiumViewer.scene;
// Configure tilesets
var rtcCenter = new Cesium.Cartesian3.fromDegrees(-4.8728231291920547, 36.5093837495992);
var posMat = Cesium.Transforms.eastNorthUpToFixedFrame(rtcCenter);
var tileset = scene.primitives.add(new Cesium.Cesium3DTileset({
url: './tileset.json',
modelMatrix: posMat,
debugShowBoundingVolume: true,
debugShowContentBoundingVolume: true
}));
// Move camera to tileset bounding volume
tileset.readyPromise.then(function (tileset) {
cesiumViewer.camera.viewBoundingSphere(tileset.boundingSphere, new Cesium.HeadingPitchRange(0, -0.5, 0));
cesiumViewer.camera.lookAtTransform(Cesium.Matrix4.IDENTITY);
});
the problem is 3Dtiles model bounding volumes doesn’t match the tile's actual position as below: is something wrong?
