Share scenes between subplots #973
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Resolves #952
I followed the suggestion and mostly copied the code for
controller_ids. And doing the scene creation further up (but hopefully not breaking existing functionality).Here is the current state by modifying one of the controller examples, I will try to find time to add like a multi object tracking example instead.
bad_example.mp4
With the Axes from other subplots being part of the scene it's a bit awkward. Not sure how viable it is, but having a few parts of the scene be "per subplot" (axes, screen space text labels, LUT) while the rest is shared (meshes, images, materials, etc)?... Not sure what pygfx enables - but I will think about it and have a look.
draft as there is still a lot of stuff broken, I will hopefully find some more free time next weekend/monday.