nerfstudio-project / viser

Web-based 3D visualization + Python
https://viser.studio/latest
Apache License 2.0
596 stars 31 forks source link

How can I make the built-in camera rovolve around itself instead of the some unknown point? #202

Open QinlongHuang opened 2 months ago

QinlongHuang commented 2 months ago

Thanks for the amazing work! I was noticed that the current bulit-in camera is always revolving around an unknown point. It is useful for object-centric 3D scene. But in my scene (large-scale NeRF/3DGS visualization), I'd like to make things like first-person view. So what should I do?

brentyi commented 1 month ago

Hi! I did start an implementation for a camera-centric toggle in this branch: https://github.com/nerfstudio-project/viser/tree/brent/camera_centric_mode

But unfortunately it needs work to get running. We're currently using an off-the-shelf CameraControls component for the orbit controls, but I couldn't find anything comparable that supports camera-centric motion. We'd likely to have build something more custom, could use help here!