Optix Pathtracer messes with line width (5.11.0)

As seen in the images below.
When using ray-tracing with Optix, Scenes that contain lines (e.g. surface with lines) are completely messed up with the default line width setting of 1.
A workaround I found in a pinch is reducing the line width to something like 0.1, in order to get a similar image to the non-RT Renderer.

Is this intended behavior? Any way to prevent it, without having to touch the line width setting?


Your line width setting is the right approach to adjust this.

– more detail –

The rasterizer (OpenGL) draws lines as image space, well lines. Being in image space the pixel width is an exact match.

The ray tracers implement lines by drawing world space cylinders. Therefore look big close to the camera and small farther away. The cylinder radius corresponding to N pixel wide lines is a heuristic I made up long ago that looks “about right” in many, but not all, scenes.

Thank you for the explanation.
So it’s not something I did wrong, but technical reasons with RT being a completely different beast than rasterization.