bertt / mapbox_3dtiles_samples

Samples of MapBox JS + 3D Tiles
MIT License
57 stars 11 forks source link

Creation of Placement b3dm (Textured Building) #3

Closed reHildeb closed 2 years ago

reHildeb commented 2 years ago

Hello Bertt,

i use your Project pg2b3m to create LoD2 Buildings and it works very well. In number 5 of your Example you add Textures to the models. As far as i can tell they are included in the b3dm-Tiles. Can you explain the process behind it?

bertt commented 2 years ago

Hi, this was the result of a custom project. In this project we visualized on the map dynamically created IFC models from buildings.

Workflow was as follows:

The b3dm's are just a container for glTF files, you can use a tool like https://github.com/bertt/b3dm.tooling with unpack option to get the glTF's.

reHildeb commented 2 years ago

Thanks, works very well for a single Building. There are a few problems for multiple Buildings, but i think i can solve it.

bertt commented 2 years ago

yes luckily in our case the ifc/glTF models per building were not very big (after glTF compression) so we decide to put each building in a b3dm tile. Otherwise an extra step is needed for cutting the building in multiple pieces.