You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to debug it. In @loaders.gl\gltf\src\lib\extensions\EXT_texture_webp.ts in the function preprocess() (link) json.texture happens to be an object. Since it is an object and not null or undefined|| [] will not be used and since that object is not iterable and an error is thrown.
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.The text was updated successfully, but these errors were encountered: