Hello everyone!
I would like to ask for help with something. In Viewer 1, I set up the CameraController, but I can’t rotate the camera in a way that lets me see the bottom of the model.
Can anyone suggest a solution for this?
Hello everyone!
I would like to ask for help with something. In Viewer 1, I set up the CameraController, but I can’t rotate the camera in a way that lets me see the bottom of the model.
Can anyone suggest a solution for this?
Hi @Gircsi117
I’m not entirely sure what you mean by “Viewer 1” but the limit you are referring to is part of the camera controller’s options named maximumPolarAngle
. The speckle web app even has an option that toggles being able to see the bottom of the mode with the button highlighted below:
You can do this to make sure the limit does not stop you from viewing the bottom of the model
const cameraController = v.createExtension(CameraController);
cameraController.options = { maximumPolarAngle: Math.PI }
Cheers
The solution doesn’t work, I’m getting the following error:
I use this version of viewer:
“@speckle/viewer”: “^2.18.14”,
That is a very old version. I sugest you update to latest version. If you are worried about breaking changes we also provide an up to date migration guide
Cheers