Created this subtask for testing several drawing techniques in order to create the Retopology overlay. Based on several implementation we can chose the best technique.
Biggest issues are that the wires should be visible on top of other meshes, but still be occluded by them.
The most common technique is to shift the depth buffer, but that will still introduce rendering atifacts.
The options we know so far we want to prototype are
- Backface depth test buffer
- Frontface depth test buffer
- Average of Back and front face buffer
note: Above options still artifacts when looking on edges of meshes, but those are actually edge cases that might not be that disturbing but we need to test.
Please keep comments related to this topic.
This is with backfacing depth test. Results are ok when retopology mesh is finished
but when having a non-manifold mesh it will still render artifacts.
Using a stencil buffer to remove render artifacts introduces sharp edges
As non-manifolds is part of the process we should find ways how to remove these render artifacts.