# Add 3dtiles（gltf1.0）

**URL:** <https://community.cesium.com/t/add-3dtiles-gltf1-0/15171>\
**Category:** Cesium for Unreal\
**Created:** [September 7, 2021, 10:57am UTC](https://community.cesium.com/t/add-3dtiles-gltf1-0/15171 "2021-09-07T10:57:36Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![5m3d](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/5m3d/32/3476_2.png) [@5m3d](https://community.cesium.com/u/5m3d)\
**Post date:** [September 7, 2021, 10:57am UTC](https://community.cesium.com/t/add-3dtiles-gltf1-0/15171/1 "2021-09-07T10:57:36Z")

</div>

Using cesiumforue4 to load 3dtiles file ( gltf1.0) in ue4, it keeps reporting error, do I need to convert the gltf to upgrade 1.0 to 2.0?and how do i solve the promblems。

 ![捕获](https://global.discourse-cdn.com/cesium/original/2X/2/27547a5b2d161e80405b008553df5434dd6826a7.png)

---

<div class="post-metadata">

**Author:** ![agallegos](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/agallegos/32/4464_2.png) [@agallegos](https://community.cesium.com/u/agallegos)\
**Post date:** [September 9, 2021, 8:28pm UTC](https://community.cesium.com/t/add-3dtiles-gltf1-0/15171/2 "2021-09-09T20:28:34Z")

</div>

Hi @5m3d,

glTF 1.0 is not supported, but you can upgrade the tileset using this upgrade tool: [https://github.com/CesiumGS/3d-tiles-validator/tree/2.0-tools/tools](https://github.com/CesiumGS/3d-tiles-validator/tree/2.0-tools/tools)

Let me know if that helps with your issue!

---

<div class="post-metadata">

**Author:** ![5m3d](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/5m3d/32/3476_2.png) [@5m3d](https://community.cesium.com/u/5m3d)\
**Post date:** [September 10, 2021, 1:28am UTC](https://community.cesium.com/t/add-3dtiles-gltf1-0/15171/3 "2021-09-10T01:28:07Z")

</div>

I’ll give it a try.

---

<div class="post-metadata">

**Author:** ![5m3d](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/5m3d/32/3476_2.png) [@5m3d](https://community.cesium.com/u/5m3d)\
**Post date:** [September 13, 2021, 7:05am UTC](https://community.cesium.com/t/add-3dtiles-gltf1-0/15171/4 "2021-09-13T07:05:35Z")

</div>

i use gltf-pipeline upgrade gltf from 1.0 to 2.0，but the error is no different，i will try to solve the problem from other directions。thank u very much。

---

<div class="post-metadata">

**Author:** ![5m3d](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/5m3d/32/3476_2.png) [@5m3d](https://community.cesium.com/u/5m3d)\
**Post date:** [September 23, 2021, 1:45am UTC](https://community.cesium.com/t/add-3dtiles-gltf1-0/15171/5 "2021-09-23T01:45:34Z")

</div>

This error is simply a json file problem, I wrote a program to batch modify all the tileset.json of 3dtiles , the problem has been solved, but began to face the next problem。here is 。。。This error lets me know what I’m going to do 😂

 ![image](https://global.discourse-cdn.com/cesium/original/2X/4/446e4cf6d1e71973ce0232d7f531ecbd176f2300.png)

---

<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:** [September 23, 2021, 1:25pm UTC](https://community.cesium.com/t/add-3dtiles-gltf1-0/15171/6 "2021-09-23T13:25:14Z")

</div>

I _think_ there may be some confusion about the reason for the _original_ problem and the _new_ problem.

The _original_ problem was

> Tile contained an unknown refine value: replace

This is unrelated to glTF. It just means that the tileset contains a `"refine": "replace"` entry, but the entry should be `"refine": "REPLACE"` (in uppercase). This issue is tracked in [Should enum string value comparisons be case-sensitive? · Issue #345 · CesiumGS/cesium-native · GitHub](https://github.com/CesiumGS/cesium-native/issues/345)

You now said

> I wrote a program to batch modify all the tileset.json of 3dtiles , the problem has been solved, but began to face the next problem

and I _assume_, as a wild guess, that you wrote a program that does this replacement (i.e. to change `"replace"` to `"REPLACE"`). That’s fine as a workaround for the original problem.

* * *

But now, the _new_ problem is

> Only binary glTF version 2 is supported, found version 1

and **this** is indeed caused by the fact that glTF 1.0 is not supported. And it should be possible to solve this with the tool that @agallegos [linked to in a previous message](https://community.cesium.com/t/add-3dtiles-gltf1-0/15171/2). (Note that you explicitly have to use the `2.0-tools` branch, and not the master branch).

* * *

So if you updated your tileset JSON (to use `"REPLACE"` instead of `"replace"`), then you might apply this tool to your current tileset, to also update the B3DMs to contain glTF 2.0.

(It’s a bit of a hassle, I know. Hopefully, tiling tools will only generate B3DMs with glTF 2.0 by default in the future…)

---

<div class="post-metadata">

**Author:** ![5m3d](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/5m3d/32/3476_2.png) [@5m3d](https://community.cesium.com/u/5m3d)\
**Post date:** [October 19, 2021, 9:51am UTC](https://community.cesium.com/t/add-3dtiles-gltf1-0/15171/7 "2021-10-19T09:51:10Z")

</div>

![image](https://global.discourse-cdn.com/cesium/original/2X/1/11b22c6cbad38c6616e079818e86803fa327b8da.png)

The .b3dm data was converted from .3dml by TerraExplorer Pro7.2, and gltf was upgraded from 1.0 to 2.0 by tools such as gltf-pipeline, which loaded into ue4 without error, but no data was seen on the screen. I think it is possible that this expansion method is not supported by ue4, how can I fix it if this is the problem?  
Or is it because of other reasons?

---

<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:** [October 19, 2021, 4:43pm UTC](https://community.cesium.com/t/add-3dtiles-gltf1-0/15171/8 "2021-10-19T16:43:40Z")

</div>

@5m3d I think this can be discussed in the dedicated thread at [Add 3dtiles(extension)](https://community.cesium.com/t/add-3dtiles-extension/15768)

---

<div class="post-metadata">

**Author:** ![Fernando\_li](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/fernando_li/32/6953_2.png) [@Fernando\_li](https://community.cesium.com/u/Fernando_li)\
**Post date:** [October 29, 2021, 3:30pm UTC](https://community.cesium.com/t/add-3dtiles-gltf1-0/15171/9 "2021-10-29T15:30:12Z")

</div>

I have the same problem, and use the 2.0-tools to upgrade the files. But have a new problem.

 ![image](https://global.discourse-cdn.com/cesium/original/3X/2/8/2835915a41bc93ff31c3863de4bd2f5b455ea930.png)

---

<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:** [October 30, 2021, 12:41pm UTC](https://community.cesium.com/t/add-3dtiles-gltf1-0/15171/10 "2021-10-30T12:41:05Z")

</div>

Sorry, only a quick first shot: There had been a problem with some GLB data. You might want to try to do the conversion with the [3d-tiles-validator/tools at 2.0-tools-fix · CesiumGS/3d-tiles-validator · GitHub](https://github.com/CesiumGS/3d-tiles-validator/tree/2.0-tools-fix/tools) branch (note the `-fix` in the branch name). Maybe that … `fix`es it. Otherwise, it might be necessary to examine the data more carefully.

---

<div class="post-metadata">

**Author:** ![5m3d](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/5m3d/32/3476_2.png) [@5m3d](https://community.cesium.com/u/5m3d)\
**Post date:** [November 11, 2021, 2:14am UTC](https://community.cesium.com/t/add-3dtiles-gltf1-0/15171/11 "2021-11-11T02:14:52Z")

</div>

use TerraExplorer Pro 7.3

---

<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:** [November 11, 2021, 1:08pm UTC](https://community.cesium.com/t/add-3dtiles-gltf1-0/15171/12 "2021-11-11T13:08:59Z")

</div>

@5m3d Does that mean that upgrading from TerraExplorer 7.2 to 7.3 solved the problem that we talked about in [Add 3dtiles(extension) - #4 by Marco13](https://community.cesium.com/t/add-3dtiles-extension/15768/4) , and that the latest version - 7.3 - exports proper, valid tilesets?

---

<div class="post-metadata">

**Author:** ![5m3d](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/5m3d/32/3476_2.png) [@5m3d](https://community.cesium.com/u/5m3d)\
**Post date:** [November 12, 2021, 2:32am UTC](https://community.cesium.com/t/add-3dtiles-gltf1-0/15171/13 "2021-11-12T02:32:05Z")

</div>

In some ways，yes. I used terraExplorer 7.3 to process the same data and some of the 3dtiles I got are loadable in the UE4. But some of the data disappears after changing the view or pulling closer，I don’t know how to solve this problem yet, I thought it was a “geometricError” problem at first, but after looking at tiles.json I don’t think it is.

---

<div class="post-metadata">

**Author:** ![ka\_sc](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/ka_sc/32/2397_2.png) [@ka\_sc](https://community.cesium.com/u/ka_sc)\
**Post date:** [November 30, 2021, 3:01am UTC](https://community.cesium.com/t/add-3dtiles-gltf1-0/15171/14 "2021-11-30T03:01:08Z")

</div>

So my bad: gltf 1.0 files wont work, but tiles version 1.0 with “3DTILES\_content\_gltf” should?

---

<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:** [December 6, 2021, 11:07pm UTC](https://community.cesium.com/t/add-3dtiles-gltf1-0/15171/15 "2021-12-06T23:07:39Z")

</div>

The “3D Tiles” version and the “glTF” version are different things. When you upgraded the tileset, then it should _internally_ use glTF 2.0 already. The tileset itself is still a 3D Tiles 1.0 tileset. (The glTF 2.0 assets are then contained in the B3DM files of this 3D Tiles 1.0 tileset)

When you still use B3DM files, then the `3DTILES_content_gltf` extension is not requried. (If you _dedicatedly_ want to use this extension, I’d have to look up the latest state of a possible support for in Cesium For Unreal).
