Hi!
I am trying to access cesium ion .terrain files from Unity via the rest API.
I uploaded a couple of geotiff files on my account so I have them as one asset.
Now in Unity I get the asset endpoint via the asset id to get the asset token.
Then I try to get the terrain file from “https://api.cesium.com/v1/assets/{AssetID}/{ZoomLevel}/{X}/{Y}.terrain”.
But the only response I get is Error 405 code:“MethodNotAllowed” message:“GET is not allowed”.
Also read that there should be a “https://api.cesium.com/v1/assets/{AssetID}/layer.json”, but I get the same response. I tested with my own asset and the cesium world asset “1”.
I pieced the process together from a couple of different sources but I am not sure if it is correct or if I am missing something.
Some help would be greatly appreciated!
Also in some references they talk about the .terrain files as if they are heightmaps, in others like they are meshes.
I guess they have been heightmaps in the past but are meshes now? or can I somehow choose which one I want?