Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13,530 changes: 13,530 additions & 0 deletions Apps/SampleData/Mars.czml

Large diffs are not rendered by default.

276 changes: 276 additions & 0 deletions Apps/SampleData/MarsPointsOfInterest.geojson

Large diffs are not rendered by default.

Binary file added Apps/SampleData/models/Mars/Curiosity.glb
Binary file not shown.
Binary file added Apps/SampleData/models/Mars/Ingenuity.glb
Binary file not shown.
Binary file added Apps/SampleData/models/Mars/Perseverance.glb
Binary file not shown.
555 changes: 555 additions & 0 deletions Apps/Sandcastle/gallery/Mars.html

Large diffs are not rendered by default.

Binary file added Apps/Sandcastle/gallery/Mars.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

- Added support for the [EXT_mesh_primitive_restart](https://github.com/KhronosGroup/glTF/pull/2478) glTF extension. [#12764](https://github.com/CesiumGS/cesium/issues/12764)
- Added spherical harmonics support for Gaussian splats. Currently supported with the SPZ compression format.
- Added `Ellipsoid.MARS` for use with Mars terrain and imagery. [#12828](https://github.com/CesiumGS/cesium/pull/12828)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a heads up that I tweaked this—The changelog applies to the Source code itself, not (typically) to Sandcastle. So, we usually omit calling out new examples. On the other hand, the code change Ellipsoid.MARS needs to be called out specifically.


#### Deprecated :hourglass_flowing_sand:

Expand Down
9 changes: 9 additions & 0 deletions packages/engine/Source/Core/Ellipsoid.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,15 @@ Ellipsoid.MOON = Object.freeze(
),
);

/**
* An Ellipsoid instance initialized to a sphere with the mean radii of Mars.
* Source: https://epsg.io/104905
*
* @type {Ellipsoid}
* @constant
*/
Ellipsoid.MARS = Object.freeze(new Ellipsoid(3396190.0, 3396190.0, 3376200.0));

Ellipsoid._default = Ellipsoid.WGS84;
Object.defineProperties(Ellipsoid, {
/**
Expand Down
Loading