Open Krassnig opened 12 months ago
The three warnings appearing before the final error are the important bits here — these are a glTF 1.0 files, embedded in an older version of the B3DM format. LoadersGL requires glTF 2.0. Perhaps also relevant, the EXT_texture_webp
extension itself requires glTF 2.0, so there may be some issues with this tileset if it has combined glTF 1.0 with the EXT_texture_webp
extension.
There is partial support for "auto-upconverting" glTF 1.0 files, but perhaps it requires enabling a GLTFLoader
option, I don't recall... And it doesn't upconvert everything in glTF 1.0 so whether it works depends on the file. Looking at the error, it could be that a simple additional conversion step for textures would enable this particular file to load.
Hi,
this tileset of the city of Berlin crashes when loading its b3dm files.
I tried to debug it. In
@loaders.gl\gltf\src\lib\extensions\EXT_texture_webp.ts
in the functionpreprocess()
(link)json.texture
happens to be an object. Since it is an object and notnull
orundefined
|| []
will not be used and since that object is not iterable and an error is thrown.Here is a minimal script to reproduce the error:
I don't know why exactly but it only starts loading b3dm files after the third call to
selectTiles
but that is not what this issue is about.