Skip to content

Bug 🐛 ? ModelViewer Camera jump on first touch #626

@Mehequanna

Description

@Mehequanna

When trying the Model Viewer sample, I noticed a visual jump on the first touch of the screen:

bug.mp4

Someone suggested I create a custom camera manipulator. Which I did, but that jump still happened. So I tried updating the code like this and it worked:

    // Inside onViewCreated
    sceneView.cameraManipulator = SceneView.createDefaultCameraManipulator(orbitHomePosition = Position(z = 4.0f))
    sceneView.cameraNode.apply {
          position = Position(z = 4.0f)
     }
working.mp4

Is this a bug? I'm happy to try and fix it if anyone can point me in the correct direction :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions