Hi,
We have a long 3D object (Say a water hose of 100 FT) which needs to be displayed on Terrain loaded with a reference height above the terrain. Currently I'm loading the entity as below,
var cesiumTerrainProviderMeshes = new Cesium.CesiumTerrainProvider({
url: ‘https://assets.agi.com/stk-terrain/world’,
requestWaterMask: true,
requestVertexNormals: true
});
viewer.terrainProvider = cesiumTerrainProviderMeshes;
var entity = viewer.entities.add({
name : url,
position : position,
orientation : orientation,
model : {
uri : url,
heightReference: Cesium.HeightReference.RELATIVE_TO_GROUND,
minimumPixelSize : 0,
maximumScale : 100,
scale: 1.79
}
});
viewer.trackedEntity = entity;
Problem here is on a FLAT land everything is working fine but as terrain loaded and if the region of interest is loaded with slopes One end of hose is above ground and other end of hose is falling on the terrain.
Here is an example, I need to display hose 10m above the ground and region of interest has a slope field with change is the altitude of 8m from start to end. When the 3D model is loaded, starting edge of Hose is 10m above the ground where as end of the model is just 2m of the ground, where I need to display the model with orientation of 10m all the way.
Please help in achieving this. Any help would be greatly appreciated!!!
Thanks,
Shiva Kumar.