Re: [cesium-dev] Increase the vertical appearance of mountains

62 views
Skip to first unread message

Matthew Amato

unread,
Sep 16, 2015, 10:43:08 PM9/16/15
to cesiu...@googlegroups.com
Sorry for the obvious question, but the Hello World demo does not have terrain enabled.  Are you enabling it?

Either way, we don't have a way to exaggerate terrain at this time, but it is on the roadmap.

On Mon, Sep 14, 2015 at 12:19 PM, <steven...@gmail.com> wrote:
Excuse the newbie question... As with many other developers, I'm "porting" a Google Earth plugin-based website to Cesium. Cesium looks great!

When I zoom in using the Hello World demo, the mountains appear 2D (i.e., when viewing a mountain from the side, it appears flat). How can I make them appear 3D and can I control the vertical exaggeration (i.e., ge.getOptions().setTerrainExaggeration(10)).

Thanks.

--
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+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

steven...@gmail.com

unread,
Sep 17, 2015, 2:56:56 PM9/17/15
to cesium-dev
Thanks Matthew. My real question was, "How do I enabled it?" I figured it out, and here it is for the next newb who stumbles on this:

var viewer = new Cesium.Viewer('cesiumContainer');
var cesiumTerrainProviderMeshes = new Cesium.CesiumTerrainProvider({
url : '//assets.agi.com/stk-terrain/world',
requestWaterMask : true,
requestVertexNormals : true
});
viewer.terrainProvider = cesiumTerrainProviderMeshes;
Reply all
Reply to author
Forward
0 new messages