-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Transparent faces in mesh plots overlap incorrectly #3243
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
Comments
Yeah, that's essentially the Thank you for writing in with such clear examples. |
Related #3138 |
Another example: #3410 - this for |
I think we may need to sort triangles when there are transparent ones. There might be other solutions useful for orthographic projection {this PR}. |
Another codepen to highlight the draw order issue still exists even with lower opacity values and separated RGB channels. |
Also for |
This issue has been tagged with A community PR for this feature would certainly be welcome, but our experience is deeper features like this are difficult to complete without the Plotly maintainers leading the effort. What Sponsorship includes:
Please include the link to this issue when contacting us to discuss. |
@archmoj is this currently on your pile? No worries if not - we're just trying to do some planning. |
Normally, when a face is opaque it can obscure other faces, or if the camera is rotated 180 degrees the first is now obscured by the second. This is currently not true for faces with opacity < 1. Instead it seems as if they are always layered in order of creation, so the first face in the mesh will always be on top (or beneath?) the others, no matter their relative 3D location.
The example contains 4 triangles: the two on the left are opaque while the two on the right are transparent.
https://codepen.io/anon/pen/bQqeMg
This leads to situations where obscured objects are drawn in front. All the boxes in the image below are either behind or inside the Blue one.

Observed in Chrome 70.0.3538.102 and Firefox 63.0.1 (64-bit) on Win 10
The text was updated successfully, but these errors were encountered: