Moon terrain for Unity

Hi there, I was able to bring the Moon level into my project, however I am having issues navigating to the surface of the moon. I added it as a level under CesiumGeoreference, but I am unable to explore it and get up close, place objects on it. Any suggestions? Is there a better way to add moon terrain into the project? It is not showing up in the “Quick Add” window. Thank you!

Hi @VRTravelExpo,

Have you created a custom ellipsoid for your project? This is a necessary step for rendering the moon, as it greatly differs in dimensions from the Earth.

In the plugin folder we have a WGS84 asset that specifies the radii of the WGS84 ellipsoid. You can make a copy and replace the radii with that of the moon, and it should behave better. But of course, let us know if you run into any issues along the way :smile:

It would be helpful if this showed up on the Quick Add window! I’ve added a Github issue here with the suggestion:

Where can I find this plugin folder? Also, is there any repo or documentation on how to get started with Moon Terrain in Unity?

To create a Moon ellipsoid in Cesium for Unity:

  1. Open the Project browser and navigate to a suitable folder within your project.
  2. Right-click and choose Create → Cesium → Ellipsoid.
  3. Rename the created New Cesium Ellipsoid to Moon or similar.
  4. In the Inspector, change the X,Y, and Z radii to 1737400.0
  5. On your CesiumGeoreference object, select your new ellipsoid for the Ellipsoid Override property.
1 Like