discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Re: Command Line PNG

JB
Jordan Brown
Wed, Jul 12, 2023 1:43 AM

On 7/11/2023 4:08 PM, Trevor Orr via Discuss wrote:

I had to keep the --render option

Why?  What went wrong?

I believe that without --render it should give you the same image that
you would have gotten from an F5 preview in the UI.  Do those look OK?

If there are transparent patches in your preview results, it suggests
that you need to set "convexity" somewhere in your model.  See this FAQ
https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/FAQ#Why_are_some_parts_(e.g._holes)_of_the_model_not_rendered_correctly?.

On 7/11/2023 4:08 PM, Trevor Orr via Discuss wrote: > I had to keep the --render option Why?  What went wrong? I believe that without --render it should give you the same image that you would have gotten from an F5 preview in the UI.  Do those look OK? If there are transparent patches in your preview results, it suggests that you need to set "convexity" somewhere in your model.  See this FAQ <https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/FAQ#Why_are_some_parts_(e.g._holes)_of_the_model_not_rendered_correctly?>.
TO
Trevor Orr
Wed, Jul 12, 2023 2:57 AM

I have not seen the convexity parameter before, I will play around with
that and see if that fixes my preview issues

On July 11, 2023 6:43:27 PM Jordan Brown openscad@jordan.maileater.net wrote:

On 7/11/2023 4:08 PM, Trevor Orr via Discuss wrote:

I had to keep the --render option

Why?  What went wrong?

I believe that without --render it should give you the same image that you
would have gotten from an F5 preview in the UI.  Do those look OK?

If there are transparent patches in your preview results, it suggests that
you need to set "convexity" somewhere in your model.  See this FAQ.


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

I have not seen the convexity parameter before, I will play around with that and see if that fixes my preview issues On July 11, 2023 6:43:27 PM Jordan Brown <openscad@jordan.maileater.net> wrote: > On 7/11/2023 4:08 PM, Trevor Orr via Discuss wrote: >> I had to keep the --render option > > > Why? What went wrong? > > I believe that without --render it should give you the same image that you > would have gotten from an F5 preview in the UI. Do those look OK? > > If there are transparent patches in your preview results, it suggests that > you need to set "convexity" somewhere in your model. See this FAQ. > > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org
RW
Rogier Wolff
Wed, Jul 12, 2023 12:05 PM

On Wed, Jul 12, 2023 at 01:43:11AM +0000, Jordan Brown wrote:

If there are transparent patches in your preview results, it suggests
that you need to set "convexity" somewhere in your model

Or the camera position is inside some "subtracted" object.

Try
difference () {
cylinder (d=30, h=40, center=true);
translate ([0,-100,0]) cube (100);
}

(in my example, it looks as if the subtract didn't work. It's the
easiest example I could think of where F5-preview and F6-render differ
significantly. But other failure modes also exist. If you're dragging
the controls, it is reasonably easy to find a viewpoint where you can
see what you are doing, but that's no good if you're animating some
mechanism for a video).

Roger. 

--
** R.E.Wolff@BitWizard.nl ** https://www.BitWizard.nl/ ** +31-15-2049110 **
**    Delftechpark 11 2628 XJ  Delft, The Netherlands.  KVK: 27239233    **
f equals m times a. When your f is steady, and your m is going down
your a is going up.  -- Chris Hadfield about flying up the space shuttle.

On Wed, Jul 12, 2023 at 01:43:11AM +0000, Jordan Brown wrote: > If there are transparent patches in your preview results, it suggests > that you need to set "convexity" somewhere in your model Or the camera position is inside some "subtracted" object. Try difference () { cylinder (d=30, h=40, center=true); translate ([0,-100,0]) cube (100); } (in my example, it looks as if the subtract didn't work. It's the easiest example I could think of where F5-preview and F6-render differ significantly. But other failure modes also exist. If you're dragging the controls, it is reasonably easy to find a viewpoint where you can see what you are doing, but that's no good if you're animating some mechanism for a video). Roger. -- ** R.E.Wolff@BitWizard.nl ** https://www.BitWizard.nl/ ** +31-15-2049110 ** ** Delftechpark 11 2628 XJ Delft, The Netherlands. KVK: 27239233 ** f equals m times a. When your f is steady, and your m is going down your a is going up. -- Chris Hadfield about flying up the space shuttle.