-
-
Notifications
You must be signed in to change notification settings - Fork 21.3k
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
Tweak appearance of 3D editor gizmo icons #91174
Tweak appearance of 3D editor gizmo icons #91174
Conversation
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.
Looks good to me overall but I wonder if the new color isn't too dark/dim.
How about a 0.6 or 0.7 multiplier instead of 0.5?
28e6c32
to
9b99ecd
Compare
I've changed the multiplier to 0.6. |
Needs a rebase to fix web CI builds. |
- Use alpha scissor to resolve transparency sorting issues with gizmo icons relative to other transparent materials in the scene. This also makes gizmos visible in `screen_texture`, which means gizmos can now be seen through refractive materials. Lastly, this reduces the amount of artifacts visible around gizmo outlines (although they are still present at times). - Make icons darker when not selected to be less intrusive (and easier to distinguish when selected).
9b99ecd
to
e52c9cd
Compare
Thanks! |
Ooooh just noticed this. It caught me off guard. It will take some getting used to, but I think it is overall a great change |
Wow, I literally just noticed that my gizmos were vanishing for this reason today. Thanks for working on it! |
screen_texture
, which means gizmos can now be seen through refractive materials. Lastly, this reduces the amount of artifacts visible around gizmo outlines (although they are still present at times).This isn't a perfect solution to all gizmo rendering problems by any means, but it should provide an usability upgrade already.
See Gizmos aren't Z-sorted properly with transparent surfaces #9935
and Node icons in the 3D views have a crusty outline #82579.
Preview
All screenshots/videos performed with a 1920×1080 editor window. At higher resolutions, gizmos look better (both before and after this PR).
All gizmos
The RGB stripes are located behind the gizmos' position, and they use a transparent (Alpha) material.
Selected gizmo comparison
Gizmo visible behind refractive material
Gizmos are still refracted (as they are part of the screen texture), but it's better than nothing.
Transparency sorting
Before (incorrect)
The decal and camera gizmos appear behind the red toruses that are far away in the background, but they shouldn't.
simplescreenrecorder-2024-04-25_20.13.59.mp4
After (correct)
simplescreenrecorder-2024-04-25_20.13.28.mp4