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

Fix the problem that camera will be freezed when moving forward #2404

Merged

Conversation

yzslab
Copy link
Contributor

@yzslab yzslab commented Sep 7, 2023

Hi,
In the web viewer, rotate up/down via mouse drage not work when pressing w:

2023-09-07.21-48-37.mp4

and the camera will be freezed after pressing w for a while:

2023-09-07.21-08-36.mp4

Current implementation will led to position === target: https://stackoverflow.com/questions/47503286/why-do-three-js-trackball-controls-freeze-if-camera-position-controls-target

This modification can fix these problems:

2023-09-07.21-47-29.mp4
2023-09-07.21-32-04.new.mp4

Copy link
Contributor

@tancik tancik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tancik tancik enabled auto-merge (squash) September 8, 2023 00:24
@tancik tancik merged commit 9625ab7 into nerfstudio-project:main Sep 8, 2023
4 checks passed
@yzslab yzslab deleted the web_viewer_camera_forward_fix branch September 10, 2023 13:55
maturk pushed a commit that referenced this pull request Sep 11, 2023
* fix camera freezed when moving forward

* simplify code

---------

Co-authored-by: Matthew Tancik <matt@lumalabs.ai>
@pwais
Copy link
Contributor

pwais commented Sep 11, 2023

I ran into this a lot, thank you so much for fixing!!!!

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

Successfully merging this pull request may close these issues.

None yet

3 participants