-
-
Notifications
You must be signed in to change notification settings - Fork 55
Making material pickability controllable #704
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
Conversation
In building #700 i learned that a "pick" is generated everytime you move your mouse, so for the very least, the background of the scene should be made pickable to get the mouse movement events. |
I think I know what's missing. In |
I think I tried something like your suggestion in 65cb368 but it seems that have crashed quite badly on me. I'll have to sleep on this. maybe read more about GPUs |
Not exactly what I meant. Sorry for being not sufficiently clear. I meant that in the implementation of the pygfx/pygfx/renderers/wgpu/engine/blender.py Lines 80 to 96 in 0189f81
pygfx/pygfx/renderers/wgpu/engine/blender.py Lines 184 to 200 in 0189f81
pygfx/pygfx/renderers/wgpu/engine/blender.py Lines 408 to 424 in 0189f81
And these methods of the passes are all called via this method of the blender object: pygfx/pygfx/renderers/wgpu/engine/blender.py Lines 572 to 573 in 0189f81
|
Not so much related to GPU's. The |
08d0377
to
f9014ff
Compare
my notes
Feature
|
This was found in pygfx#704 It seems that write_pick was previously used a sentinel to detect the type of pass that was getting used. It is currently defined as true when: * BasePass * OpaquePass * FullOpaquePass * SimpleSinglePass * FrontmostTransparencyPass
611d3b7
to
90f27e3
Compare
90f27e3
to
9825550
Compare
Ok i added a note in the docs about the change in the default value. Hopefully this is good to go. |
a78bd05
to
799da22
Compare
Have you confirmed toggling Looks good to go other than some small typos, see my inline comments. |
No. I need to think of a "demo" test for this. |
Co-authored-by: Korijn van Golen <korijn@gmail.com>
We'll merge, would be great if you could still follow up on that check. Thanks a ton! |
I just checked, and it does not 😛 Created #720 to track. I can have a look. |
😮💨 |
My first observation are:
pointer_move
event is no longer getting triggered for the one I attached to my scene.xref: #702
General todo list
examples/feature_demo/image_click_events.py