Defining a non-Earth size ellipsoid

Hi,

I understand I can scale down the current Earth-sized ellipsoid to get something approaching a different-sized planetary body, but I assume this will also affect the terrain height generated - if I scale the Earth down by 0.5, my terrain elevation will now be half height as well. Since we currently do not have a terrain exaggeration feature, I’m kinda stuck.

Is there a way to currently define a different size ellipsoid? ie in CesiumJS I can specify ‘new Cesium.Moon(options)’ and get a lunar ellipsoid, or specify ellipsoid(size)

Thanks!
Alan

Hello @mahalobay ,

I just opened this GitHub issue for allowing custom ellipsoids in Cesium for Unreal. Since we are not sure when we can get around to doing this, I provided some general notes in the issue of where to start on implementing this. If you would be interested in contributing, feel free to give it a shot!

Thanks @Nithin_Pranesh !

I’ll keep an eye on this issue. However, assuming that I understand code is a bad idea :slight_smile: I am but a lowly user, hehehe

in CesiumGeoreference.h

UCLASS()
class CESIUMRUNTIME_API ACesiumGeoreference : public AActor {
GENERATED_BODY()

public:
UFUNCTION(BlueprintCallable, Category = “Moon”)
static ACesiumGeoreference* GetDefaultForActor(AActor* Actor);

ACesiumGeoreference();

//Moon的radius:赤道radius:1738100米;两极radius:1736000米;扁率:0.0012;/平均= 1737100米
const CesiumGeospatial::Ellipsoid& ellipsoid = CesiumGeospatial::Ellipsoid(1738100, 1738100, 1736000);

//then use : this-> ellipsoid.xxxxx(…)

2 Likes

Thanks qudaxia! I am unfortunately C++ challenged but am happy to hear that it seems pretty straightforward to add!

@Nithin_Pranesh any progress on the github ticket?

Hi all, returning to this dev project after many months. Has there been any update on defining on non-earth size ellipsoid? I tried looking in the latest docs but did not come across anything.

Thanks!

你好,请问能给一段完整的代码吗?或者加个朋友。

but how to use it, in CesiumGeoreference.h? and how to call ellipsoid.xxxxx()?Thanks a lot!!!