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
snippet-grids example does not work #33
Comments
Yes, this one is broken. You might prefer to test |
Nice. However the mouse wheel doesn't do anything. |
Weird, this should scale the signal when you're over it. |
it doesn't
yes
yes |
So do all signals have different scales at start ? |
Yes it does get changed, but the scale doesn't appear to change on screen.
Weird...
|
Can you add (after if selected > 0.0)
The signal should change color (black to white) with mouse scroll. |
no change... |
Can you try this:
|
|
You get only two lines ? |
Here is a more complete output with @window.event
def on_mouse_scroll(x, y, dx, dy):
index = get_index(x,y)
dx = -np.sign(dy) * .05
# lines["xscale"][index] *= np.exp(2.5*dx)
# lines["xscale"][index] = min(max(1.0, lines["xscale"][index]),100)
print '--------'
print lines._vertices_buffer._pending_data
lines["xscale"][index] *= np.exp(2.5*dx)
lines["xscale"][index] = min(max(1.0, lines["xscale"][index]),100)
print lines._vertices_buffer._pending_data
print
|
Another idea to test (should scale all signals at once)
|
|
Dams. Can you comment the line (or replae with minimum/maximum instead of min/max) ? |
Commenting the line = no more error messages, but the screenshot is the same. |
I think I have found. your texture is most probably clamped between 0 and 1 by the GPU. Since xscale is between 0 and 100, it does not work. Can you try to add xscale*100 in the shader where necessary, and use:
|
Yep that was the problem! |
Intel GPU:
NVIDIA GPU:
and scrolling =>
The text was updated successfully, but these errors were encountered: