#5319·openscad

Render with Manifold: transparent solids can look 'streaky'

Author: hzellerCreated Sep 24, 2024Updated Sep 27, 2026
LabelsTag: RenderingType: BugTag: Manifold

I really like that Manifold renders retain the color information compared to CSG.

Of course, that results in new wishes, such as also rendering transparent objects nicely.

Code

Here a simple example with a difference of two disks:

openscad
e=0.01;
color("#FFFFFF50") {
  difference() {
    cylinder(r=30, h=10);
    translate([0, 0, -e]) cylinder(r=5, h=10+2*e);
  }
}

With Manifold, they are rendered transparently, but they look 'streaky':

Preview (F5) 'Streaky' Render with Manifold (F6)
streak-preview streak-render

It looks like as if there are some triangle faces inside the solid that modify the lighting. Maybe they are accidental triangles created by the difference() operation that should't be there ? Or it is working-as-intended, but still worthwhile to confirm by the developers.

Environment and Version info (please complete the following information):

Library & Graphics card information library-info.txt

Possibly the relevant part there:

GL context creator: EGL (new)
EGL version: 1.5
GLAD version: 2.0.4
OpenGL Version: 4.6 (Compatibility Profile) Mesa 24.1.5
GL Renderer: Mesa Intel(R) Graphics (ADL GT2)
GL Vendor: Intel
RGBA(8888), depth(24), stencil(8)
GL_ARB_framebuffer_object: yes
GL_EXT_framebuffer_object: yes
GL_EXT_packed_depth_stencil: yes