activate Terrain exaggeration

190 views
Skip to first unread message

pink6...@gmail.com

unread,
Sep 29, 2017, 10:43:00 AM9/29/17
to cesium-dev
Hi,

This may seem an easy question.
But I need to activate the terrain exaggeration, without calling a new Cesium.Viewer...
for now I have:
var viewer = new Cesium.Viewer('cesiumContainer',{
terrainProvider: terrainProvider,
terrainExaggeration : 1.0202
});

But I need to activate it only at a certain function for only certain data.

therefore what I am trying to do is the following:
initial settings don't have terrain at all.
but at one point I have a function, if clicked, then:
var terrainProvider = new Cesium.CesiumTerrainProvider({
url : '//assets.agi.com/stk-terrain/world'
});
region = Cesium.GeoJsonDataSource.load('sample.goejson');
viewer.terrainProvider = terrainProvider;
viewer.terrainExaggeration = 1.0201;
viewer.dataSources.add(region);

The terrain will be shown, but not exaggerated.

any thoughts?
Thanks

Gabby Getz

unread,
Oct 2, 2017, 1:33:26 PM10/2/17
to cesium-dev
Hey there,

Terrain exaggeration is currently immutable, which means it can only be set in the constructor options. See the discussion here for why it's currently like that. There's already an issue open for making realtime changes here if you want to track this feature.

Thanks!
Gabby


--
You received this message because you are subscribed to the Google Groups "cesium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cesium-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

pink...@gmail.com

unread,
Oct 4, 2017, 3:26:33 AM10/4/17
to cesium-dev
> To unsubscribe from this group and stop receiving emails from it, send an email to cesium-dev+...@googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.

Ah okay, thank you for your answer.
will keep an eye on the link.

mholt...@gmail.com

unread,
Dec 5, 2018, 9:00:02 AM12/5/18
to cesium-dev
Is there already a progress in this issue? It would be great to change the terrain exaggeration while the cesium globe is already processed and visible.
Another question: is it possible to exaggerate tilesets added as aprimitive to theglobe in the same way?

Omar Shehata

unread,
Dec 6, 2018, 11:38:14 AM12/6/18
to cesium-dev
I don't think there is, but feel free to bump the issue or chime in there:


I don't know of a way to exaggerate tilesets that way. You could scale them with a modelMatrix but that might not be the same thing. What kind of kind of application are you trying to do that requires this? 
Reply all
Reply to author
Forward
0 new messages