GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||
GeezerVison is showing github.com — Refactor z-order to ensure axes are on top by almarklein · Pull Request #906 · fastplotlib/fastplotlib Conversation
|
|
One thing that makes this tricky is that although a lot of examples / use-cases are 2D, it's hard to determine reliably when we can assume the scene to be 2D. Therefore I went with an approach that more or less assumes 3D but also works well in 2D. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Older images pushed back, so this means if I add a new image it will appear on top of the existing ones? This is desired and most intuitive, and is similar with other plotting libs. If I add a like and then scatter points, these points will appear on top of the line? Usually the scene is 3D if the camera.fov > 50 Btw there was this related ideas before: #839 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Exactly. And yet the top image will still be below the points, lines, and axes.
Yes. But here it's a bit more tricky, since (assuming the data is 2D) they are both at There are a few reasons why depth-fighting should be unlikely:
For reference, other measures we can take for depth fighting:
Usually ... but it's perfectly sensible for sciency 3D data to be rendered using orthographic projection. Whether pan-zoom is used (and looking down z) would be a more appropriate signal. In any case, I really like the idea to create the scene in a way that works for both 2D and 3D cases, so users can switch and all keeps making sense. I think we can make that work.
In the comment in #839 I still assumed the scene was always 2d :) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
📚 Docs preview built and uploaded! https://www.fastplotlib.org/ver/z-order |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Can you explain this a bit? I also made a issue on pygfx to understand |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
very nice, few comments 😄
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
Ensure axes are on top with orthographic projections Dynamically place axes on camera near clipping plane
There was an error while loading. Please reload this page.