Loading B3DM file

1,596 views
Skip to first unread message

Frédéric Trastour

unread,
Jun 8, 2016, 6:36:07 AM6/8/16
to cesium-dev
Hi,

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 ?

Kr,
Fred.

Hannah Pinkos

unread,
Jun 8, 2016, 9:43:58 AM6/8/16
to cesium-dev
Hello,

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

Best,

Hannah

Frédéric Trastour

unread,
Jun 8, 2016, 11:09:29 AM6/8/16
to cesium-dev
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 ?

Kr,
Fred.

Patrick Cozzi

unread,
Jun 13, 2016, 9:05:23 AM6/13/16
to cesium-dev
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.


Patrick

Frédéric Trastour

unread,
Jun 14, 2016, 9:21:32 AM6/14/16
to cesium-dev
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 ?

Kr,
Fred.

Patrick Cozzi

unread,
Jun 14, 2016, 9:59:49 AM6/14/16
to cesiu...@googlegroups.com
Fred - see this thread.

Patrick

--
You received this message because you are subscribed to a topic in the Google Groups "cesium-dev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cesium-dev/9HGegtPFEro/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cesium-dev+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

sakina.q...@gmail.com

unread,
Sep 21, 2018, 5:41:24 AM9/21/18
to cesium-dev
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?

KR,
Sakina

Omar Shehata

unread,
Sep 21, 2018, 3:04:31 PM9/21/18
to cesium-dev
Reply all
Reply to author
Forward
0 new messages