discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Trouble Rendering Complex Model

MM
Michael Marx (spintel)
Fri, Sep 13, 2024 3:47 AM

Sorry, I didn't scroll down enough to see the images, and for some reason only one was an attachment...

Yes coincident faces, if you have just difference()'ed cubes without small adjustments that will happen.

Also if you have many cubes which share a corner, you could get a singularity, tho I don't know how Manifold handles that now.

See https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/FAQ#What_are_those_strange_flickering_artifacts_in_the_preview?


From: Jordan Brown via Discuss [mailto:discuss@lists.openscad.org]
Sent: Fri, 13 Sep 2024 13:31
To: OpenSCAD general discussion Mailing-list
Cc: Nathan Sokalski; Jordan Brown
Subject: [OpenSCAD] Re: Trouble Rendering Complex Model

That render is certainly wrong.  It looks like a bunch of coordinates got zapped into being [0,0,0].

I see that you've got Manifold enabled.  Does it misbehave with CGAL (Manifold disabled)?

What version of OpenSCAD are you running?

Ten million facets seems implausibly large for that model.  What do you have $fs, $fa, and $fn set to?

I assume that the overall structure of the program is a cube, with individual shapes subtracted away from it.  For each shape subtracted away, disable it and see if the problem still recurs.

I see some Z-fighting in the preview.  You might want to fix that.  It shouldn't be a problem for render, but it's not a silly possibility.

Like I said, if they aren't confidential, shoot me the files and I'll take a stab at it.

Sorry, I didn't scroll down enough to see the images, and for some reason only one was an attachment... Yes coincident faces, if you have just difference()'ed cubes without small adjustments that will happen. Also if you have many cubes which share a corner, you could get a singularity, tho I don't know how Manifold handles that now. See https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/FAQ#What_are_those_strange_flickering_artifacts_in_the_preview? _____ From: Jordan Brown via Discuss [mailto:discuss@lists.openscad.org] Sent: Fri, 13 Sep 2024 13:31 To: OpenSCAD general discussion Mailing-list Cc: Nathan Sokalski; Jordan Brown Subject: [OpenSCAD] Re: Trouble Rendering Complex Model That render is certainly wrong. It looks like a bunch of coordinates got zapped into being [0,0,0]. I see that you've got Manifold enabled. Does it misbehave with CGAL (Manifold disabled)? What version of OpenSCAD are you running? Ten million facets seems implausibly large for that model. What do you have $fs, $fa, and $fn set to? I assume that the overall structure of the program is a cube, with individual shapes subtracted away from it. For each shape subtracted away, disable it and see if the problem still recurs. I see some Z-fighting in the preview. You might want to fix that. It *shouldn't* be a problem for render, but it's not a silly possibility. Like I said, if they aren't confidential, shoot me the files and I'll take a stab at it.