Despite researching all the previous posts on properly configuring CesiumTerrainProvider I have still not been able to visualize my .terrain tiles constructed by cesium terrain builder.
I’m trying to host both Cesium and terrain on a local server using “python -m SimpleHTTPServer 8000”
I am receiving the errors “Failed to obtain terrain tile X: 1 Y: 0 Level: 0” and “Failed to obtain terrain tile X: 0 Y: 0 Level: 0”. I made sure to include the empty .terrain tiles 0/0/0.terrain, 0/1/0.terrain, and the layer.json properly.
The server feed acknowledges that the get request to the layer.json and .terrain files were successful:
127.0.0.1 - - [28/Aug/2015 14:53:01] “GET /Apps/rapid/data/tilesets/terrain/sample/0/1/0.terrain?v=(version) HTTP/1.1” 200 -
I’m assuming this is an issue with CORS. I’ve attempted the suggestion of using a proxy ie. DefaultProxy(’/proxy/’) within the CesiumTerrainProvider and was receiving “message File not found” (404). Maybe I was mistaken in using ‘/proxy/’ verbatim and it really is pseudocode for an appropriate proxy url? Either way, I lack knowledge on how servers work and need help with these last few steps.
I’d really appreciate any suggestions to make the terrain visible,