Exagerate the elevation factor so we get the higher terrain in OL3-Cesium

I am developing an application which will add WMS services on top of 3d model.

var ol2d = new ol.Map({

layers: [layer,overlay],

target: ‘map2d’,

view: view

});
ol2d.setView(new ol.View({

projection: ‘EPSG:3857’,

center: [1624133.977003, 8504847.578895],

zoom: 3

}));

ol3d = new olcs.OLCesium({map: ol2d})

ol3d.setEnabled(true);

var scene = ol3d.getCesiumScene();

var terrainProvider = new Cesium.CesiumTerrainProvider({

url : ‘//assets.agi.com/stk-terrain/world/

});

scene.terrainProvider = terrainProvider;

``

Which is working fine. But i think the elevation factor is minimum. (may be by default). Is there any way to exagerate the elevation factor so we get the higher terrain using Ol3-Cesium?

Hi,

Have you tried setting terrainExaggeration on OL3Cesium option.sceneOptions?

Guillaume

Thanks for the response. I have not tried yet. Is there any examples please?

To my knowledge you are the first one trying this.

Please share you experience with it.

Guillaume

Well, i dont find anything in OL3-Cesium API for terrain exaggeration. Can you share me if you find any? Thanks in advance.

Have you tried this?

const ol3d = new OLCesium({
sceneOptions: {
terrainExaggeration: 2
}
});

Yes thanks. This worked.