Transparent faces in mesh plots overlap incorrectly
Ninguém assumiu esta issue ainda.
- Linguagem predominante
- JavaScript
- Estrelas
- 18.3k
- Forks
- 2k
- Merge médio
- 2d 12h
- PRs com merge (30d)
- 28
Descrição
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
Guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Direção de pesquisa
Comece com a reprodução vinculada no CodePen e execute-a no Chrome ou Firefox. Compare os triângulos opacos e transparentes que se intersectam enquanto gira a câmera e, em seguida, verifique se as faces transparentes são ordenadas pela posição 3D, e não pela ordem de criação, e se os objetos obstruídos não são mais renderizados à frente.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- javascript
- Domínio
- computer-graphics, data-visualization
- Tipo de issue
- Bug
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Status de atividade
- Estagnada
- Clareza
- Razoavelmente clara
- Facilidade para iniciantes
- 35/100