# How to convert the obj format to the b4dm tile format?

**URL:** <https://community.cesium.com/t/how-to-convert-the-obj-format-to-the-b4dm-tile-format/8821>\
**Category:** CesiumJS\
**Created:** [November 8, 2019, 11:05am UTC](https://community.cesium.com/t/how-to-convert-the-obj-format-to-the-b4dm-tile-format/8821 "2019-11-08T11:05:48Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jason\_Reed](https://avatars.discourse-cdn.com/v4/letter/j/b4bc9f/32.png) [@Jason\_Reed](https://community.cesium.com/u/Jason_Reed)\
**Post date:** [November 8, 2019, 11:05am UTC](https://community.cesium.com/t/how-to-convert-the-obj-format-to-the-b4dm-tile-format/8821/1 "2019-11-08T11:05:48Z")

</div>

**1. A concise explanation of the problem you’re experiencing.**

I have a large 3D model in the compression format, for conversion to the b3dm format I use scripts on the github. [https://github.com/PrincessGod/objTo3d-tiles](https://github.com/PrincessGod/objTo3d-tiles)

But the output is only one file, and I need to split it into files up to 3 mg in size.

If any ready-made solution or you need to write your own scripts.

How to make 3d tile in b3dm format?

---

<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:** [November 8, 2019, 2:31pm UTC](https://community.cesium.com/t/how-to-convert-the-obj-format-to-the-b4dm-tile-format/8821/2 "2019-11-08T14:31:12Z")

</div>

You can upload it to Cesium ion ([https://cesium.com/ion/](https://cesium.com/ion/)) and get an optimized 3D Tileset that way.

There is an offline version of the Cesium ion 3D Tiling pipeline available with an on-premise license: [https://cesium.com/docs/on-premise/](https://cesium.com/docs/on-premise/)

---

<div class="post-metadata">

**Author:** ![Jason\_Reed](https://avatars.discourse-cdn.com/v4/letter/j/b4bc9f/32.png) [@Jason\_Reed](https://community.cesium.com/u/Jason_Reed)\
**Post date:** [November 8, 2019, 2:36pm UTC](https://community.cesium.com/t/how-to-convert-the-obj-format-to-the-b4dm-tile-format/8821/3 "2019-11-08T14:36:00Z")

</div>

Hi! Thanks for the answer. I uploaded my data to ion, but did not find the download function. And I need 3D tiles in b3dm format.  
My 3D model is 2 GB in size, the b3dm file is 1.8 GB in size, and I need to split this file into 2 MB parts

---

<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:** [November 8, 2019, 3:14pm UTC](https://community.cesium.com/t/how-to-convert-the-obj-format-to-the-b4dm-tile-format/8821/4 "2019-11-08T15:14:25Z")

</div>

Is your goal to visualize the b3dm files, or do something else?

The uploaded model in your Cesium ion account is served as b3dm files. You can stream it to your application with CesiumJS (See [https://cesium.com/docs/tutorials/getting-started/](https://cesium.com/docs/tutorials/getting-started/)) or with the REST API (see [https://cesium.com/docs/rest-api](https://cesium.com/docs/rest-api)).

---

<div class="post-metadata">

**Author:** ![Jason\_Reed](https://avatars.discourse-cdn.com/v4/letter/j/b4bc9f/32.png) [@Jason\_Reed](https://community.cesium.com/u/Jason_Reed)\
**Post date:** [November 8, 2019, 3:28pm UTC](https://community.cesium.com/t/how-to-convert-the-obj-format-to-the-b4dm-tile-format/8821/5 "2019-11-08T15:28:11Z")

</div>

Unfortunately, the goal is more complicated. it is necessary to convert obj to b3dm (each file is 2 mb). if the task was to visualize, then in cesium you can simply load the usual obj. unfortunately the task is more difficult. can we continue communication by email or whatsapp?

---

<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:** [November 13, 2019, 5:59pm UTC](https://community.cesium.com/t/how-to-convert-the-obj-format-to-the-b4dm-tile-format/8821/6 "2019-11-13T17:59:57Z")

</div>

CesiumJS doesn’t support visualizing an OBJ file directly, so normally you’d need to convert it to glTF (or 3D Tiles if it’s a large model) which you can do by uploading to Cesium ion.

If your goal is to get b3dm tiles, you can do this with Cesium ion. You can request the b3dm files using the REST API (see [https://cesium.com/docs/tutorials/rest-api/](https://cesium.com/docs/tutorials/rest-api/)) or get an on-premise license if you need the files available locally.
