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

Integrate scene click capability from original viewer #2509

Merged
merged 8 commits into from
Nov 29, 2023
Merged

Conversation

chungmin99
Copy link
Contributor

In the original viewer, a user could click on a point in the screen, to specify a "ray"-like interaction (akin to a pointer finger stick originating from the client camera, going through the clicked pixel on the image plane).

This replicates the original capability in viewer_beta, with a few differences:

  • Functionality to remove scene click listeners, once instantiated (unregister_click_cb)
  • Wraps the scene click events (which take as input nerfstudio's ViewerClicks) inside a function that takes as input ScenePointerEvent, for viser-nerfstudio compatibility.

(Implementation based on the recently integrated viser PR nerfstudio-project/viser#106)

@chungmin99 chungmin99 marked this pull request as draft October 14, 2023 05:13
@chungmin99 chungmin99 marked this pull request as ready for review November 29, 2023 22:21
Copy link
Collaborator

@kerrj kerrj left a comment

Choose a reason for hiding this comment

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

sgtm

@chungmin99 chungmin99 merged commit 5865ecf into main Nov 29, 2023
4 checks passed
@chungmin99 chungmin99 deleted the cmk/rayclick branch November 29, 2023 22:48
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

2 participants