# Cesium unity without terrain

**URL:** <https://community.cesium.com/t/cesium-unity-without-terrain/30109>\
**Category:** Cesium for Unity\
**Created:** [February 23, 2024, 3:32am UTC](https://community.cesium.com/t/cesium-unity-without-terrain/30109 "2024-02-23T03:32:48Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![davidkhan](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/davidkhan/32/14000_2.png) [@davidkhan](https://community.cesium.com/u/davidkhan)\
**Post date:** [February 23, 2024, 3:32am UTC](https://community.cesium.com/t/cesium-unity-without-terrain/30109/1 "2024-02-23T03:32:48Z")

</div>

Hello , we are testing car controller in unity with Cesium terrain but the roads are not really usable , is there anyway not to use terrain and just create plain mesh.  
I try to serve one flat terrain like 0.terrain for all xyz requests , **it work** but meshes are shaking.  
Is there any solution for that?

---

<div class="post-metadata">

**Author:** ![janine](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/janine/32/5135_2.png) [@janine](https://community.cesium.com/u/janine)\
**Post date:** [February 23, 2024, 3:19pm UTC](https://community.cesium.com/t/cesium-unity-without-terrain/30109/3 "2024-02-23T15:19:13Z")

</div>

Hey @davidkhan,

Welcome to the community! Do you mind sharing a screenshot or video of how “meshes are shaking”?

Usually, mesh problems happen when the `CesiumGeoreference` origin is far away from the meshes. This is due to floating-point precision errors. If you press “Place Origin Here” on the `CesiumGeoreference` in a place closer to the meshes, that can resolve the artifacts.

But you may be referring to something different, so please let us know.

---

<div class="post-metadata">

**Author:** ![davidkhan](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/davidkhan/32/14000_2.png) [@davidkhan](https://community.cesium.com/u/davidkhan)\
**Post date:** [February 23, 2024, 4:58pm UTC](https://community.cesium.com/t/cesium-unity-without-terrain/30109/4 "2024-02-23T16:58:27Z")

</div>

Hello , thanks for reply , i think there are users already discuss about that.

> [@Ellipsoid Terrain](https://community.cesium.com/t/ellipsoid-terrain/24940):
>
> Greetings I am a developer working for a company trying to integrate Cesium Unity to our main product. We are planning to use Cesium Ion but in some cases we need to be able to use simple raster tiles of the earth mapped to the globe Ellipsoid. I am a beginner in Cesium, after reading the doc It seems to me ths can be done in js using EllipsoidTerrainProvider. Is this correct ? If yes is it on your roadmap to implement it on Unity ? Thanks and regards

> [@Using a global terrain layer without height detail](https://community.cesium.com/t/using-a-global-terrain-layer-without-height-detail/17763/11):
>
> Hi @agallegos, Thank you for the update. While waiting for the implementation of an MSL ellipsoid, I will give a shot with the DEM file you’ve shared. I will share with you if there’re any errors during the process. Thank you once again for your help! Cheers! -Ridhwan

Like i said previous thread , I tried solution to **server 0.terrain only for every xyz terrain requests** , it work but keeps flickering.  
I have provided video link and also you can see `CesiumGeoreference` origin is fine as well.  
My requirement doesn’t need to 0 elevation, but need to even flat surface. for example if elevation is 60 , i need all elevation 60 , otherwise moving gameobjects are not usable on ground on default terrain.

Please have a look at video link , it is dropbox link

[https://www.dropbox.com/scl/fi/aolyg24nm1nmuzror2emc/Cesiumunity.mov?rlkey=6sc121qyq0ekrolgr0fdlhrjs&e=1&dl=0](https://www.dropbox.com/scl/fi/aolyg24nm1nmuzror2emc/Cesiumunity.mov?rlkey=6sc121qyq0ekrolgr0fdlhrjs&e=1&dl=0)

[0.terrain.zip](https://community.cesium.com/uploads/short-url/lpxfwWE7fRgKxROj6WHweNy4fva.zip) (339 Bytes)

---

<div class="post-metadata">

**Author:** ![copilot](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/copilot/32/14132_2.png) [@copilot](https://community.cesium.com/u/copilot)\
**Post date:** [February 25, 2024, 4:01pm UTC](https://community.cesium.com/t/cesium-unity-without-terrain/30109/5 "2024-02-25T16:01:32Z")

</div>

it is feasible to implement flat world with flat terrain.

---

<div class="post-metadata">

**Author:** ![janine](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/janine/32/5135_2.png) [@janine](https://community.cesium.com/u/janine)\
**Post date:** [February 27, 2024, 3:35pm UTC](https://community.cesium.com/t/cesium-unity-without-terrain/30109/6 "2024-02-27T15:35:53Z")

</div>

Hi @davidkhan,

I completely understand your need for a flatter terrain surface. Unfortunately, I don’t know from a glance what’s wrong with your approach, and it doesn’t seem like the video is loading. Can you please resend it so we can better understand your issue?

---

<div class="post-metadata">

**Author:** ![davidkhan](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/davidkhan/32/14000_2.png) [@davidkhan](https://community.cesium.com/u/davidkhan)\
**Post date:** [March 18, 2024, 5:25pm UTC](https://community.cesium.com/t/cesium-unity-without-terrain/30109/7 "2024-03-18T17:25:01Z")

</div>

> [@janine](#):
>
> I completely understand your need for a flatter terrain surface. Unfortunately, I don’t know from a glance what’s wrong with your approach, and it doesn’t seem like the video is loading. Can you please resend it so we can better understand your issue?

Hello , please have a look at here , the video not showing seems to be forum script issue.  
i make space between dropbox and .com , please remove space.

www. dropbox .com/scl/fi/aolyg24nm1nmuzror2emc/Cesiumunity.mov?rlkey=6sc121qyq0ekrolgr0fdlhrjs&e=1&dl=0

---

<div class="post-metadata">

**Author:** ![janine](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/janine/32/5135_2.png) [@janine](https://community.cesium.com/u/janine)\
**Post date:** [March 21, 2024, 5:26pm UTC](https://community.cesium.com/t/cesium-unity-without-terrain/30109/8 "2024-03-21T17:26:17Z")

</div>

Hi @davidkhan,

Thank you for resharing. I can see how the car model is “shaking” in an undesirable way. Based on what I see, I have a few followup questions:

- Does the car contain a `CesiumOriginShift` component?
  - If it DOES, does the issue still happen if you remove both itself and the `CesiumGlobeAnchor` component from the object?
  - If it does NOT, does the issue still happen when you attach one?

- Can you reproduce this bug with a simpler mesh? Like a cube, or a non-animated car?

Answers to the above would help us greatly. Thank you!
