Cesium map offline usage

Hi, is there any possibility of using the Cesium map in Unity offline on the Oculus Quest (Android) platform?
We are going to test Cesium usage in the application connected to the internet as well, but the connection won’t be stable, so we need to have some preloaded map or smth like that.
By the way, we also need to limit the map zone to some area, is that possible? It is going to be like a table with a map on it, and a map should limited to table size, but there should be a possibility to scroll that map. Maybe Cesium SDK has some out-of-the-box solutions for such cases?
Thanks in advance!

1 Like

Hi @tsktEugene, welcome to the community!

is there any possibility of using the Cesium map in Unity offline on the Oculus Quest (Android) platform?

Cesium for Unity supports loading tilesets from file:/// URLs or from a localhost web server running on the device. The trick is to get the data you need onto the device.

If you have your own data, and you uploaded it to Cesium ion for tiling, then you can simply download the tiled data from ion and you’re good to go.

If you’re using Google Photorealistic 3D Tiles or Bing Maps, there is unfortunately no way at all due to Google and Microsoft’s licensing terms.

Other Cesium-provided data can be licensed for offline use:

By the way, we also need to limit the map zone to some area, is that possible?

You can use a CesiumTileExcluder plus a custom material to achieve this. We have an Unreal sample that does this, but unfortunately don’t have one for Unity yet.

The PR that added the feature explains how it can be done:

Hi @Kevin_Ring, thanks for the answer!

Cesium for Unity supports loading tilesets from file:/// URLs or from a localhost web server running on the device. The trick is to get the data you need onto the device.

If you have your own data, and you uploaded it to Cesium ion for tiling, then you can simply download the tiled data from ion and you’re good to go.

Is it available to test and use in the free Community plan, or do we need to have some paid plan?

I believe the community plan allows you to download tilesets created from data you uploaded yourself. Please remember that it is for non-commercial use, though.

And what about Cesium-provided data? Is it free for testing?
Looks like I can’t download it.
For example, for Cesium OSM Buildings I see the message “Downloads are not available for this asset.”

You can’t download Cesium OSM Buildings in its entirety (it’s very large), but you can clip out sections and download those.

Understood
So, basically, we need to have some region in offline mode with good-quality maps like Google Photorealistic 3D Tiles for example.
The question is, do you have some free or paid tools to create region map data that could be uploaded to Cesion ion for tiling and can be used later in offline mode?

If you can find a suitable 3D model of your area (some cities provide models as open data), you can upload it to Cesium ion to create 3D Tiles, and then you can download those for offline use.

You may also be interested in the recently-announced partnership with Vexcel, who have city models in 3D Tiles format available for offline use:

If none of that helps, you can hire a company like Aerometrex to fly an aircraft around your area of interest and generate a photogrammetry model.