I’m struggling to display a 3D Tileset in Cesium for Unity (v1.17.0). Despite following various guides and adjusting settings, the Tileset remains invisible in both the Scene and Game views.I guess it may caused by wrong camera setting.
Project Details
-
Unity Version: 2022.3.59f1
-
Cesium for Unity Version: 1.17.0
Tileset Details
I’m using a local 3D Tileset with the following tileset.json :
{
"asset": {
"version": "1.0",
"tilesetVersion": "TilesetPublisher.0.2.10.1",
"extras": {
"iTwinMaterials": [
{"id": "0", "name": ""},
{"id": "0x20000002dc4", "name": "Concrete_7: prostructures_materials"}
]
}
},
"root": {
"refine": "REPLACE",
"geometricError": 2.003125,
"boundingVolume": {
"box": [-0.05, -0.05, -0.05, 32.05, 0, 0, 0, 32.05, 0, 0, 0, 32.05]
},
"content": {
"uri": "6-0-0.glb",
"boundingVolume": {
"box": [0.0, 0.0, -0.012339673721214695, 15.0, 0, 0, 0, 17.5, 0, 0, 0, 22.795404326278785]
}
},
"transform": [
-7.865567022318265e-7, 0.9999999999996907, 0.0, 0,
-7.865313016199744e-7, -6.186514668045046e-13, 0.9999999999996907, 0,
0.9999999999993814, 7.865567022315832e-7, 7.865313016202177e-7, 0,
6378137.0, -2.3729729661282895e-15, 8.903840934947754e-16, 1
]
}
}
- Tileset Location: Local file at
C:\bim\geo\tileset\tileset.json
Current Setup
Based on the tileset.json, the Tileset origin appears to be at (Latitude: 0, Longitude: 0, Height: 0) in ECEF coordinates. I’ve configured the CesiumGeoreference as follows:
-
Latitude: 0
-
Longitude: 0
-
Height: 1000
-
Scale: 1 (tried 10 to enlarge the Tileset)
Camera Setup (DynamicCamera):
-
Position: (0, 0, 1000)
-
Rotation: (45, 0, 0)
Cesium3DTileset Setup:
-
Source: From URL
-
URL:
file:///C:/bim/geo/tileset/tileset.json
Issue
Despite these settings, the Tileset is not visible in the Game or Scene view. Here’s what I’ve tried:
-
Used
Place Origin Herein the Cesium panel to align the Unity origin with (0, 0, 1000). -
Navigated in Play mode using WASD keys and checked the Scene view by focusing on the
Cesium3DTilesetbounding box -
Any other suggestions to make the Tileset visible?
Thank you for any insights or suggestions!