xuzhusheng / gltf-to-3d-tiles

Convert glTF model to Glb, b3dm and 3D tiles format.
MIT License
123 stars 35 forks source link

Can you provide a valid file? #18

Closed yuqianma closed 1 year ago

yuqianma commented 1 year ago

Thank you for writing this tool. I want to convert a gltf/glb file to b3dm. But EVERY file I tried throws errors.

some errors:

 (result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xf0 in position 8: invalid continuation byte
 Glb(buffers, **gltf.as_dict(False)).as_bytes()).as_bytes())
TypeError: Glb.__init__() got multiple values for argument 'buffers'

I've tried to tweak some codes but no luck.

I wonder if my files are broken or my environment got something wrong.

One of the test files: https://models.babylonjs.com/aerobatic_plane.glb

What's the expected python version to run this tool? I'm using 3.10.

xuzhusheng commented 1 year ago
  1. The first error: have support glb input yet. can only input gltf currently.
  2. The second error: a bug introduced at previous commit, fixed at commit 1e3478125276f19f68d7d747bc4207c0eb097899