-
Notifications
You must be signed in to change notification settings - Fork 55
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
I want to reset the camera's starting position and disable the left and right buttons #259
Comments
Hello! The initial camera pose is set here: viser/src/viser/client/src/App.tsx Line 291 in e43b4ac
You can also change it from Python via something like: server = viser.ViserServer()
@server.on_client_connect
def _(client: viser.ClientHandle) -> None:
client.camera.position = (1., 1., 1.) For the left/right keys, the code is here: viser/src/viser/client/src/CameraControls.tsx Lines 158 to 189 in e43b4ac
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
At present, the default starting position of the camera is (3, 3, 3), and users can move it freely.
Now I want to set the default camera starting position at (a, b, c), and users can move it freely. Simultaneously I want to disable the left and right key functions of the keyboard(Stop rotation function). May I ask where to modify it? Thank you very much.
The text was updated successfully, but these errors were encountered: