Loading B3DM file


I did some progresses generating 3D models in GLTF/GLB :I can generate and load .gltf files (with external .bin file) and .glb files (with/without batch ids).

Now I have a first implementation of B3DM format and I would like to test loading tiles directly (ie. not via a Tileset definition) in Cesium.

It seems that’s not possible to load a such file using something like :

var model = scene.primitives.add(Cesium.Model.fromGltf({

url : ‘data/hanoi_ext.b3dm’


How can I load a B3DM files into Cesium ?

Should I use another branch than the trunk one ?




3D Tiles is still being implemented in a branch: https://github.com/AnalyticalGraphicsInc/cesium/tree/3d-tiles

If you haven’t seen it already, take a look at this forum post for more information about 3D tiles: https://groups.google.com/forum/?hl=en#!searchin/cesium-dev/3D$20tiles/cesium-dev/tCCooBxpZFU/7hxT_E4pGgAJ



Hi Hannah,

thanks, I’ll try this branch.

Do you know if it is possible to load a B3DM file directly, or a Tileset is needed ?



Hi Frédéric,

The public Cesium API in the 3d-tiles branch does not expose a way to load just a .b3dm file.

Instead, create a small tileset.json file that points to the .b3dm file as its root tile.

For simple examples, see https://github.com/AnalyticalGraphicsInc/cesium/tree/3d-tiles/Specs/Data/Cesium3DTiles


Hi Patrick,
thanks for your response.

I succeeded to create a Tileset for the whole geodatabase I’m use for test.

I use a kind of adaptive quad tree; node is splitted based on the number of output vertices (superior or not to a user specified max).

Currently, only terminal nodes has attached B3DM.

I’m now thinking to attach data to intermediate nodes (for example selecting tallest/largest buildings of the tile) and then use additive refinement to complete the tile with children content.

What is not clear is the geometric error to use for this intermediate nodes.

Any hints ?



Fred - see this thread.


Hi Patrick,

I was unable to view the sample examples https://github.com/AnalyticalGraphicsInc/cesium/tree/3d-tiles/Specs/Data/Cesium3DTiles

can you help me with the examples if you know any other?


This should be the new link: