# Can't zoom in to ground with a custom ellipsoid

**URL:** <https://community.cesium.com/t/cant-zoom-in-to-ground-with-a-custom-ellipsoid/10221>\
**Category:** CesiumJS\
**Created:** [July 14, 2020, 2:44am UTC](https://community.cesium.com/t/cant-zoom-in-to-ground-with-a-custom-ellipsoid/10221 "2020-07-14T02:44:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![copycd](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/copycd/32/3140_2.png) [@copycd](https://community.cesium.com/u/copycd)\
**Post date:** [July 14, 2020, 2:44am UTC](https://community.cesium.com/t/cant-zoom-in-to-ground-with-a-custom-ellipsoid/10221/1 "2020-07-14T02:44:15Z")

</div>

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  
});

---

<div class="post-metadata">

**Author:** ![omar](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/omar/32/1999_2.png) [@omar](https://community.cesium.com/u/omar)\
**Post date:** [July 28, 2020, 8:31pm UTC](https://community.cesium.com/t/cant-zoom-in-to-ground-with-a-custom-ellipsoid/10221/2 "2020-07-28T20:31:32Z")

</div>

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](https://community.cesium.com/t/how-to-share-custom-sandcastle-examples/9828)

---

<div class="post-metadata">

**Author:** ![copycd](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/copycd/32/3140_2.png) [@copycd](https://community.cesium.com/u/copycd)\
**Post date:** [July 29, 2020, 4:36am UTC](https://community.cesium.com/t/cant-zoom-in-to-ground-with-a-custom-ellipsoid/10221/3 "2020-07-29T04:36:08Z")

</div>

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.

> **[Cesium Sandcastle](https://sandcastle.cesium.com/index.html#c=lZJRa4MwFIX/ysWXOiiRrmMt1pZBGaWwsUFhY+BLqreaLSaSREtX9t9ntbVqu4f5pPeee+6XE3OqIN8+cs5SLVkIUxC4hTlqliWkLttwPxyNB8NR/+IFbia+yEuXBZdrbDuUJbux4Kx+pumrkp8YGCZFZwplpGgas+CsuGYSlPImfBecvC9W47uW/E/Kjlt7yX9pr5hVdoaqCE2TuXGwSVNzAj0G2+p1cTpxnrehNsuERlj0chaiaqMvpSi7anfq23ugWqNZhi7c9n0BxeM48CEzBaySQnryEoihBhMjYB04wCrFgG12wAzEqJBUJrXCvYjgp0rn+GMw3HYx38qa3atCnUthKBOoen3YV+Y6pqHcanBhQ7nGgts3SSsi91pwpa4Ggwuysh8dwncbV+KLEtjqW542O46zigHggSWpVAYyxW1CHINJymlxA846C77QkEDrw+BB6jnNUS9kObBw6ludE/oWBLy4j6KzyThfsW/0rZnnFPqLUS5pyET0kqPidHeQxYPZU1UkhHhO8Xl90kjJ11R1nH8B)**
>
> The Cesium Sandcastle provides an interactive environment for testing Cesium code.

---

<div class="post-metadata">

**Author:** ![omar](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/omar/32/1999_2.png) [@omar](https://community.cesium.com/u/omar)\
**Post date:** [July 29, 2020, 4:53am UTC](https://community.cesium.com/t/cant-zoom-in-to-ground-with-a-custom-ellipsoid/10221/4 "2020-07-29T04:53:15Z")

</div>

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 - #3 by semper](https://community.cesium.com/t/how-to-tile-mars-themis-raster-for-cesium/10356/3)

```auto
Cesium.Ellipsoid.WGS84 = vwEllipsoid;

```

That should fix it.

> [@copycd](#):
>
> but, my 3dtiles data is not share, due to No having https file service.

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

---

<div class="post-metadata">

**Author:** ![copycd](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/copycd/32/3140_2.png) [@copycd](https://community.cesium.com/u/copycd)\
**Post date:** [July 29, 2020, 6:39am UTC](https://community.cesium.com/t/cant-zoom-in-to-ground-with-a-custom-ellipsoid/10221/5 "2020-07-29T06:39:43Z")

</div>

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

 ![캡처2](https://global.discourse-cdn.com/cesium/original/2X/7/7a477bc66df620e0b6233d89a56bc4058229e9d5.jpeg)
