Tips on loading/creating a new ellipsoid


I haven’t really been able to find a clear resource on how to do this, but I have seen what looks like people implementing it. Basically, I want to be able to replace Earth with the moon or Mars, but I’m not really sure how to go about it. What code is required and where would I get the textures/terrain from?


Hi Jack,

Welcome to the Cesium community!

Here is a Sandcastle tutorial that shows how to make an ellipsoid. You can use MaterialProperty, as show in the Image section of the Creating Entities guide, to add a texture to the ellipsoid.

You can also create a moon directly with Cesium.Ellipsoid.MOON, as shown in this example.