Load Local Tile set map in Unreal

I have a large tiled dataset in xyz directory format.
In " Local directory filepath formatting" document it is said that we should use a json file as the Url input.
How can I create this json file? (PLEASE EXPLAIN IN DETAIL)

Similarly, in " Loading assets from a local server" document it is said that we should use an xml file as the Url input, but it is also vague about this xml file!! (PLEASE EXPLAIN IN DETAIL)
I have created a TMS using Global Mapper software including an XML file, but when I put it in the Url input, I got this error

LogCesium: Error: [2023-11-16 15:16:01.904] [error] [ErrorList.h:72] Errors when loading tileset:
- Error when parsing tileset JSON, error code 3 at byte offset 0

Thanks in advance

You’ll need to start by explaining in detail what you’re trying to do and what you’ve done that lead to the errors you’re seeing. It sounds like maybe you tried to point a Cesium3DTileset to a Tile Map Service (TMS)? That won’t work. A Cesium3DTileset is for loading data in the 3D Tiles format. You can then drape a 2D TMS layer over it by adding a CesiumTileMapServiceRasterOverlay component to the tileset.

Hello Mr. Ring
Thank you for your reply .
What I am trying to do:
I want to load maps (aerial images and dem) from my localhost server, without any connection to the internet.
so after I searched about it, I realized there is a solution “Loading assets from a local server”

So I tried to prepare every thing. as I understood we need a server for aerial images, ( e.g. http://localhost:portNumber/imageryAsset/tilemapresource.xml ) the important part of this step is how to create “tilemapresource.xml” file. I do not know what is the standard method for gathering aerial images with its appropriate .xml file, but I used Global Mapper for this step and it seems it works fine.

then I will need a dem map or height map (I think you should call it 3d tile sets). again I got that I should run a server which serve height map (e.g. http://localhost:portNumber/3dtilesete/layer.json )

  • here is my first question : how can I have 3d tile set and what the format of these file should be(is it ok if I download SRTM height map?)

  • second question is : how can I create or generate layer.json (is there any software to generate it? like global mapper which generates .xml file, or I should create it by myself?)

  • the third question is about the next steps. I will explain it, correct me if I do any mistakes:
    after launching both servers (aerial images and height map-or 3dtile sets)

  1. add “Blank 3D Tiles Tileset” from “Quick add basic actors” (from Cesium panel)

  2. from detail panel set local server (which serve height map or 3D tile sets, ended with.json)

  3. add “CesiumTileMapServiceRasterOverlay” component to cesium 3d tile set (which we added it in first step) - for aerial map server

  4. finally click “CesiumTileMapServiceRasterOverlay” in detail panel and set its URL to my local server (which serve aerial images like bing or google, ended with .xml)

(I adore my explanation :slightly_smiling_face: )
thank YOU in advance

Would you help me please?

Cesium3DTileset requires a dataset in 3D Tiles or quantized-mesh (layer.json) format. The easiest way to create data for use in Cesium for Unreal is with Cesium ion. After ion has prepared the data for you, you can download it for offline use. 3D Tiles in particular is an OGC community standard, so you can probably find other tools to do the job as well.

1 Like

thank you very much