I can’t load the terrain file to the cesium. Now I will describle how I did it step by step. Hope this will help you find out where I went wrong.
Basiclly I am following the tutorial in this post https://bertt.wordpress.com/2016/12/08/visualizing-terrains-with-cesium/ . The terrain.tif can be downlaod in the post link.
Built the Cesium-Terrain-Builder into several exeuable files.
Using command line described on the github page to generate the terrain tiles.
ctb -o ./terrain-tiles dem.tif
Follow the steps of how to install Cesium-terrain-server . Using go, and generate a cesium-terrain-server.exe in my GOPATH.
Using cmd to setup the terrain tiles service
cesium-terrain-server -web-dir …/data/tilesets/terrain/texel -port 8000
- In my visual studio code, I write the code shown below
- And I get the error message, and display an empty canvas with stars in the background.
Can anyone help me? Thanks!