Hello.
I have created terrain tiles using https://github.com/geo-data/cesium-terrain-builder and this post http://blog.mastermaps.com/2014/10/3d-terrains-with-cesium.html.
Unfortunately the result in console was always
An error occurred in "CesiumTerrainProvider": Failed to obtain terrain tile X: 0 Y: 0 Level: 0.
An error occurred in "CesiumTerrainProvider": Failed to obtain terrain tile X: 1 Y: 0 Level: 0.
And no data renders.
Now I have used https://github.com/geo-data/cesium-terrain-server to serve my tile sets on local host. Nothing was changed, but now I can analyze log on server side
::1 - - [06/Jan/2017:00:56:17 +0300] "GET /srtm/layer.json HTTP/1.1" 404 19 "http://localhost:8080/Apps/Sandcastle/templates/bucket.html" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36"
::1 - - [06/Jan/2017:00:56:18 +0300] "GET /srtm/0/0/0.terrain?v=1.0.0 HTTP/1.1" 404 19 "http://localhost:8080/Apps/Sandcastle/templates/bucket.html" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36"
::1 - - [06/Jan/2017:00:56:18 +0300] "GET /srtm/0/1/0.terrain?v=1.0.0 HTTP/1.1" 404 19 "http://localhost:8080/Apps/Sandcastle/templates/bucket.html" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36"
::1 - - [06/Jan/2017:00:57:28 +0300] "GET /tilesets/srtm/ HTTP/1.1" 404 19 "" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36"
This files and folders exists of course.
So it looks like server always returns 404 error by any reason. Any ideas?
js code:
var viewer = new Cesium.Viewer(‘cesiumContainer’);
var terrainProvider = new Cesium.CesiumTerrainProvider({
url: ‘http://localhost:8000/srtm/’
});
viewer.scene.terrainProvider = terrainProvider;