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

How to Add First-Person Camera Control? #358

Open
lionlai1989 opened this issue Dec 23, 2024 · 2 comments
Open

How to Add First-Person Camera Control? #358

lionlai1989 opened this issue Dec 23, 2024 · 2 comments

Comments

@lionlai1989
Copy link

Hi Viser Developers,

I am trying to add a first-person camera control to this project. I found that @react-three/drei provides an example implementation for first-person camera control. However, I am unsure how to integrate it into this project.

I tried to modify the src/viser/client/src/CameraControls.tsx file but couldn't figure out the correct approach to implement it.

Could you please provide guidance where I should start?

Thank you for your help!

@brentyi
Copy link
Collaborator

brentyi commented Dec 26, 2024

Hello! Unfortunately I haven't attempted this myself, so I don't have a good idea of what the challenges of implementing first-person control are.

There's a PR at #274 from Mehdi which could be useful as a reference, though. The goal there is also to add first-person camera controls.

@lionlai1989
Copy link
Author

@brentyi
I didn't realize there is a PR for this. I will take a look into it. Thanks a lot.

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