Skip to content
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

Wonky Gimbal Lock in the viewer #14

Closed
samhodge opened this issue Oct 26, 2023 · 4 comments
Closed

Wonky Gimbal Lock in the viewer #14

samhodge opened this issue Oct 26, 2023 · 4 comments

Comments

@samhodge
Copy link

wonky.mp4

I made a COLMAP using Nerfstudio and then trained in your framework, everything was great, until I wanted to look at the result in the viewer

the three rotation axes became confused in gimbal lock.

what is the approach to make the viewer work normally with Nerfstudio prepared data.

I think I tried again just using COLMAP GUI and got the same result.

Is you viewer OpenGL handed or OpenCV handed?

@brentyi
Copy link

brentyi commented Oct 26, 2023

Have you tried the "Reset View" button in the viewer side panel, implemented here? This should do the same thing as the "Reset Up Direction" button in Nerfstudio.

Possibly the dataset is just written in an difficult-to-navigate orientation by ns-process-data/COLMAP. When training in Nerfstudio there are some heuristics for re-orienting the dataset when it's loaded (this config value).

@brentyi
Copy link

brentyi commented Oct 26, 2023

For a little more detail on what seems to be happening in your video: the camera controls library being used here and in the Nerfstudio viewer is camera-controls, which you can play with in isolation here. It follows the convention of orbits happening around a global "up direction".

By default this is the world Z axis visualized in blue in your video. Hitting the "Reset View" button lets you re-assign this to a new direction, which is computed based on your current camera view.

@samhodge
Copy link
Author

I will give the reset view button a try in the next few days

@samhodge
Copy link
Author

less_wonky.mp4

Thanks a million.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants