# I can't load tileset from url into ue5

**URL:** <https://community.cesium.com/t/i-cant-load-tileset-from-url-into-ue5/37461>\
**Category:** Cesium for Unreal\
**Created:** [December 19, 2024, 12:51pm UTC](https://community.cesium.com/t/i-cant-load-tileset-from-url-into-ue5/37461 "2024-12-19T12:51:57Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![happy20210825](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/happy20210825/32/27308_2.png) [@happy20210825](https://community.cesium.com/u/happy20210825)\
**Post date:** [December 19, 2024, 12:51pm UTC](https://community.cesium.com/t/i-cant-load-tileset-from-url-into-ue5/37461/1 "2024-12-19T12:51:57Z")

</div>

I added a cesium3dTileset and set it’s source= from url and url =" " ,  
then i click the button refresh tileset . I got some warnning like these .  
so , how to fix it ?

 ![image](https://global.discourse-cdn.com/cesium/original/3X/5/a/5ac80e48cb8d0666e2dc13027bba8a3936cf4640.jpeg)

2024-12-19 18:38:22.561] [warning] [ErrorList.h:107] Warning when loading [https://cdn.prj.cbim.ren/p\_cloud.4dbim.vip/project/prj\_343/spatial/tileset/3783/b\_0-1.b3dm?dynamic=true&access\_token=EFeNutyCQkxiPXU-Ksf6qqBRm1VRinuYtj3pZIno&t=1734600890077:](https://cdn.prj.cbim.ren/p_cloud.4dbim.vip/project/prj_343/spatial/tileset/3783/b_0-1.b3dm?dynamic=true&access_token=EFeNutyCQkxiPXU-Ksf6qqBRm1VRinuYtj3pZIno&t=1734600890077:)

- The size of the first buffer in the JSON chunk is 412084, which is more than 3 bytes smaller than the size of the GLB binary chunk (7824116)  
LogCesium: Warning: [https://cdn.prj.cbim.ren/p\_cloud.4dbim.vip/project/prj\_343/spatial/tileset/3783/b\_0-1.b3dm?dynamic=true&access\_token=EFeNutyCQkxiPXU-Ksf6qqBRm1VRinuYtj3pZIno&t=1734600890077](https://cdn.prj.cbim.ren/p_cloud.4dbim.vip/project/prj_343/spatial/tileset/3783/b_0-1.b3dm?dynamic=true&access_token=EFeNutyCQkxiPXU-Ksf6qqBRm1VRinuYtj3pZIno&t=1734600890077) mesh 0 primitive 0: Invalid position buffer  
LogCesium: Warning: [https://cdn.prj.cbim.ren/p\_cloud.4dbim.vip/project/prj\_343/spatial/tileset/3783/b\_0-1.b3dm?dynamic=true&access\_token=EFeNutyCQkxiPXU-Ksf6qqBRm1VRinuYtj3pZIno&t=1734600890077](https://cdn.prj.cbim.ren/p_cloud.4dbim.vip/project/prj_343/spatial/tileset/3783/b_0-1.b3dm?dynamic=true&access_token=EFeNutyCQkxiPXU-Ksf6qqBRm1VRinuYtj3pZIno&t=1734600890077) mesh 1 primitive 0: Invalid position buffer

---

<div class="post-metadata">

**Author:** ![azrogers](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/azrogers/32/21672_2.png) [@azrogers](https://community.cesium.com/u/azrogers)\
**Post date:** [December 20, 2024, 7:37pm UTC](https://community.cesium.com/t/i-cant-load-tileset-from-url-into-ue5/37461/2 "2024-12-20T19:37:49Z")

</div>

Would you be able to link to the tileset itself? With only information about the b3dm file it failed to load, it’s hard to figure out what it expected to find there. It’s possible there’s an issue with the b3dm file, or an issue with the way Cesium Native converts that b3dm file to a glTF internally, but it would be much easier to say if we could reproduce this issue on our end!

---

<div class="post-metadata">

**Author:** ![happy20210825](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/happy20210825/32/27308_2.png) [@happy20210825](https://community.cesium.com/u/happy20210825)\
**Post date:** [January 21, 2025, 3:50pm UTC](https://community.cesium.com/t/i-cant-load-tileset-from-url-into-ue5/37461/3 "2025-01-21T15:50:52Z")

</div>

Sorry to response too late.  
I use unreal version is 5.4 , cesium for unrela version is 2.11.0  
I use this file by file:///local file path, and i get some errors

 ![image](https://global.discourse-cdn.com/cesium/original/3X/f/c/fc321c1488238fe62c6e55024016ad99efdd4d46.png)

I have upload the b3dm file ,you can download and test it.  
[tes.rar](https://community.cesium.com/uploads/short-url/jlGydIGScqAS62DQ0eefbzaLZCZ.rar) (1.1 KB)

Thank you for help

---

<div class="post-metadata">

**Author:** ![Marco13](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/marco13/32/2757_2.png) [@Marco13](https://community.cesium.com/u/Marco13)\
**Post date:** [January 21, 2025, 4:04pm UTC](https://community.cesium.com/t/i-cant-load-tileset-from-url-into-ue5/37461/4 "2025-01-21T16:04:44Z")

</div>

This _seems_ to be unrelated to what you mentioned in the first post of this thread.

The B3DM file that you attached contains a GLB (glTF) file that says

```auto
  ...
  "buffers" : [
    {
      "byteLength" : 600
    },
    {
      "uri" : "../../../spatial/mesh/20240730_141102_608.mesh",
      "byteLength" : 10684
    }
  ],

```

So it is trying to load some binary data from this file, `"../../../spatial/mesh/20240730_141102_608.mesh"`.

It is usually discouraged to have relative paths in GLB files. (It _can_ be justified in rare cases, if you _really_ know what you’re doing). It is even more discouraged to have relative paths that point _beyond_ the root path (like this one here, starting with `../../../`), but this could still be technically valid.

But the main problem seems to be: This file does not exist. You’ll have to add this file in the expected location (or, preferably, restructure the GLB to that it contains that mesh data _directly_).

---

<div class="post-metadata">

**Author:** ![happy20210825](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/happy20210825/32/27308_2.png) [@happy20210825](https://community.cesium.com/u/happy20210825)\
**Post date:** [January 22, 2025, 3:36pm UTC](https://community.cesium.com/t/i-cant-load-tileset-from-url-into-ue5/37461/5 "2025-01-22T15:36:04Z")

</div>

Thank you for response.  
I upload the full files on my server , then use the link to display it .  
The link is  
[https://cdn.prj.cbim.ren/p\_cloud.4dbim.vip/project/prj\_343/beam-template/tileset/3/tileset.json](https://cdn.prj.cbim.ren/p_cloud.4dbim.vip/project/prj_343/beam-template/tileset/3/tileset.json)

But i get other error .

 ![image](https://global.discourse-cdn.com/cesium/original/3X/7/9/79b1aa8b124797e56237e8ee60bd06b62fbbefce.png)

i have test this file on cesium web and it’s ok .

so what is that mean? How to fix it .

Thanks again

---

<div class="post-metadata">

**Author:** ![Marco13](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/marco13/32/2757_2.png) [@Marco13](https://community.cesium.com/u/Marco13)\
**Post date:** [January 22, 2025, 4:02pm UTC](https://community.cesium.com/t/i-cant-load-tileset-from-url-into-ue5/37461/6 "2025-01-22T16:02:53Z")

</div>

I confirmed that this can be loaded in CesiumJS.

(The GLB contains a validation error, but that is “only” about the alignment of the `_BATCHID` attribute, so it’s somewhat unlikely to cause the issue here).

The messages in the screenshot are only ‘Warnings’. Does it _display_ the object? If so, maybe the warnings are not sooo critical.

In case someone wants to investigate this in Cesium For Unreal, here’s a B3DM with the data inlined:

[b\_14\_FIXED.zip](https://community.cesium.com/uploads/short-url/tvLZOCbfPyzk7WpUoaQwfCSNlvm.zip) (2.2 KB)

---

<div class="post-metadata">

**Author:** ![happy20210825](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/happy20210825/32/27308_2.png) [@happy20210825](https://community.cesium.com/u/happy20210825)\
**Post date:** [January 23, 2025, 1:48am UTC](https://community.cesium.com/t/i-cant-load-tileset-from-url-into-ue5/37461/7 "2025-01-23T01:48:14Z")

</div>

No ,it doesn’t display  
There are nothing，that’s why i so confused

---

<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:** [January 29, 2025, 2:52am UTC](https://community.cesium.com/t/i-cant-load-tileset-from-url-into-ue5/37461/8 "2025-01-29T02:52:46Z")

</div>

Hi @happy20210825,

I investigated your tileset and wrote up an issue describing the problem here:

> <https://github.com/CesiumGS/cesium-unreal/issues/1598>
>
> Reported here:
> https://community.cesium.com/t/i-cant-load-tileset-from-url-into-…ue5/37461/3
> 
> A glTF model with a scale factor of about 0.001 or less (for example, where the vertex coordinates are expressed in millimeters), will not render in Cesium for Unreal. You will see errors like this:
> 
> \`\`\`
> LogPhysics: Warning: Scale for /Temp/Untitled\_1.Untitled:PersistentLevel.Cesium3DTileset\_1.CesiumGltfComponent\_5.CesiumGltfPrimitiveComponent\_0 has a component set to zero, which will result in a bad body instance. Scale:X=0.000 Y=0.000 Z=0.000
> \[\[2025.01.28-23.37.43:506\]\[33\]\]LogPhysics: Warning: Initialising Body : Scale3D is (nearly) zero: Actor: 'Cesium3DTileset' Component: '/Temp/Untitled\_1.Untitled:PersistentLevel.Cesium3DTileset\_1.CesiumGltfComponent\_5.CesiumGltfPrimitiveComponent\_0' 
> \`\`\`
> 
> The problem is that such a scale factor triggers a bug (IMO) in Unreal's FMatrix -\> FTransform conversion where an overly-eager epsilon check considers the scale to be exactly 0.0 rather than its real value of about 1e-4.
> 
> The best solution I can think of is to implement our own FMatrix -\> FTransform conversion (or more likely glm::mat4 -\> FTransform) that doesn't have a dodgy epsilon.

And I also opened a pull request with a fix for the problem:

> <https://github.com/CesiumGS/cesium-unreal/pull/1599>
>
> Fixes #1598

We should be able to include this in next week’s release of Cesium for Unreal, and you can try it out in the meantime by following the instructions here to install the build from that pull request above:

> <https://github.com/CesiumGS/cesium-unreal/blob/main/Documentation/using-prerelease-packages.md>

Thanks for reporting the issue, and for providing an example tileset to demonstrate it.

---

<div class="post-metadata">

**Author:** ![happy20210825](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/happy20210825/32/27308_2.png) [@happy20210825](https://community.cesium.com/u/happy20210825)\
**Post date:** [February 5, 2025, 8:50am UTC](https://community.cesium.com/t/i-cant-load-tileset-from-url-into-ue5/37461/9 "2025-02-05T08:50:33Z")

</div>

Thanks.  
It’s works.
