Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect display at difference #5027

Closed
kberkut opened this issue Mar 3, 2024 · 4 comments
Closed

Incorrect display at difference #5027

kberkut opened this issue Mar 3, 2024 · 4 comments

Comments

@kberkut
Copy link

kberkut commented Mar 3, 2024

Describe the bug
Surfaces subject to subtraction are not displayed.

To Reproduce
Repeat the simple code
$fn = $preview ? 100 : 100; Dh = 50; Hh = 50; Dotv = 8; TH = 5; module work() { difference() { cylinder(d = Dh, h = Hh); cylinder(d = Dotv, h = Hh + TH); translate([0,0,-1]) cylinder(d = Dh - 2 * TH, h = Hh - TH); } } work();

Expected behavior
Clear visibility of the surfaces of the shape that has undergone the difference operation

Code reproducing the issue
If applicable, add trimmed down, self-contained code demonstrating the issue.

Screenshots
image
image

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

  • OS: Arch Linux
    Kernel: x86_64 Linux 6.7.6-arch1-2
    DE: GNOME 45.3
    WM: Mutter

  • System:
    CPU: AMD Ryzen 5 3500U with Radeon Vega Mobile Gfx @ 8x 2.1GHz
    GPU: AMD Radeon Vega 8 Graphics (radeonsi, raven, LLVM 16.0.6, DRM 3.57, 6.7.6-arch1-2)
    RAM: 5194MiB / 9884MiB

  • OpenSCAD Version 2024.03.02.ai18721 (git e3e5f8e), appimage

Additional context
It is displayed normally if applied: render()
But then the coloring of the colors of the cut surfaces is not displayed.
Function "manifold" may be enable or disable - does not affect. Other all function is off.
image

@kintel
Copy link
Member

kintel commented Mar 3, 2024

This seems like a duplicate of the issue discussed at the bottom of #4861. Could you verify whether downgrading from Mesa 24 to Mesa 23 solves the issue?

@kberkut
Copy link
Author

kberkut commented Mar 4, 2024

This seems like a duplicate of the issue discussed at the bottom of #4861. Could you verify whether downgrading from Mesa 24 to Mesa 23 solves the issue?

Downgraded the version. Yes, I confirm. Something has changed in the new versions of openscad, apparently there is a bug somewhere.

image

@kintel
Copy link
Member

kintel commented Mar 4, 2024

Thanks, closing as duplicate of #4861

@kintel kintel closed this as completed Mar 4, 2024
@kintel
Copy link
Member

kintel commented Apr 1, 2024

This was a bug in Mesa. Fixed in Mesa-24.0.4: https://docs.mesa3d.org/relnotes/24.0.4.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants