Can't zoom in to ground with a custom ellipsoid

I wish to use my Ellipsoid.
terrain and image are correctly work.
but, camera working and view frustume is not correctly work.
I think that the camera is still processing on WGS84.
how can i do?
please.

var vwEllipsoid = new Cesium.Ellipsoid( 6378137, 6378137, 637813 );
var vwGlobe = new Cesium.Globe(vwEllipsoid);
var vwMapProjection = new Cesium.GeographicProjection(vwEllipsoid);
var targetEllipsoid = vwEllipsoid;
var targetGlobe = vwGlobe;
var targetMapProjection = vwMapProjection;

var myIonImageProvider = new Cesium.IonImageryProvider({ assetId: 28782,
ellipsoid: targetEllipsoid })

var viewer = new Cesium.Viewer(‘cesiumContainer’, {
shadows : false,
mapProjection : targetMapProjection,
ellipsoid : targetEllipsoid,
globe:targetGlobe
});

Can you explain the issue a bit more? Sharing a screenshot or a Sandcastle would help a lot. See: How to share custom Sandcastle examples

yes, here is…
you can see when mouse wheel zoom to ground.
camera can’t move down below WGS84 Ellipsoid.
original my issue is what 3d object is not shown on my ellipsoid.
but, my 3dtiles data is not share, due to No having https file service.
sorry.

Try overriding the default ellipsoid as shown in this discussion:

So in your code you would do: How to tile Mars themis raster for Cesium

Cesium.Ellipsoid.WGS84 = vwEllipsoid;

That should fix it.

You can share your 3D Tiles on the web by uploading it to Cesium ion (https://cesium.com/ion). You can create an account for free.

Thanks for your answer.
That is resolved.
very very thanks.

1 Like