-
-
Notifications
You must be signed in to change notification settings - Fork 35.5k
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
OrbitControls issue #27104
Comments
Would something like #18829 fix your issue? |
The problem is with your app. You are setting the final camera position to be on the z-axis, which is not valid when the z-axis is the camera up-direction. ( |
Thanks Mugen. Maybe. But, DEFAULT_UP is the first thing that is set. When I look at camera.up I see |
Thanks West. Could you tell me more. I don't want to have to manage two axes. I have not set camer.up, but maybe it is set implicitly? I'll take a look at camera.lookAt(). |
@LiveNathan: see #11543 for related info. |
Ok, I found that if I set
Then it seems to fix the problem at first, but there's a jump at the beginning, so I think it just moves the problem. |
checking! |
So, from this commit, it looks like I shouldn't need to worry because the issue has already been solved. Not sure how that helps me. I'm still experiencing it. Sorry if I'm not understanding. |
I spent today trying a bunch of different solution. Nothing worked. As far as I can tell this is still an issue, but I'd love to be wrong. |
You should not set the look direction to be parallel to the camera up direction, because doing so causes the camera orientation to be under-determined. In such a case, an arbitrary camera orientation is selected, which is why you see the final rotation at the end. If you need more help understanding the issue, you can request help on https://discourse.threejs.org. |
Thanks West! I have tried various solutions to avoid the parallel lookAt, without success. I'll go ahead and close the issue. Would you be willing to answer my StackOverflow question linked in my original post? It's had lots of views but no answers or solutions. |
Description
Animating a camera movement works beautifully, until you change the default up, after which there's an annoying snap rotation at the end. The default up is necessary for architectural design applications.
Here's my original StackOverflow post.
Reproduction steps
I have created a minimal reproducible example on Codepen and I have posted the question on GitHub.
Code
Live example
Codepen
Screenshots
https://youtu.be/Djo80EMwfvA
Version
https://threejs.org/build/three.module.js
Device
Desktop
Browser
Chrome
OS
MacOS
The text was updated successfully, but these errors were encountered: