# 3DTileset disappear when too close with CesiumPolygonRasterOverlay

**URL:** <https://community.cesium.com/t/3dtileset-disappear-when-too-close-with-cesiumpolygonrasteroverlay/24083>\
**Category:** Cesium for Unreal\
**Created:** [May 17, 2023, 9:09am UTC](https://community.cesium.com/t/3dtileset-disappear-when-too-close-with-cesiumpolygonrasteroverlay/24083 "2023-05-17T09:09:00Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![kuyrem1](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/kuyrem1/32/13707_2.png) [@kuyrem1](https://community.cesium.com/u/kuyrem1)\
**Post date:** [May 17, 2023, 9:09am UTC](https://community.cesium.com/t/3dtileset-disappear-when-too-close-with-cesiumpolygonrasteroverlay/24083/1 "2023-05-17T09:09:01Z")

</div>

Hey, I am trying to use the Cartographic Polygon and Polygon Raster Overlay, to cut holes into my terrain, with World Terrain it’s working fine. But with 3DTileset, at far distances it’s working, but when I come closer, near Cartographic Polygon tiles disappear. I am using UE4.27.

 ![image](https://global.discourse-cdn.com/cesium/original/2X/4/49bc10038c945f556b23ea67b7e5785bff636925.jpeg)  
 ![image](https://global.discourse-cdn.com/cesium/original/2X/a/a8addb9919163cb79af7d48ef8d4c7228e80ec67.jpeg)

Thanks for any tips or help.

---

<div class="post-metadata">

**Author:** ![Kevin\_Ring](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/kevin_ring/32/2003_2.png) [@Kevin\_Ring](https://community.cesium.com/u/Kevin_Ring)\
**Post date:** [May 17, 2023, 9:24am UTC](https://community.cesium.com/t/3dtileset-disappear-when-too-close-with-cesiumpolygonrasteroverlay/24083/2 "2023-05-17T09:24:04Z")

</div>

I’m not sure what would cause that. Can you give us exact steps to reproduce it?

By the way, new versions of the plugin are no longer being released for UE 4.27. You should move to UE5 as soon as you can.

---

<div class="post-metadata">

**Author:** ![kuyrem1](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/kuyrem1/32/13707_2.png) [@kuyrem1](https://community.cesium.com/u/kuyrem1)\
**Post date:** [May 17, 2023, 9:44am UTC](https://community.cesium.com/t/3dtileset-disappear-when-too-close-with-cesiumpolygonrasteroverlay/24083/3 "2023-05-17T09:44:31Z")

</div>

Thanks for your fast reply,  
I cant move to UE5 because my project need to be on 4.27 😕  
For the step by step :  
-place a new 3D cesium tileset in a new map

- change source from url and type : [https://tile.googleapis.com/v1/3dtiles/root.json?key=AIzaSyDmPivxMPv\_RzstnVKuXxLD0rLuWOEJGNU](https://tile.googleapis.com/v1/3dtiles/root.json?key=AIzaSyDmPivxMPv_RzstnVKuXxLD0rLuWOEJGNU) .  
-place a cesium cartographic polygon  
-add to Cesium3DTileSet a CesiumPolygonRasterOverlay component
- click on + and select the Cartographic Polygon.  
The hole should be there, but if you go closer, you’ll see that tiles disappear.

---

<div class="post-metadata">

**Author:** ![Kevin\_Ring](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/kevin_ring/32/2003_2.png) [@Kevin\_Ring](https://community.cesium.com/u/Kevin_Ring)\
**Post date:** [May 17, 2023, 11:44am UTC](https://community.cesium.com/t/3dtileset-disappear-when-too-close-with-cesiumpolygonrasteroverlay/24083/4 "2023-05-17T11:44:07Z")

</div>

I’m not able to reproduce this following your procedure. Even as I zoom in, only the tiles inside the polygon are excluded. I’m using UE 5.1, but I can’t think of any reason that would matter.

What version of Cesium for Unreal are you using?

Also, are there any messages in your Output Log? One possibility is that you’re hitting the rate limit on the Google 3D Tiles, so those zoomed-in tiles are simply failing to load and it has nothing to do with the polygon.

---

<div class="post-metadata">

**Author:** ![kuyrem1](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/kuyrem1/32/13707_2.png) [@kuyrem1](https://community.cesium.com/u/kuyrem1)\
**Post date:** [May 17, 2023, 12:10pm UTC](https://community.cesium.com/t/3dtileset-disappear-when-too-close-with-cesiumpolygonrasteroverlay/24083/5 "2023-05-17T12:10:01Z")

</div>

I am using Cesium 1.24.0 .  
When the tiles disappear, I got this in the log :

 ![image](https://global.discourse-cdn.com/cesium/original/2X/8/805c2eaa040bac2b18ee8f0e2dce2beedb6fcc53.png)  
How can I repair that ?

---

<div class="post-metadata">

**Author:** ![kuyrem1](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/kuyrem1/32/13707_2.png) [@kuyrem1](https://community.cesium.com/u/kuyrem1)\
**Post date:** [May 17, 2023, 12:47pm UTC](https://community.cesium.com/t/3dtileset-disappear-when-too-close-with-cesiumpolygonrasteroverlay/24083/6 "2023-05-17T12:47:18Z")

</div>

![image](https://global.discourse-cdn.com/cesium/original/2X/9/9b620dd17abc24f2a8f170d2a4fbda5bd02be2f5.jpeg)  
Same problem with 5.1 and Cesium 1.26. But no errors in the log. It’s strange.

---

<div class="post-metadata">

**Author:** ![Kevin\_Ring](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/kevin_ring/32/2003_2.png) [@Kevin\_Ring](https://community.cesium.com/u/Kevin_Ring)\
**Post date:** [May 17, 2023, 10:07pm UTC](https://community.cesium.com/t/3dtileset-disappear-when-too-close-with-cesiumpolygonrasteroverlay/24083/7 "2023-05-17T22:07:45Z")

</div>

Can you please try doing this in the Google sample level in the Cesium for Unreal Samples project, and see if you have a problem there as well?

---

<div class="post-metadata">

**Author:** ![kuyrem1](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/kuyrem1/32/13707_2.png) [@kuyrem1](https://community.cesium.com/u/kuyrem1)\
**Post date:** [May 18, 2023, 11:45am UTC](https://community.cesium.com/t/3dtileset-disappear-when-too-close-with-cesiumpolygonrasteroverlay/24083/8 "2023-05-18T11:45:03Z")

</div>

Same with the cesium sample in the Google sample level.

 ![image](https://global.discourse-cdn.com/cesium/original/2X/6/6f1155cd312f923be270b46755a5cbfb65adf215.jpeg)  
Here’s a video that show the problem : [2023 05 18 13 14 53 - YouTube](https://youtu.be/J9o_9gRc1JM)  
As you can see in the video, with the basic 3Dtileset the cut is a little off and tiles disappear. But when I use the bing imagery terrain, it’s working properly

---

<div class="post-metadata">

**Author:** ![Kevin\_Ring](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/kevin_ring/32/2003_2.png) [@Kevin\_Ring](https://community.cesium.com/u/Kevin_Ring)\
**Post date:** [May 18, 2023, 12:04pm UTC](https://community.cesium.com/t/3dtileset-disappear-when-too-close-with-cesiumpolygonrasteroverlay/24083/9 "2023-05-18T12:04:27Z")

</div>

One thing I noticed in your video is that you dragged the Cesium3DTileset into the world from the Place Actors panel, so it’s not located at Location 0,0,0. This is likely the cause of the offset. I’m not sure if it could also be the cause of the larger problem.

---

<div class="post-metadata">

**Author:** ![kuyrem1](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/kuyrem1/32/13707_2.png) [@kuyrem1](https://community.cesium.com/u/kuyrem1)\
**Post date:** [May 18, 2023, 12:28pm UTC](https://community.cesium.com/t/3dtileset-disappear-when-too-close-with-cesiumpolygonrasteroverlay/24083/10 "2023-05-18T12:28:37Z")

</div>

Yep the offset was due to the location, but the problem of missing tiles is still there. I’ll check my drivers and everything, maybe it’s only on my computer, but it would be strange that it’s working for bing imagery but not google.

---

<div class="post-metadata">

**Author:** ![kuyrem1](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/kuyrem1/32/13707_2.png) [@kuyrem1](https://community.cesium.com/u/kuyrem1)\
**Post date:** [May 18, 2023, 1:35pm UTC](https://community.cesium.com/t/3dtileset-disappear-when-too-close-with-cesiumpolygonrasteroverlay/24083/11 "2023-05-18T13:35:36Z")

</div>

I have updated my drivers, and graphic driver, I am working with Nvidia Studio driver. And I’ve reinstaled UE4.27. Nothing changed.

---

<div class="post-metadata">

**Author:** ![Kevin\_Ring](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/kevin_ring/32/2003_2.png) [@Kevin\_Ring](https://community.cesium.com/u/Kevin_Ring)\
**Post date:** [May 18, 2023, 10:47pm UTC](https://community.cesium.com/t/3dtileset-disappear-when-too-close-with-cesiumpolygonrasteroverlay/24083/12 "2023-05-18T22:47:49Z")

</div>

Now that the location is reset to (0,0,0), would you mind recording a short video showing the problem with the Google tileset?

---

<div class="post-metadata">

**Author:** ![kuyrem1](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/kuyrem1/32/13707_2.png) [@kuyrem1](https://community.cesium.com/u/kuyrem1)\
**Post date:** [May 18, 2023, 11:25pm UTC](https://community.cesium.com/t/3dtileset-disappear-when-too-close-with-cesiumpolygonrasteroverlay/24083/13 "2023-05-18T23:25:16Z")

</div>

Yes, here it is : [2023 05 19 01 12 59 - YouTube](https://youtu.be/JG6Nosbjnos)  
You can see that in fact it’s working, but only in certains area. At the beginning in the desert there is no problem, but when I move to the location I have selected I have the problem. In my first video at 3min, I have the same problem but without moving the GeoReference, in the desert/city side of the map it’s working, but not in the forest/mountain area.  
Another thing I noticed is that it could be linked to the Tile size :

 ![image](https://global.discourse-cdn.com/cesium/original/2X/f/ff4fe3edd2c42b73e02d7b27282e475896c1175a.jpeg)  
 ![image](https://global.discourse-cdn.com/cesium/original/2X/c/c91b1f6dbe1adf6737224853550f46180c842c8e.jpeg)  
under the map view :  
 ![image](https://global.discourse-cdn.com/cesium/original/2X/d/d3099137cf1eb0e42ec39b8ccf5fe99b235aa2e4.jpeg)  
 ![image](https://global.discourse-cdn.com/cesium/original/2X/8/88f729d672d765225ed804c3b7cfac21941e09e2.jpeg)

---

<div class="post-metadata">

**Author:** ![kuyrem1](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/kuyrem1/32/13707_2.png) [@kuyrem1](https://community.cesium.com/u/kuyrem1)\
**Post date:** [May 19, 2023, 12:34pm UTC](https://community.cesium.com/t/3dtileset-disappear-when-too-close-with-cesiumpolygonrasteroverlay/24083/14 "2023-05-19T12:34:18Z")

</div>

I have tried using another computer, and it also had the bug. Here’s a project where I have the bug if that can help you :  
[MyProject3.rar](https://community.cesium.com/uploads/short-url/1H0kUy2sdNcmFgr4aA469FGY47M.rar) (7.6 KB)

---

<div class="post-metadata">

**Author:** ![Kevin\_Ring](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/kevin_ring/32/2003_2.png) [@Kevin\_Ring](https://community.cesium.com/u/Kevin_Ring)\
**Post date:** [May 19, 2023, 12:44pm UTC](https://community.cesium.com/t/3dtileset-disappear-when-too-close-with-cesiumpolygonrasteroverlay/24083/15 "2023-05-19T12:44:28Z")

</div>

Thanks, I can reproduce this now and am investigating the cause.

---

<div class="post-metadata">

**Author:** ![CH-BoltonMenk](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/ch-boltonmenk/32/12437_2.png) [@CH-BoltonMenk](https://community.cesium.com/u/CH-BoltonMenk)\
**Post date:** [May 19, 2023, 5:30pm UTC](https://community.cesium.com/t/3dtileset-disappear-when-too-close-with-cesiumpolygonrasteroverlay/24083/16 "2023-05-19T17:30:43Z")

</div>

FWIW, I’m having the same issues, UE 5.1, 3dTiles at the origin. At certain distances tile appears, closer to it, disappears. I’ve noticed that if I increase the level of detail “maximum screen space error” number, it fills in the missing tiles, but with less quality/more degradation, but then other tiles elsewhere have the disappearing issues.

 ![3dTiles_error_LOD_default16](https://global.discourse-cdn.com/cesium/original/2X/a/a5a7ce6585ed633d530854f38ecb4620147d0cf9.jpeg)  
 ![3dTiles_error_LOD_48](https://global.discourse-cdn.com/cesium/original/2X/8/806576ae109081a9cbeb6b911c9c1cd0bdc63e3a.jpeg)  
 ![3dTiles_error_LOD_128](https://global.discourse-cdn.com/cesium/original/2X/9/9b066afe78ae374704d438b7246415c122e51a30.jpeg)

---

<div class="post-metadata">

**Author:** ![IndigoYun](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/indigoyun/32/11245_2.png) [@IndigoYun](https://community.cesium.com/u/IndigoYun)\
**Post date:** [May 22, 2023, 1:31am UTC](https://community.cesium.com/t/3dtileset-disappear-when-too-close-with-cesiumpolygonrasteroverlay/24083/17 "2023-05-22T01:31:48Z")

</div>

I have the same problem 😮‍💨

---

<div class="post-metadata">

**Author:** ![Kevin\_Ring](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/kevin_ring/32/2003_2.png) [@Kevin\_Ring](https://community.cesium.com/u/Kevin_Ring)\
**Post date:** [May 22, 2023, 4:00am UTC](https://community.cesium.com/t/3dtileset-disappear-when-too-close-with-cesiumpolygonrasteroverlay/24083/18 "2023-05-22T04:00:40Z")

</div>

I’ve just opened a PR to fix this:

> <https://github.com/CesiumGS/cesium-native/pull/649>
>
> Fixes CesiumGS/cesium-unreal#1099
> 
> This manifested as tiles with raster overla…ys sometimes disappearing when zoomed in close.

It was caused by meshes with a very small number of vertices that used UNSIGNED\_BYTE indices. These weren’t being upsampled properly, so, with raster overlays, they would disappear when we zoomed in close.

---

<div class="post-metadata">

**Author:** ![CH-BoltonMenk](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/ch-boltonmenk/32/12437_2.png) [@CH-BoltonMenk](https://community.cesium.com/u/CH-BoltonMenk)\
**Post date:** [May 22, 2023, 3:23pm UTC](https://community.cesium.com/t/3dtileset-disappear-when-too-close-with-cesiumpolygonrasteroverlay/24083/19 "2023-05-22T15:23:53Z")

</div>

Thank you for looking into this.  
Just so I’m following, is this something that is fixed but will need to be updated in the next version of Cesium for UE?

---

<div class="post-metadata">

**Author:** ![kuyrem1](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/kuyrem1/32/13707_2.png) [@kuyrem1](https://community.cesium.com/u/kuyrem1)\
**Post date:** [May 22, 2023, 8:48pm UTC](https://community.cesium.com/t/3dtileset-disappear-when-too-close-with-cesiumpolygonrasteroverlay/24083/20 "2023-05-22T20:48:05Z")

</div>

Thanks ^^.  
Is it possible to get the update for 4.27 ?

[Next page](https://community.cesium.com/t/3dtileset-disappear-when-too-close-with-cesiumpolygonrasteroverlay/24083.md?page=2)
