Replies: 1 comment 4 replies
-
You can technically achieve this right now, you just have to access the controls owned by the viewer. The viewer has two sets of controls: const setControlParameters(controls) = (controls, isOrthographic) => {
if (isOrthographic) {
controls.minZoom = 1.0;
controls.maxZoom = 10.0;
} else {
controls.minDistance = 3.0;
controls.maxDistance = 100.0;
}
controls.enablePan = false; // horizontal and vertical translation
};
const viewer = new GaussianSplats3D.Viewer();
viewer.addSplatScene('<path to scene>')
.then(() => {
setControlParameters(viewer.perspectiveControls, false);
setControlParameters(viewer.orthographicControls, true);
});
|
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, We would love to have a max zoom in, max zoom out value. And in a similar vain, no horizontal or vertical translation (and/or other movement of models like vertical rotation). Then object can be displayed without unnessasry angles. Thanks
Beta Was this translation helpful? Give feedback.
All reactions