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

r3f look at camera implementation. #1292

Open
Ppint opened this issue Sep 20, 2023 · 4 comments
Open

r3f look at camera implementation. #1292

Ppint opened this issue Sep 20, 2023 · 4 comments

Comments

@Ppint
Copy link

Ppint commented Sep 20, 2023

how to make vrm look at camera when using r3f? assume that I make vrm into a separate components. I tried the one in docs and it doesn't work

I followed and adapt from this code pen. https://codesandbox.io/s/react-three-fiber-vrm-9ryxq?file=/src/index.tsx

@yue4u
Copy link
Contributor

yue4u commented Sep 21, 2023

@Ppint Hi! From my perspective lookAt works as intended. Can you elaborate on what's your problem?

Please note that the dependencies in the example are very old. Try upgrading three, three-vrm, react and r3f to newer versions. You can find migration guide for three-vrm at https://github.com/pixiv/three-vrm/blob/dev/docs/migration-guide-1.0.md

@Ppint
Copy link
Author

Ppint commented Sep 22, 2023

@Ppint Hi! From my perspective lookAt works as intended. Can you elaborate on what's your problem?

Please note that the dependencies in the example are very old. Try upgrading three, three-vrm, react and r3f to newer versions. You can find migration guide for three-vrm at https://github.com/pixiv/three-vrm/blob/dev/docs/migration-guide-1.0.md

now i got it working. but useEffect is causing lag and freeze. any idea how to fix it?

@Ppint
Copy link
Author

Ppint commented Sep 22, 2023

also vrm hair would be jerking randomly

@yue4u
Copy link
Contributor

yue4u commented Sep 25, 2023

@Ppint Thanks for the replies. However, I don't notice any particular performance issues in the example on my machine. Can you make sure you have hardware acceleration turned on?

It'll be very helpful if you can share your machine spec and include some video captures of the issue.

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