# Custom terrain produced using cesium-terrain-builder

**URL:** <https://community.cesium.com/t/custom-terrain-produced-using-cesium-terrain-builder/8035>\
**Category:** CesiumJS\
**Created:** [February 25, 2019, 12:25pm UTC](https://community.cesium.com/t/custom-terrain-produced-using-cesium-terrain-builder/8035 "2019-02-25T12:25:47Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![holiday](https://avatars.discourse-cdn.com/v4/letter/h/d2c977/32.png) [@holiday](https://community.cesium.com/u/holiday)\
**Post date:** [February 25, 2019, 12:25pm UTC](https://community.cesium.com/t/custom-terrain-produced-using-cesium-terrain-builder/8035/1 "2019-02-25T12:25:47Z")

</div>

1. A concise explanation of the problem you're experiencing.

Completely generate quantized-mesh-terrain using cesium-terrain-builder docker.  
but error occur when loading cesium.js in browser

error message is

An error occurred in "w": Failed to obtain terrain tile X: 1 Y: 0 Level: 0.  
Cesium.js:459 An error occurred in "w": Failed to obtain terrain tile X: 0 Y: 0 Level: 0.

2. A minimal code example. If you've found a bug, this helps us reproduce and repair it.

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var viewer = new Cesium.Viewer('cesiumContainer', {  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;imageryProvider: new Cesium.createWorldImagery(),  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;selectionIndicator: false,  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;baseLayerPicker: true,  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;homeButton: false,  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sceneModePicker: false,  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;timeline: false,  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;animation: false,  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;shadows: false,  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;vrButton: true,  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;infoBox: true,  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;navigationHelpButton: false,  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;geocoder: false,  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;viewer.infoBox.frame.removeAttribute('sandbox');  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var terrainProvider = new Cesium.CesiumTerrainProvider({  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;url: './terrain'  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;viewer.scene.terrainProvider = terrainProvider;

3. Context. Why do you need to do this? We might know a better way to accomplish your goal.

calculate volume

4. The Cesium version you're using, your operating system and browser.

1.54  
chrome and firefox

---

<div class="post-metadata">

**Author:** ![holiday](https://avatars.discourse-cdn.com/v4/letter/h/d2c977/32.png) [@holiday](https://community.cesium.com/u/holiday)\
**Post date:** [February 25, 2019, 12:28pm UTC](https://community.cesium.com/t/custom-terrain-produced-using-cesium-terrain-builder/8035/2 "2019-02-25T12:28:07Z")

</div>

and upload image at thread is blocked??  
I can't find any button related with upload file

---

<div class="post-metadata">

**Author:** ![omar](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/omar/32/1999_2.png) [@omar](https://community.cesium.com/u/omar)\
**Post date:** [February 27, 2019, 2:35am UTC](https://community.cesium.com/t/custom-terrain-produced-using-cesium-terrain-builder/8035/3 "2019-02-27T02:35:30Z")

</div>

Does the browser console output a more descriptive error message, or perhaps a network error?

Also, if you’ve got a heightmap/DEM and you’re trying to generate quantized-mesh, you could upload it to [cesium.com/ion](http://cesium.com/ion). There is an offline CLI version of that available too:

> **[Cesium ion On-Premise Docs | cesium.com](https://cesium.com/docs/on-premise/)**
>
> Cesium is geospatial. Use Cesium ion's simple workflow to create 3D maps of your geospatial data for visualization, analysis, and sharing. For developers, use the open-source CesiumJS library to create custom 3D mapping apps.

For attaching photos, looks like google groups only allows moderators/admins to attach photos for some reason, but I just enabled attaching files so you should at least be able to do that. You can also just upload any screenshots to [imgur.com](http://imgur.com) and link them here.

---

<div class="post-metadata">

**Author:** ![holiday](https://avatars.discourse-cdn.com/v4/letter/h/d2c977/32.png) [@holiday](https://community.cesium.com/u/holiday)\
**Post date:** [February 27, 2019, 2:55am UTC](https://community.cesium.com/t/custom-terrain-produced-using-cesium-terrain-builder/8035/4 "2019-02-27T02:55:27Z")

</div>

I know about Cesium ion and i already use it and serve from ion server.  
but later if data amount is larger. i have to pay for using ion server.  
So i trying to find how to serve terrain from my(custom) server.  
Thank you

---

<div class="post-metadata">

**Author:** ![Mark\_Erikson](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/mark_erikson/32/2024_2.png) [@Mark\_Erikson](https://community.cesium.com/u/Mark_Erikson)\
**Post date:** [February 28, 2019, 4:46pm UTC](https://community.cesium.com/t/custom-terrain-produced-using-cesium-terrain-builder/8035/5 "2019-02-28T16:46:04Z")

</div>

Side-tracking the conversation a bit:

This is the first mention I’d heard of an “on-premise” version of the Cesium Ion functionality.

Looking at [https://cesium.com/docs/on-premise/tutorials/hosting-3d-content/](https://cesium.com/docs/on-premise/tutorials/hosting-3d-content/) , I see instructions that describe unzipping a server tool, but I don’t see any details on pricing, licensing, downloads, or anything like that.

Are there further details on what the “on-premise” aspect includes?

---

<div class="post-metadata">

**Author:** ![omar](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/omar/32/1999_2.png) [@omar](https://community.cesium.com/u/omar)\
**Post date:** [March 4, 2019, 2:41pm UTC](https://community.cesium.com/t/custom-terrain-produced-using-cesium-terrain-builder/8035/6 "2019-03-04T14:41:06Z")

</div>

That’s a good question Mark!

The on-premise tools have only recently been made public. Right now the only way to buy (or just get more info/evaluate etc.) is to shoot Tim ([tim@cesium.com](mailto:tim@cesium.com)) an email.
