cesium-unity icon indicating copy to clipboard operation
cesium-unity copied to clipboard

Offline 3D Tileset Fails to Load Without Internet Connection

Open Heisenberk-Karabay opened this issue 8 months ago • 5 comments

I’m trying to use Cesium for Unity with my own offline 3D Tiles data. When I run the app without an internet connection, I get the following error in the Unity Console: Image As soon as I reconnect to the internet, the tileset loads successfully. This makes offline usage impractical, since it appears to still require a connection to Cesium Ion. Is this intended behavior? If not, how can I configure Cesium for Unity to load local tilesets entirely offline?

Environment:

Unity Version: 6000.0.36f1 Cesium for Unity Version: 1.16.0

Relevant Links:

Loading local data without internet? Offline data for Cesium Unity Cesium Unity datasets tutorial (local directory) CesiumJS Ion in offline environment

Heisenberk-Karabay avatar May 15 '25 13:05 Heisenberk-Karabay

I have raised a PR about the problem: https://github.com/CesiumGS/cesium-unity/pull/575

Heisenberk-Karabay avatar May 16 '25 13:05 Heisenberk-Karabay

Hi @Heisenberk-Karabay,

I'm trying to reproduce the behavior in this issue so I can test your PR. However, I was able to load a tileset while being offline just fine:

Image

This is a tileset.json with a single root tile, stored on disk. And it's loaded via a Cesium3DTileset I created after opening the Editor and seeing the console errors. What data are you trying to load that's giving you this issue?

(This doesn't mean your PR is invalid, I just want to figure out where exactly the error is occurring. Thanks!)

j9liu avatar May 23 '25 20:05 j9liu

Image Here is my data folder i reference the "tileset.json" in here.

Image "tileset.json" is referencing to the "Data" folder.

Image "Data" folder is as shown here.

Image Tile folder consists the geometries.

I also loaded the data using a Cesium3DTileset, specifying the path to the "tileset.json" file.

Heisenberk-Karabay avatar May 26 '25 06:05 Heisenberk-Karabay

https://github.com/user-attachments/assets/8b5a5a7a-2c5a-4325-bdfb-8c4ec3874586

I’d like to clarify the issue: the tileset appears in the preview, but when I run the application, it disappears.

Heisenberk-Karabay avatar May 26 '25 10:05 Heisenberk-Karabay

Thanks for the additional info @Heisenberk-Karabay. I confirmed I can see the same thing -- the data loads fine in the Editor, but fails to show up in play mode.

j9liu avatar May 27 '25 19:05 j9liu