Almar Klein
Almar Klein
ccing @korijn into this discussion about events. In rendercanvas we decided to keep events simple dict objects, and we planned to make pygfx' events simple dicts too. Simple dicts have...
An alternative could be that rendercanvas and pygfx stick to simple dicts, and that fastplotlib turns them into typed objects. But I'm leaning to the former so we have more...
### Exploring options > Another benefit is that everybody knows how to work with a dict. A class requires you to learn the class design. Yeah, but the point Kushal...
> Maybe we can only perform the conversion when a user actually subscribes with an event handler? 👍 > And maybe `__slots__` can help? Good point. I see two options,...
> Is rendercanvas the best place to implement this? Yes
No, I think picking should work on the full marker, including the edge.
> My hunch is that this may be related to opaque vs transparent picking in version 0.12.0 That's correct. on 0.12 (semi)transparent fragments are not pickable. In current `main` it...
Yes. Though some things to keep in mind... If the object is opaque, it will write to the depth buffer, and the edge will too, even though it's invisible. So...
Here is a minimal example for rendering some volume slices: ```py import imageio.v3 as iio import numpy as np from rendercanvas.auto import RenderCanvas, loop import pygfx as gfx import pylinalg...
The `renderer.snapshot()` works, but note that it samples from the *internal* texture, so the result may be different then what's shown on screen. If anything, the resolution will be higher....