Models appear partially below ground (pivot/origin issue) β no control over client 3d models
Hi π,
Iβm facing an issue when placing 3D models in Sceneform. Some models appear partially below the detected plane (sinking into the ground).
The root cause seems to be that the pivot/origin of the models is usually in the center of the bounding box instead of at the bottom. This causes the model to intersect the ground when anchored.
β οΈ In my case, I cannot edit or preprocess the models, because they are uploaded directly by clients. That means I donβt have control over their pivot before loading them.
Screenshot:
Expected behavior:
Models should be placed standing on the ground surface (aligned to minY of bounding box), regardless of how the pivot was set in the GLB/GLTF.
Possible solutions:
Add a utility method (e.g. alignToGround() or clampToGround) to automatically adjust Y based on bounding box.
Or allow setting a placement mode that forces models to snap to ground level.
Would this be possible to support in Sceneform?
Thanks π