1
votes

There doesn't appear to be any clear way to do this, or existing tools.

1

1 Answers

-1
votes

I have edited the 3D-Tiles-Tools provided by cesiumjs to convert the gltf to b3dm. For your reference, here is the link https://github.com/Jennyshining/3d-tiles-tools.git

In the repository, samples-generator/lib/myGenerator.js is the entry. createGltf is the tool to create gltf, createB3dm and createTilesetJsonSingle are used to create 3d tiles.