With the new support for Cesium 3D Tiles recently added to Unreal Engine, Unreal Engine users can now combine the high-fidelity rendering power of Unreal Engine with high-quality 3D geospatial data. Mesh data can be loaded not only from Cesium ion, but also from SkylineGlobe Server, which exposes the mesh layers as 3D Tiles for the Unreal Engine user.
To load SGS mesh layers in Unreal Engine, follow the steps below. Most of the information below is also included in Skyline's SGS webinar.
Step 1: Download and install the free Cesium for Unreal plugin:
- Install and run the Epic Games Launcher.
- On the left side menu, click on Unreal Engine.
- In the Marketplace tab, search for Cesium for Unreal.
- In Content Detail, click Install to Engine to install the plugin on your Unreal Engine account.
Step 2: Activate the Cesium for Unreal plugin
- On the top-right corner, click Launch to Launch the Unreal Engine. The Unreal Project Browser is opened.
- Select Games, and create a new Blank project.
- In the Edit menu, select Plugins, and then search for “Cesium for Unreal" and Enable it. Wait a couple of minutes till the Unreal Engine is restarted.
Step 3: Add a Cesium 3D Tileset
- In the Unreal Engine's Cesium panel on the left, click the plus icon next to Blank 3D Tiles Tileset.
- This adds a new blank Cesium3DTileset entry to the scene, under the Outliner tab.
- In the Details section, under Cesium, select:
- Georeference = CesiumGeoReference
- Source = From URL
- URL = Enter the SGS URL. Use the following format: https://[ServerName]/SG/skyline/b3dm/[LayerID]/tileset.json
Note: An alias can be used in the URL instead of the layer ID.
E.g., Https://cloud.skylineglobe.com/SG/demos/b3dm/Auburn/tileset.json
Step 4: Point the Viewport at Your 3D Tileset
- Double-click your Cesium 3D Tileset in the Outliner to point the viewport at your tileset.
-
Note: The model may not be oriented correctly because the Unreal Editor camera uses “+Z direction is up” orientation. To correct the orientation, set the origin in the georeference to the location of the 3D Tile.
To place the georeference origin at the camera's current location, in the Outliner, select the CesiumGeoreference. Then, in the Details section, click Place Georeference Origin Here.
- If the scene turns black, this is likely because it is night in the location of your tileset. In the Cesium panel, click the button to add the Cesium SunSky item. In the Outliner, select CesiumSunSky, and modify the Date and Time properties.
- Click the green Plan button to play the simulation.
Step 5: Adding global context
- To add terrain, sign in to your Cesium Ion account from the Cesium panel.
- In the Cesium panel, click the + next to Cesium World Terrain + Bing Maps Aerial imagery, or another Cesium World Terrain option of your choosing.
For Bin Maps, you can use the Default token.
For more information, see https://cesium.com/learn/unreal/unreal-datasets/.