Moguri / panda3d-gltf

glTF utilities for Panda3D
BSD 3-Clause "New" or "Revised" License
81 stars 19 forks source link

'byteOffset' in accessor and bufferView is optional #98

Closed el-dee closed 3 years ago

el-dee commented 3 years ago

Parameter 'byteOffset' of accessors and bufferView is optional, if not present the default value is 0. (See https://github.com/KhronosGroup/glTF/tree/master/specification/2.0#accessor and https://github.com/KhronosGroup/glTF/tree/master/specification/2.0#bufferview)

Without this fix, some glTF samples, like https://github.com/KhronosGroup/glTF-Sample-Models/blob/master/2.0/SimpleSkin, can't be loaded.