-
-
Notifications
You must be signed in to change notification settings - Fork 313
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
Strange behavior when inspecting lines in WGLMakie #3672
Comments
If anyone else encounters this, a workaround for us was to use |
Seems like the index returned by What WGLMakie version did you record your video with? |
I tried again just now with the master versions of WGLMakie, Bonito, etc. There is still some strange behavior, but not as strange as before. Mousing over the red segment is now fixed: It shows a hover window with the text "hello" in the right position. Mousing over the blue segment now correctly shows a hover window with the correct text "nice". However, in the second case, the "nice" hover is in the wrong the position (it shifts leftward as the mouse position is raised vertically). |
The position is due to the “wrong” index returned by |
Yeah the shaders in WGLMakie and GLMakie work a bit different and its hard to do exactly the same thing in them for the index. |
IMO WGLMakie has the "correct" behavior. When mousing over the first line it returns index 1 and mousing over the second line index 3. While GLMakie returns 2/4 respectively. |
However, I don't think it really matters what behavior they have as long as they're consistent. Consistency is more important than picking the more convenient implementation detail. |
It wouldn't be hard to have the index be the nearest line point either, because we already have a value for color interpolation along the line. I.e. have
as the output. Though maybe it's better to always get the start index of a line segment so that it is consistently given as |
This is a follow-on to #3503. Not an immediate blocker for us; we've moved away from WGLMakie due to multiple issues (SunnySuite/Sunny.jl#211). GLMakie gives an overall more robust experience, and we're happy with it.
The following snippet leads to strange behavior, as shown in the movie below.
2D_example.mov
The text was updated successfully, but these errors were encountered: