CesiumGS / cesium-native

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

i3dm conversion does not handle gltfUpAxis properly

timoore opened this issue · comments

https://community.cesium.com/t/i3dm-transformation-and-textures/32757 describes a problem loading a 3D Tiles tileset that uses i3dm, and shows a compelling image of an obvious bug. The bug shows up because the tileset's glTF content is made with the Z axis as up; this is indicated using the gltfUpAxis property on the tileset. Unfortunately the CesiumGltf::Model is not decorated with this property before i3dm conversion to the EXT_mesh_gpu_instancing form is done, so the resulting instance transforms are wrong.