-
Notifications
You must be signed in to change notification settings - Fork 20
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
Implement highlight on hover using a Color Picking technique #8
Conversation
Thanks @martinRenou, It looks great! |
So actually, maybe instead of an "highlight on hover" behavior, it would make sense to implement a click selection, and when you click on the piece it selects it in the control panel? That way we can both select from the control panel and select from the 3D view. |
Let's do just like FreeCad! The color-picking being super cheap, I think we can afford it. |
d2ffdb0
to
7147886
Compare
I implemented both an hover logic and a click logic for selection: click_hover.mp4We can bind the control panel UI to the actual 3D selection in a separate PR |
57002fe
to
046d1a6
Compare
Thanks! |
…cad#8) * Implement highlight on hover using a Color Picking technique * Implement both selection and hover * No need to compute pointer position on click
For now this is only a visual effect, the state is not synced between clients. We can discuss in an issue whether this could be useful or not.
color_picking.mp4