How to access .asc data in cesium

Hello! Have you checked out Cesium ion? It can take your DTM file and create a terrainProvider that integrates it with a base terrain of your choosing (for example Cesium World Terrain). You can then use the terrainProvider in your Cesium application.

Hi! According to the documentation, the URL in the Cesium.Cesium3DTileset() constructor should be a link to a tileset.json file, which is different from a .asc file and a .tif file.

I recommend signing up for an Cesium ion account (it’s free for non-commercial and non-government use) and it will convert the file into terrain for you. After you upload your file, the upload gets its own asset ID, which you can include in your application with code like the following:

var viewer = new Cesium.Viewer('cesiumContainer',{
    terrainProvider : new Cesium.CesiumTerrainProvider({
        url: Cesium.IonResource.fromAssetId(assetID)