I have a set of utils that do PostScript-style stroking with extrusion. When I use them to draw several strokes along a graph the faces of the strokes are of course coplanar where the strokes intersect. The result is some weird looking artifacts. the colors are almost randomly mixed with odd looking Moire effects. (see attached screenshot). Each stroke is completely rendered separately (i.e. in its own begin/end). I assume this is effect is somehow related to the tesselator/GL rendering being unable to decide who is on top?
I should add that GL_DEPTH_TEST is enabled and set to GL_LESS.
Any suggestions or comments?
TIA
You’d want to disable depth testing (at least depth writing), or do one or both of following: a) move the strokes apart in Z, b) increase the depth buffer accuracy (try moving near & far clip planes).