using GLMakie GLMakie.activate!() function mwe_segments(step_size) fig = Figure() ax = Axis3(fig[1,1],viewmode = :fit, aspect = (1.0,1.0,1.0)) for y in -10:step_size:10 lines!(ax,[SVector(0.0,y,0.0),SVector(10.0,y,0.0)], color = "black") end display(fig) end
step_size to one and you get a set of nicely spaced black lines.
step_size to .1 and you get this:
step_size to .01 and you get this:
As the lines overlap more and more I would expect to see an area of solid black. But instead this area is now almost white. It’s opaque as well; objects behind the lines won’t show through. This looks like an anitaliasing problem, or perhaps a zbuffer precision problem.
I tried setting fxaa both true and false but it doesn’t make a difference. Is there a way to fix this?