syoyo / tinygltf

Header only C++11 tiny glTF 2.0 library
MIT License
1.94k stars 395 forks source link

Convert .B3DM to .glb, .glb file has lost its geospatial coordinates #448

Closed ziwenjie closed 10 months ago

ziwenjie commented 10 months ago

Describe the issue

When using the code you provided, the conversion of B3DM data to GLB file results in the loss of geospatial coordinates.

To Reproduce

Expected behaviour

The converted .glb file retains geospatial coordinates.

Screenshots

Screenshot from 2023-08-25 03-16-25

Additional context

These .b3dm files are converted to .gltf file, having error: BIN Chunk end does not aligned to a 4-byte boundary.