-
Notifications
You must be signed in to change notification settings - Fork 233
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
Can I disable key options in GaussianSplats3D Viewer? #409
Comments
Hi @ryouhei0622, You might try using another option: I'm not entirely sure, but it might be worth giving it a try. |
thank you for your help!! |
Sorry for asking multiple questions. I set I want to explicitly specify the initial look-at position, so I am trying to access const viewer = new GaussianSplats3D.Viewer({
rootElement: containerRef.current,
threeScene: threeScene,
cameraUp,
useBuiltInControls: false,
initialCameraPosition,
initialCameraLookAt,
webWorkerConfig: {
crossOriginIsolated: self.crossOriginIsolated,
useSharedMemory: self.crossOriginIsolated,
},
sharedMemoryForWorkers: self.crossOriginIsolated,
gpuAcceleratedSort: true,
});
viewer.controls.target = new THREE.Vector3(
initialCameraLookAt[0],
initialCameraLookAt[1],
initialCameraLookAt[2],
); |
I believe there isn't a function named controls in the viewer. Instead, you can pass the position and target values as arrays in place of the initialCameraPosition and initialCameraLookAt options. This might help.
|
Yes, you are correct. There is no actual function named |
@pradeepnandigam @mkkellogg |
Thank you for your contribution!
I am trying to place an input box on the same page as the gsviewer. However, when I type in the input box, key options like u and s are being triggered, which prevents proper input. Below is how I am initializing the viewer. Is there any parameter or method to disable these key options?
Any guidance would be greatly appreciated!
The text was updated successfully, but these errors were encountered: