Empty bounding box when loading GLB model

Hello everyone!

I have a problem when loading a mesh exported in .glb format from Blender. When I load it and try to access mesh.getBoundingInfo().boundingBox all minimum and maximum values are 0. When I export it in .obj insetad, all those values are correct.

Same happens when extracting the VertexData from the mesh. Is it because of the way the model data is stored in each format?

Is there any way I can obtain this data? Do I have to calculate it?

Thanks you!

Sorry, my fault. When importing .glb I was accessing meshes[0] instead of meshes[1].

1 Like