Geodan / mapbox-3dtiles

3D Tiles implementation using Mapbox GL JS custom layers
BSD 3-Clause "New" or "Revised" License
297 stars 62 forks source link

I3DM: Make NORMAL_UP and NORMAL_RIGHT optional #33

Closed bertt closed 3 years ago

bertt commented 3 years ago

When trying to read an i3dm without NORMAL_UP and NORMAL_RIGHT vectors, there is an error:

'Cannot read property 'byteOffset' of undefined'

NORMAL_UP and NORMAL_RIGHT should be optional, as defined in https://github.com/CesiumGS/3d-tiles/tree/master/specification/TileFormats/Instanced3DModel#instance-semantics

bertt commented 3 years ago

to reproduce: instanced.zip

bertt commented 3 years ago

fixed