I have some
compatibility problems between 3D models and terrain view, does somebody have already
encountered the problem? I add the 3D model in glTF format to the scene with
the code:
var entity =
viewer.entities.add({
position :
Cesium.Cartesian3.fromDegrees(11.44435814,46.03985842),
model : {
uri
: ‘…/…/SampleData/models/Prova/collada3.gltf’,
}
});
viewer.trackedEntity
= entity;
And then I
add the terrain view:
var terrainProvider = new
Cesium.CesiumTerrainProvider({
url :
‘//cesiumjs.org/stk-terrain/tilesets/world/tiles’
});
viewer.terrainProvider =
terrainProvider;
If I don’t
add the terrain view, the model is fixed to its position, but if I add the
terrain view the initial position of the 3d model is offset and it stats moving
with the cursor. Does anybody have any suggestion?