I want to render lines of over a model. The lines are losing there actual width. I don’t want to scale the model down like I did in the image cos it won’t work when the model has protruding regions.
When using EdgesGeometry that way, the mentioned effect is inevitable. AFAIK, it’s not possible to mitigate the issue by using polygon offset so the only way is to scale down the model or scale up the wireframe. Or use a different approach for wireframes like mentioned by @prisoner849.
How can polygon offset ever be a general solution to the issue of Z-fighting? I’ve noticed how the polygon offset parameters are set to specific values (magic values?) in many of these examples…but that cannot be a general solution. So, is there even a general solution?
As I was searching, I came across the ldraw (Lego blocks) example and tried out various options and models it has provided. It seemed to have somehow resolved the Z-fighting issue in all the things I tried, although I don’t understand how.