viser
viser copied to clipboard
[Question] Lock camera
First off, amazing library!!
So my question. Is it possible to lock the camera position, or event better lock selected axis (rotation and pan)?
Hi, sorry for the delay in getting back!
There's two options here:
- If you want something nice, unfortunately the only way right now is to modify the client source code. There's some discussion in #366 for one way to do this.
- If something hackier is okay, you can see this example for writing the camera pose.
- You could detect when the camera moves, and then "fix" the position by setting
client.camera.wxyzandclient.camera.position. - This will jitter, which may or may not be okay depending on what you're doing.
- You could detect when the camera moves, and then "fix" the position by setting