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

142 views
Skip to first unread message

Jason Reed

unread,
Nov 8, 2019, 6:05:49 AM11/8/19
to cesium-dev
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
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?

Omar Shehata

unread,
Nov 8, 2019, 9:31:13 AM11/8/19
to cesium-dev
You can upload it to Cesium 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/

Jason Reed

unread,
Nov 8, 2019, 9:36:00 AM11/8/19
to cesium-dev
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

пятница, 8 ноября 2019 г., 17:31:13 UTC+3 пользователь Omar Shehata написал:

Omar Shehata

unread,
Nov 8, 2019, 10:14:25 AM11/8/19
to cesium-dev
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/) or with the REST API (see https://cesium.com/docs/rest-api).

Jason Reed

unread,
Nov 8, 2019, 10:28:11 AM11/8/19
to cesium-dev
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?

Omar Shehata

unread,
Nov 13, 2019, 12:59:58 PM11/13/19
to cesium-dev
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/) or get an on-premise license if you need the files available locally.
Reply all
Reply to author
Forward
0 new messages