-
-
Notifications
You must be signed in to change notification settings - Fork 21.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
Improve the 3D editor selection box appearance #40106
Conversation
Same comment as in the 2D counterpart here : #40118 The other changes look good :) |
@groud If you'd like, I can try drawing a translucent black box that's about as large as the original so the selection outline can be seen on any background. |
The right edge looks like it is receiving shadows, or it is translucent (but it isn't behind any face). I don't think the selection box should receive shadows. |
@hinlopen Both selection boxes (translucent and opaque) are unshaded. The opaque selection box isn't visible through solid surfaces, but the translucent one is. |
2ee27c8
to
74c0824
Compare
74c0824
to
f12345a
Compare
- Draw two boxes slightly offset from each other to give the illustion of a thicker outline. - Decrease the offset compared to the 3D node's AABB to give a more accurate representation of its size. - Make the box fully visible instead of only displaying the corners. - Draw a x-ray version of the box that's more translucent, but visible through walls. This helps make the box more visible while still having a sense of depth. - Use an orange color similar to the 2D editor.
f12345a
to
8a3a4fa
Compare
Thanks! |
Yup, I think it's a lot better with this orange! Good job! |
Preview
Old version
I thought about adding a subtle fill, but it's fairly complex so I'd prefer leaving it to a future PR.