-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
No overlap when drawing rotate gizmo and draw start / end segments #11550
Conversation
Signed-off-by: guillaume-haerinck <guillaume.haerinck@outlook.com>
Added Right now this feedback is only added for the rotation manipulator used for entities but would be cool to add for the rotation manipulator used for PhysX colliders too if you're interested 🙂 Thanks very much for looking into this and for the contribution! 👍 (tagging @amzn-leenguy, @bhanuja-s, @yuyihsu and @rainbj for visibility) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change looks great, I just have a few minor suggestions. It would just be good to get UX sign-off and then I can approve. Nice change thanks!
...work/AzToolsFramework/AzToolsFramework/Manipulators/AngularManipulatorCircleViewFeedback.cpp
Outdated
Show resolved
Hide resolved
...work/AzToolsFramework/AzToolsFramework/Manipulators/AngularManipulatorCircleViewFeedback.cpp
Outdated
Show resolved
Hide resolved
Signed-off-by: guillaume-haerinck <guillaume.haerinck@outlook.com>
Good idea it would be nice to have it as well for the physX collider, I'll check this when I can 👍 |
I love this update! I also like your forward thinking on the colour change on further rotations. Regardless, what i see in the video is great. Sign off from me (UX) |
Note: I can only review from UX Pov. I don't want to approve the code since it's not my field :) |
that looks very nice, I like it :D. The note about blender 2.8 doesn't seem that much harder. you divide and also take the modulus. the modulus is the reminder on the next rotation so you draw that section in with the darker color and the division is for the intensity of the overlap color. you need to render the overlapping slice and the remaining. I think you can easily do it in this change if you wanted to :? |
Thanks :) Well without my changes, the color will increase in intensity, the problem is that when it does, the radius segments become hard to see and it can looks like a bug. In my opinion the best solution would be - in the future - to increase the line width of every gizmos in order to enable the overlap (similar to Unreal, Blender, Godot, etc) Example in blender : |
Agree we can always add more refinements in future but for now this is a definite improvement and would be great to get in, nice work @guillaume-haerinck! 🥳 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! I'll kick off a build now 👍
Build is here - https://jenkins.build.o3de.org/job/O3DE/view/change-requests/job/PR-11550/1/ (FYI there are some flaky tests and some environmental flakiness right now just as a heads-up... we're working on improving this but it might take 2-3 runs to pass, if it fails for a spurious reason let me know and I'll follow-up 👍) |
Hi, @guillaume-haerinck and @hultonha my only question would be about the base use case here. I could imagine that if this tooling was used to create shapes, then yes we would want to limit the number of rotations. But I can also imagine if this was used for something like base rotation, it could limit the user from collecting the specific rotational value that might be needed for a Script Canvas or a grouped object that changes over several rotations. As for the visual side of the function, I think it looks great! Looking forward to hearing more about this functioanility. |
Hi @rainbj, this was purely a visual improvement to how the quadrant of the rotation (angular) manipulator filled-up, glad you like the changes! 🙂 |
Signed-off-by: guillaume-haerinck guillaume.haerinck@outlook.com
What does this PR do?
Fix for #11308
Note : In blender 2.8+, colors overlaps with further rotation. It stays visible as the radius segments have a bigger width, might be a good future change.
How was this PR tested?
Checked with all angles of the gizmo