Skip to content

Models appear partially below ground (pivot/origin issue) – no control over client 3d models #484

@althaibani

Description

@althaibani

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:

Image

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 🙏

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions