Skip to main content

Cesium for Omniverse: Esri ArcGIS CityEngine

This is a guide to combining Esri ArcGIS CityEngine content with Cesium ion datasets within NVIDIA Omniverse, using the Esri ArcGIS CityEngine connector and the Cesium for Omniverse extension.

Cesium for Omniverse: Esri ArcGIS CityEngine Tutorial - Building data exported from Esri ArcGIS CityEngine georeferenced onto Cesium World Terrain with Bing Maps Aerial imagery.

Building data exported from Esri ArcGIS CityEngine georeferenced onto Cesium World Terrain with Bing Maps Aerial imagery.

You’ll learn how to:

  • Prepare and export 3D content from ArcGIS CityEngine.
  • Accurately position this content on Cesium World Terrain.

Prerequisites

  • Know how to set up a basic Cesium for Omniverse stage in NVIDIA Omniverse USD Composer. Check out our Cesium for Omniverse Quickstart guide for instructions on starting with the Cesium for Omniverse extension.
  • An ArcGIS CityEngine scene representing a real-world location, georeferenced to a UTM-based coordinate system. Follow this guide to create a scene using the Get Map Data tool in CityEngine.
  • The ArcGIS CityEngine Omniverse connector installed from the Omniverse Launcher.

Georeferencing concepts

Architectural software commonly favors local Cartesian coordinate systems over geographic ones to meet the demands of precision, accuracy, and simplified workflows. Local coordinate systems offer a convenient method for defining and manipulating precise measurements without the complications associated with geographic factors like Earth's curvature and latitude-longitude coordinates.

When it comes to Cesium for Omniverse, it typically adopts a geographic, Earth-centered Earth-fixed coordinate system, representing Earth as an accurate 3D globe. Consequently, to position an architectural model represented in local coordinates onto a geographic dataset such as a globe, a conversion process becomes necessary.

Fortunately, CityEngine scenes are typically built from real-world map data and provide the necessary information to assist with converting from local coordinate systems to a geographic one. It is important to note that while the workflow in this tutorial can accurately position CityEngine data on the globe, it does not feature a way to account for the curvature of Earth. This means for particularly large CityEngine scenes, data at the edges of the model may not be accurately positioned with respect to the surface of the Cesium globe.

Depending on your use case, this may not be an issue. A common workflow is to use a geospatial dataset such as the Cesium globe as “background” content, where its primary function is to provide visual context only and lower levels of accuracy are acceptable. Ultimately, your use case will determine the levels of accuracy required in your design and context data.

1Prepare and export your CityEngine scene

1Open your scene in CityEngine. This tutorial assumes that you already have a CityEngine scene geolocated to a UTM coordinate system.

Cesium for Omniverse: Esri ArcGIS CityEngine Tutorial

2Click on Edit > Preferences to open the Preferences window, and then click on the Scene entry in the list to display the scene preferences. Take note of the EPSG code shown in the Scene coordinate system entry; this will be needed later in the tutorial. Close the Preferences window.

Cesium for Omniverse: Esri ArcGIS CityEngine Tutorial

3In the 3D viewport, select all geometry for exporting by drag-selecting with the mouse or pressing CTRL + A on the keyboard.

4Go to File > Export Models, select the Omniverse Connector option from the list, and click Next.

5In the export settings window under the General Settings section, ensure the Terrain Layers drop-down is set to Export all terrain layers if you want to include the CityEngine terrain in the export.

Cesium for Omniverse: Esri ArcGIS CityEngine Tutorial

6Expand the Geometry Settings section and click the Center button. This will create an offset that shifts your data from its current location, moving it closer to the origin (0,0,0) of the scene.

Cesium for Omniverse: Esri ArcGIS CityEngine Tutorial

7Set the Y-Offset to zero. This will help us position the height of the model accurately once in Omniverse.

Cesium for Omniverse: Esri ArcGIS CityEngine Tutorial

8Write down the X-Offset and Z-Offset values in your favorite text editor. We’ll need these to perform the conversion between local coordinates and geographic coordinates in Step 2.

Cesium for Omniverse: Esri ArcGIS CityEngine Tutorial

9Click the Finish button to export your scene to USD.

