-
-
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
TransformControls: Improve gizmo rendering with orthographic cameras. #24242
Conversation
Thanks! |
Hi this fix did fix the problem of the gizmo disappearing but it creates a new problem with transformCotrols and rotation. This is nolonger possible!. |
Do you mind explaining in more detail what's going wrong? |
Well if you have a orthographic camera and you want to use the Z rotation of the transformControls (hide the other axis) than you cannot rotate the object anymore, nothing happens. Without the fix you are able to rotate it. If you do not hide the other axis you are somehow able to use the "wrong" rotation axis to rotate that object. For me it feels that the pivot is than somehow wrong aligned. |
@deethee could you share a screen recording? |
I've tried to reproduce the issue for quite a while now but without success. A video would be indeed helpful. |
Strange, the gizmos look completely different compared to the current version. Are you using an older version of |
Yes I use R124, but the initial bug was in master too. |
I'm afraid we can't ensure that patches also work with previous versions of the library. If you want this issue fixed, you have to upgrade to |
Does that mean you don't have this rotation issue with the r142 and the fix applied? |
No, was not able to reproduce the issue so far. |
Hi, I just updated to latest Three release and the problem does remain. Without the patch the rotation does work. |
It does not seem to work with |
Does not work with actual version 142 also: http://jsfiddle.net/vb6t4zx5/ |
In any event you are not reporting a regression. It's seems to be an issue that always existed in |
No this bug has been introduced with the upper bugfix #24208 . The bugfix fixed errors with the transformControls Gizmos disappearing and the drag event being interrupted. This problems were fixed but now the z-rotation is no longer possible. |
Fixed #24208.
Description
This PR implements the suggestion of #24208 (comment) to mitigate the issue of disappearing gizmos when using
TransformControls
with orthographic cameras.