Render with Manifold: transparent solids can look 'streaky'
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:
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) |
|---|---|
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):
- OS: NixOS
- System: Intel x86_64
- OpenSCAD Version 2024-08-17 based on
- OpenSCAD git commit 1cf4e97ed488d606c823f107dcc361f218aa84ca
- Manifold commit https://github.com/elalish/manifold/commit/22c66051dfdbcefa2012e30dd12c9b5a20f89a01
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: yesSource: openscad/openscad