2Calculate geospatial position

1Visit the epsg.io coordinate calculator in your browser.

2Under Input coordinate system, click Change.

Cesium for Omniverse: Esri ArcGIS CityEngine Tutorial

3Search for the EPSG code obtained from the CityEngine preferences window and select it. For the sample data in this tutorial, code 32632 is used.

Cesium for Omniverse: Esri ArcGIS CityEngine Tutorial

4Under Output coordinate system, ensure that EPSG:4979 WGS 84 is selected and that the format under Output coordinates is set to dec.

Cesium for Omniverse: Esri ArcGIS CityEngine Tutorial

5Under Input coordinates, negate the X-Offset value obtained from the CityEngine Export models window and then enter it in the X field. Enter the Z-Offset value in the Y field.

Cesium for Omniverse: Esri ArcGIS CityEngine Tutorial
Information

Be sure to negate the X-Offset value first. For example, if CityEngine had the value -500,000, you would enter the value 500,000 in the X field.

6Click the Transform button to convert the coordinates.

7The resulting latitude and longitude should be displayed under Output coordinates. Write these values down as they will be used in the next step. You can also click Show position on a map to confirm the provided coordinates align with the correct location on Earth for your project.

Cesium for Omniverse: Esri ArcGIS CityEngine Tutorial

3Import and georeference

1Open Omniverse USD Composer, ensuring the Omniverse Fabric Scene Delegate is enabled as per the quickstart tutorial.

2Open the USD file created during Step 1. If nothing is visible, press F to zoom extents. You should see your CityEngine content within the stage. If your content appears dark, try choosing the Sunny Sky present lighting option from the top right of the viewport.

Cesium for Omniverse: Esri ArcGIS CityEngine Tutorial

3From the Cesium window, add Cesium World Terrain + Bing Maps Aerial imagery to the stage.

Cesium for Omniverse: Esri ArcGIS CityEngine Tutorial

4From the stage, select the CesiumGeoreference prim to display its properties in the Property window.

Cesium for Omniverse/CityEngine tutorial: From the stage, select the CesiumGeoreference prim to display its properties in the Property window.

5In the Property window, enter the latitude and longitude obtained from EPSG.io. For now, enter the height value as 0.0. A more accurate height will be calculated later.

Cesium for Omniverse/CityEngine tutorial: In the Property window, enter the latitude and longitude obtained from EPSG.io. For now, enter the height value as 0.0. A more accurate height will be calculated later.

6You should see the tops of the CityEngine buildings appearing through the terrain in their correct locations, indicating accurate latitude and longitude have been used.

Cesium for Omniverse: Esri ArcGIS CityEngine Tutorial

7CityEngine UTM scenes using Esri World Elevation have their height values defined based on mean sea level. Cesium World Terrain has its height values defined based on the WGS84 ellipsoid. To align the two as accurately as possible, the difference between mean sea level and ellipsoid height needs to be calculated. This difference can be used to offset Cesium World Terrain vertically.

8Visit the UNAVCO Height Calculator in your browser.

9In the coordinates box, enter the project’s latitude and longitude, followed by a height of 0.0, separated by commas. Click Submit.

Cesium for Omniverse: Esri ArcGIS CityEngine Tutorial

10Scroll down to find the results, and copy the value from the Geoid Height (m) column.

Cesium for Omniverse: Esri ArcGIS CityEngine Tutorial

11Paste this value into the Height field of the CesiumGeoreference prim in Omniverse.

Cesium for Omniverse/CityEngine tutorial: Paste this value into the Height field of the CesiumGeoreference prim in Omniverse.

12Cesium World Terrain should lower and now accurately align with the terrain exported from CityEngine.

Cesium for Omniverse: Esri ArcGIS CityEngine Tutorial
Information

Height datums used across projects will vary. Other methods may be required to accurately calculate the difference in height datum from your project data to Cesium World Terrain or other datasets you’re using.

Next steps

Follow our Lighting the Stage and Capturing Images and Video tutorials to prepare your project and capture amazing visuals.

Content and code examples at cesium.com/learn are available under the Apache 2.0 license. You can use the code examples in your commercial or non-commercial applications.