Transparent faces in mesh plots overlap incorrectly
還沒有人認領這個 Issue。
- 主要語言
- JavaScript
- 星號
- 18.3k
- 分支
- 2k
- 平均合併
- 2 天 12 小時
- 30 天內合併 PR
- 28
描述
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.
- Notice how the orange face is always in front of the blue one, even though they intersect and part of it should be behind, as demonstrated by the purple and red triangles.
- Even if the camera is rotated.
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
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
從連結的 CodePen 重現開始,並在 Chrome 或 Firefox 中執行它。旋轉攝影機時,比較相交的不透明三角形和透明三角形,然後確認透明面是依照其 3D 位置而非建立順序排序,且被遮擋的物件不再渲染在前方。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- javascript
- 領域
- computer-graphics, data-visualization
- Issue 類型
- 缺陷
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100