Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error converting glb files to 3d tiles #20

Open
rwjCxgsy opened this issue Apr 17, 2023 · 2 comments
Open

Error converting glb files to 3d tiles #20

rwjCxgsy opened this issue Apr 17, 2023 · 2 comments

Comments

@rwjCxgsy
Copy link

system Env: windows 10
python Version: 3.10.6

Traceback (most recent call last):
File "C:\Users\ming\Desktop\work\gltf-to-3d-tiles\main.py", line 80, in
app()
File "C:\Users\ming\AppData\Local\Programs\Python\Python310\lib\site-packages\typer\main.py", line 214, in call
return get_command(self)(*args, **kwargs)
File "C:\Users\ming\AppData\Local\Programs\Python\Python310\lib\site-packages\click\core.py", line 1130, in call
return self.main(*args, **kwargs)
File "C:\Users\ming\AppData\Local\Programs\Python\Python310\lib\site-packages\click\core.py", line 1055, in main
rv = self.invoke(ctx)
File "C:\Users\ming\AppData\Local\Programs\Python\Python310\lib\site-packages\click\core.py", line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "C:\Users\ming\AppData\Local\Programs\Python\Python310\lib\site-packages\click\core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "C:\Users\ming\AppData\Local\Programs\Python\Python310\lib\site-packages\click\core.py", line 760, in invoke
return _callback(*args, **kwargs)
File "C:\Users\ming\AppData\Local\Programs\Python\Python310\lib\site-packages\typer\main.py", line 500, in wrapper
return callback(**use_params) # type: ignore
File "C:\Users\ming\Desktop\work\gltf-to-3d-tiles\main.py", line 33, in tileset
gltf_to_tileset(fin, fout, measure, up_direction)
File "C:\Users\ming\Desktop\work\gltf-to-3d-tiles\converter\gltf_to_tileset.py", line 75, in gltf_to_tileset
gltf, buffers = io.read_gltf(fin)
File "C:\Users\ming\Desktop\work\gltf-to-3d-tiles\gltf\io.py", line 14, in read_gltf
data = json.load(f)
File "C:\Users\ming\AppData\Local\Programs\Python\Python310\lib\json_init
.py", line 293, in load
return loads(fp.read(),
File "C:\Users\ming\AppData\Local\Programs\Python\Python310\lib\codecs.py", line 322, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x88 in position 8: invalid start byte

@WaterSeeding
Copy link

I had the same problem,

image

This is the instruction I used: python main.py tileset Cesium_Air.glb outputs/

This is my model:
Cesium_Air.zip

Please help to see what went wrong, thank you!

@xuzhusheng
Copy link
Owner

havn't support glb yet. your need to convert to gltf with other tool first

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants