Anti-aliasing problems (black & white stripes moving along lines)
Hey guys,
I am not sure if the problem is actually called aliasing because my problem is in colours rather that smoothness. As said in the title I can't ged rid of the black/white stripes that move along my lines. I tried also using fxaa shader with downsampling but it doesn't help...
Try this.
Hope the comments make it clear.
Hey Andro,
unfortunately the unwanted artefacts are still there, especially when I set the line width back to 1 which is what I want.
Well then I think your stuck with that problem.
The line is an approximation, drawing a line of varying angles will always have artefacts.
Check the jitter manual.
Antialiasing
When OpenGL draws polygons and lines, it approximates their ideal geometric shapes by filling in pixels on a raster grid. This process is prone to difficulties that parallel those in reconstructing ideal waveforms with digital audio. Inevitably, aliasing, spatial frequencies that are not included in the ideal image, will be introduced once it is reconstructed from discrete pixels. This aliasing is visible as what are commonly known as “jaggies,” especially in near-horizontal or near-vertical lines or edges.
OpenGL has some antialiasing techniques for reducing the jaggies. We’ve made these available in Jitter through attributes of the GL group of objects. Using these attributes, you can specify whether any given object in the GL group will use antialiasing when it is drawn.
• Turn on the toggle box above the message box antialiasing $1 to send the message antialias 1 to the jit.gl.gridshape object.
Its less with a slightly thicker line and the double dimension capture I put into jit.gl.node, thats the best I can offer.
Good luck with it.