Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[question] Speckle viewer camera animation Implementation method? #4144

Open
dtboy1995 opened this issue Mar 9, 2025 · 1 comment
Open

Comments

@dtboy1995
Copy link

viewer

  • version @speckle/viewer 2.20.0-alpha4

sample code

// ...
const cameraExt = viewer.createExtension(CameraController);
let camera = cameraExt.renderingCamera;
camera.position.x += 10;
viewer.requestRender();
// ...

problem

Although the above code can be executed successfully, it only retains a moment. As long as I move the mouse, the model immediately returns to the default perspective. May I ask why this is happening and how to solve this problem? Thank you so much

Problem GIF

Image

Copy link

linear bot commented Mar 9, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant