Default scene orientation
Closed this issue · 3 comments
Hi, thank you for this amazing and easy to use viewer.
In my projekt I would like to have a more classical orientation of the scene with the z-axis not pointing up and down but away from the camera.
Can we make the default orientation set here maybe customizable?
If this is an option, I can maybe propose a PR by myself.
You can accomplish this already; just set the camera property immediately. For instance, we do it here:
https://github.com/RobotLocomotion/drake/blob/5a93364f958dbf137d1461fe5e07c9f97de0eb49/geometry/meshcat.html#L101
Hi @RussTedrake, thanks for the hint. I'm not sure if I got your point completly, but setting the camera to a different position does only change the viewing direction. The problem is, that the orbit-control is also locked in the wrong axis. But maybe I need to study the chapter on camera-control a little bit.