Integrating Cesium with Unreal Engine 5

Madara Premawardhana
2 min readDec 4, 2023

Virtual reality and simulation have been converging, offering developers the tools to create immersive and realistic environments. Unreal Engine 5 (UE5), developed by Epic Games, is a powerful game engine known for its cutting-edge graphics and capabilities. Cesium, on the other hand, is an open-source platform for creating 3D globes and maps. Combining the strengths of both can result in stunning virtual worlds with unparalleled geographical accuracy and visual fidelity. In this article, we’ll explore the process of integrating Cesium with Unreal Engine 5 to create engaging and realistic virtual environments.

Understanding Cesium

Cesium is an open-source JavaScript library for creating 3D globes and maps that can be visualized in a web browser. It utilizes WebGL for rendering and provides a platform for building geospatial applications with high-performance 3D graphics. Cesium supports a variety of data formats, including GeoJSON, KML, and 3D Tiles, making it a versatile tool for developers working with geospatial data.

Unreal Engine 5

Unreal Engine 5, the latest iteration of Epic Games’ game engine, introduces cutting-edge features such as the Nanite virtualized geometry and Lumen global illumination technologies. These features enable developers to create highly detailed and realistic environments with unprecedented levels of detail and lighting. UE5 also includes the Chaos physics and Chaos destruction systems, enhancing the overall realism of virtual worlds.

Integrating Cesium with Unreal Engine 5

To integrate Cesium with Unreal Engine 5, developers can follow these general steps:

Step 1: Setting Up the Project

Create a new project in Unreal Engine 5 or open an existing one.
Download and install the Cesium for Unreal plugin from the official Cesium website.

Step 2: Importing Geospatial Data

Utilize Cesium’s capabilities to convert geospatial data into compatible formats like 3D Tiles.
Import the converted data into Unreal Engine 5 using the Cesium plugin.

Step 3: Configuring Cesium Sun Sky

Leverage Cesium’s Sun Sky system for realistic lighting conditions.
Adjust the position of the sun based on geographical and temporal data.

Step 4: Exploring Georeferenced Environments

Navigate the georeferenced virtual environment using Cesium’s camera and navigation features.
Implement geospatial interactions and controls for enhanced user experience.

Step 5: Leveraging Unreal Engine 5 Features

Take advantage of UE5’s advanced graphics features, such as Nanite and Lumen, to enhance visual fidelity.
Integrate Unreal Engine 5’s physics and destruction systems for realistic interactions within the geospatial environment.

Step 6: Optimizing Performance

Fine-tune the project for optimal performance by adjusting settings and LODs (Level of Detail).
Utilize Cesium’s efficient rendering techniques to handle large-scale geospatial datasets.

--

--

Madara Premawardhana

PhD Student at the University of Buckingham, School of Computing