discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

CPU load remains high after previewing but not after render

TA
Todd Allen
Sun, Aug 4, 2024 4:43 PM

When working with complex high facet models I've turned off automatic
preview and just use rendering because previewing overheats my CPU and
makes it nearly impossible to adjust the viewport as much of the interface
becomes so sluggish it is practically frozen.  I had been taking advantage
of the $preview variable to set the other resolution adjusting vars such as
$fs to minimize resolution for previewing and have a high resolution for
rendering.  But now I have been manually changing vars to only have high
res for renders before exporting.  What I'd really love to have is a way to
do single keystrokes for a preview render, a full render and an export
render (as an obj and not an stl).  I expect I will have to build my own
from source to achieve this but thought I would ask in case I am missing
something and other solutions are possible.

When working with complex high facet models I've turned off automatic preview and just use rendering because previewing overheats my CPU and makes it nearly impossible to adjust the viewport as much of the interface becomes so sluggish it is practically frozen. I had been taking advantage of the $preview variable to set the other resolution adjusting vars such as $fs to minimize resolution for previewing and have a high resolution for rendering. But now I have been manually changing vars to only have high res for renders before exporting. What I'd really love to have is a way to do single keystrokes for a preview render, a full render and an export render (as an obj and not an stl). I expect I will have to build my own from source to achieve this but thought I would ask in case I am missing something and other solutions are possible.
NH
nop head
Sun, Aug 4, 2024 4:57 PM

F5, F6 and F7 do preview, render and export but I think F7 is STL only.

On Sun, 4 Aug 2024 at 17:44, Todd Allen via Discuss <
discuss@lists.openscad.org> wrote:

When working with complex high facet models I've turned off automatic
preview and just use rendering because previewing overheats my CPU and
makes it nearly impossible to adjust the viewport as much of the interface
becomes so sluggish it is practically frozen.  I had been taking advantage
of the $preview variable to set the other resolution adjusting vars such as
$fs to minimize resolution for previewing and have a high resolution for
rendering.  But now I have been manually changing vars to only have high
res for renders before exporting.  What I'd really love to have is a way to
do single keystrokes for a preview render, a full render and an export
render (as an obj and not an stl).  I expect I will have to build my own
from source to achieve this but thought I would ask in case I am missing
something and other solutions are possible.


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

F5, F6 and F7 do preview, render and export but I think F7 is STL only. On Sun, 4 Aug 2024 at 17:44, Todd Allen via Discuss < discuss@lists.openscad.org> wrote: > When working with complex high facet models I've turned off automatic > preview and just use rendering because previewing overheats my CPU and > makes it nearly impossible to adjust the viewport as much of the interface > becomes so sluggish it is practically frozen. I had been taking advantage > of the $preview variable to set the other resolution adjusting vars such as > $fs to minimize resolution for previewing and have a high resolution for > rendering. But now I have been manually changing vars to only have high > res for renders before exporting. What I'd really love to have is a way to > do single keystrokes for a preview render, a full render and an export > render (as an obj and not an stl). I expect I will have to build my own > from source to achieve this but thought I would ask in case I am missing > something and other solutions are possible. > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org >
DP
Dan Perry
Sun, Aug 4, 2024 7:25 PM

I had a similar issue recently, but the symptom was memory consumption, not
CPU.  The solution was code optimization.  The pre-optimization code was
the union of ten intersections, post-optimization was an intersection of 10
unions.  The common shape to the intersections was a cone, so there were a
lot of edges being created in the intersection command.
Dan

On Sun, Aug 4, 2024 at 5:43 PM Todd Allen via Discuss <
discuss@lists.openscad.org> wrote:

When working with complex high facet models I've turned off automatic
preview and just use rendering because previewing overheats my CPU and
makes it nearly impossible to adjust the viewport as much of the interface
becomes so sluggish it is practically frozen.  I had been taking advantage
of the $preview variable to set the other resolution adjusting vars such as
$fs to minimize resolution for previewing and have a high resolution for
rendering.  But now I have been manually changing vars to only have high
res for renders before exporting.  What I'd really love to have is a way to
do single keystrokes for a preview render, a full render and an export
render (as an obj and not an stl).  I expect I will have to build my own
from source to achieve this but thought I would ask in case I am missing
something and other solutions are possible.


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

I had a similar issue recently, but the symptom was memory consumption, not CPU. The solution was code optimization. The pre-optimization code was the union of ten intersections, post-optimization was an intersection of 10 unions. The common shape to the intersections was a cone, so there were a lot of edges being created in the intersection command. Dan On Sun, Aug 4, 2024 at 5:43 PM Todd Allen via Discuss < discuss@lists.openscad.org> wrote: > When working with complex high facet models I've turned off automatic > preview and just use rendering because previewing overheats my CPU and > makes it nearly impossible to adjust the viewport as much of the interface > becomes so sluggish it is practically frozen. I had been taking advantage > of the $preview variable to set the other resolution adjusting vars such as > $fs to minimize resolution for previewing and have a high resolution for > rendering. But now I have been manually changing vars to only have high > res for renders before exporting. What I'd really love to have is a way to > do single keystrokes for a preview render, a full render and an export > render (as an obj and not an stl). I expect I will have to build my own > from source to achieve this but thought I would ask in case I am missing > something and other solutions are possible. > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org >
TA
Todd Allen
Sun, Aug 4, 2024 8:43 PM

I don't think this is an issue of inefficient code as my models render
fine, typically only a second or two at worst at much higher resolution
then when I preview which brings my system to it's knees and keeps it
stalled out until I clear the viewport or do a render.

On Sun, Aug 4, 2024 at 2:25 PM Dan Perry via Discuss <
discuss@lists.openscad.org> wrote:

I had a similar issue recently, but the symptom was memory consumption,
not CPU.  The solution was code optimization.  The pre-optimization code
was the union of ten intersections, post-optimization was an intersection
of 10 unions.  The common shape to the intersections was a cone, so there
were a lot of edges being created in the intersection command.
Dan

On Sun, Aug 4, 2024 at 5:43 PM Todd Allen via Discuss <
discuss@lists.openscad.org> wrote:

When working with complex high facet models I've turned off automatic
preview and just use rendering because previewing overheats my CPU and
makes it nearly impossible to adjust the viewport as much of the interface
becomes so sluggish it is practically frozen.  I had been taking advantage
of the $preview variable to set the other resolution adjusting vars such as
$fs to minimize resolution for previewing and have a high resolution for
rendering.  But now I have been manually changing vars to only have high
res for renders before exporting.  What I'd really love to have is a way to
do single keystrokes for a preview render, a full render and an export
render (as an obj and not an stl).  I expect I will have to build my own
from source to achieve this but thought I would ask in case I am missing
something and other solutions are possible.


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


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

I don't think this is an issue of inefficient code as my models render fine, typically only a second or two at worst at much higher resolution then when I preview which brings my system to it's knees and keeps it stalled out until I clear the viewport or do a render. On Sun, Aug 4, 2024 at 2:25 PM Dan Perry via Discuss < discuss@lists.openscad.org> wrote: > I had a similar issue recently, but the symptom was memory consumption, > not CPU. The solution was code optimization. The pre-optimization code > was the union of ten intersections, post-optimization was an intersection > of 10 unions. The common shape to the intersections was a cone, so there > were a lot of edges being created in the intersection command. > Dan > > > On Sun, Aug 4, 2024 at 5:43 PM Todd Allen via Discuss < > discuss@lists.openscad.org> wrote: > >> When working with complex high facet models I've turned off automatic >> preview and just use rendering because previewing overheats my CPU and >> makes it nearly impossible to adjust the viewport as much of the interface >> becomes so sluggish it is practically frozen. I had been taking advantage >> of the $preview variable to set the other resolution adjusting vars such as >> $fs to minimize resolution for previewing and have a high resolution for >> rendering. But now I have been manually changing vars to only have high >> res for renders before exporting. What I'd really love to have is a way to >> do single keystrokes for a preview render, a full render and an export >> render (as an obj and not an stl). I expect I will have to build my own >> from source to achieve this but thought I would ask in case I am missing >> something and other solutions are possible. >> _______________________________________________ >> OpenSCAD mailing list >> To unsubscribe send an email to discuss-leave@lists.openscad.org >> > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org >
TA
Todd Allen
Sun, Aug 4, 2024 8:49 PM

I use the render key but the other two are no longer of much use.  If I can
I'll rewrite the <export STL> key to do a render with $export=true which I
can test in script to go higher res and then export an OBJ.

On Sun, Aug 4, 2024 at 11:57 AM nop head via Discuss <
discuss@lists.openscad.org> wrote:

F5, F6 and F7 do preview, render and export but I think F7 is STL only.

On Sun, 4 Aug 2024 at 17:44, Todd Allen via Discuss <
discuss@lists.openscad.org> wrote:

When working with complex high facet models I've turned off automatic
preview and just use rendering because previewing overheats my CPU and
makes it nearly impossible to adjust the viewport as much of the interface
becomes so sluggish it is practically frozen.  I had been taking advantage
of the $preview variable to set the other resolution adjusting vars such as
$fs to minimize resolution for previewing and have a high resolution for
rendering.  But now I have been manually changing vars to only have high
res for renders before exporting.  What I'd really love to have is a way to
do single keystrokes for a preview render, a full render and an export
render (as an obj and not an stl).  I expect I will have to build my own
from source to achieve this but thought I would ask in case I am missing
something and other solutions are possible.


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


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

I use the render key but the other two are no longer of much use. If I can I'll rewrite the <export STL> key to do a render with $export=true which I can test in script to go higher res and then export an OBJ. On Sun, Aug 4, 2024 at 11:57 AM nop head via Discuss < discuss@lists.openscad.org> wrote: > F5, F6 and F7 do preview, render and export but I think F7 is STL only. > > On Sun, 4 Aug 2024 at 17:44, Todd Allen via Discuss < > discuss@lists.openscad.org> wrote: > >> When working with complex high facet models I've turned off automatic >> preview and just use rendering because previewing overheats my CPU and >> makes it nearly impossible to adjust the viewport as much of the interface >> becomes so sluggish it is practically frozen. I had been taking advantage >> of the $preview variable to set the other resolution adjusting vars such as >> $fs to minimize resolution for previewing and have a high resolution for >> rendering. But now I have been manually changing vars to only have high >> res for renders before exporting. What I'd really love to have is a way to >> do single keystrokes for a preview render, a full render and an export >> render (as an obj and not an stl). I expect I will have to build my own >> from source to achieve this but thought I would ask in case I am missing >> something and other solutions are possible. >> _______________________________________________ >> OpenSCAD mailing list >> To unsubscribe send an email to discuss-leave@lists.openscad.org >> > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org >
SP
Sanjeev Prabhakar
Sun, Aug 4, 2024 11:05 PM

Can you share a picture of your model?

On Mon, 5 Aug, 2024, 2:20 am Todd Allen via Discuss, <
discuss@lists.openscad.org> wrote:

I use the render key but the other two are no longer of much use.  If I
can I'll rewrite the <export STL> key to do a render with $export=true
which I can test in script to go higher res and then export an OBJ.

On Sun, Aug 4, 2024 at 11:57 AM nop head via Discuss <
discuss@lists.openscad.org> wrote:

F5, F6 and F7 do preview, render and export but I think F7 is STL only.

On Sun, 4 Aug 2024 at 17:44, Todd Allen via Discuss <
discuss@lists.openscad.org> wrote:

When working with complex high facet models I've turned off automatic
preview and just use rendering because previewing overheats my CPU and
makes it nearly impossible to adjust the viewport as much of the interface
becomes so sluggish it is practically frozen.  I had been taking advantage
of the $preview variable to set the other resolution adjusting vars such as
$fs to minimize resolution for previewing and have a high resolution for
rendering.  But now I have been manually changing vars to only have high
res for renders before exporting.  What I'd really love to have is a way to
do single keystrokes for a preview render, a full render and an export
render (as an obj and not an stl).  I expect I will have to build my own
from source to achieve this but thought I would ask in case I am missing
something and other solutions are possible.


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


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


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

Can you share a picture of your model? On Mon, 5 Aug, 2024, 2:20 am Todd Allen via Discuss, < discuss@lists.openscad.org> wrote: > I use the render key but the other two are no longer of much use. If I > can I'll rewrite the <export STL> key to do a render with $export=true > which I can test in script to go higher res and then export an OBJ. > > On Sun, Aug 4, 2024 at 11:57 AM nop head via Discuss < > discuss@lists.openscad.org> wrote: > >> F5, F6 and F7 do preview, render and export but I think F7 is STL only. >> >> On Sun, 4 Aug 2024 at 17:44, Todd Allen via Discuss < >> discuss@lists.openscad.org> wrote: >> >>> When working with complex high facet models I've turned off automatic >>> preview and just use rendering because previewing overheats my CPU and >>> makes it nearly impossible to adjust the viewport as much of the interface >>> becomes so sluggish it is practically frozen. I had been taking advantage >>> of the $preview variable to set the other resolution adjusting vars such as >>> $fs to minimize resolution for previewing and have a high resolution for >>> rendering. But now I have been manually changing vars to only have high >>> res for renders before exporting. What I'd really love to have is a way to >>> do single keystrokes for a preview render, a full render and an export >>> render (as an obj and not an stl). I expect I will have to build my own >>> from source to achieve this but thought I would ask in case I am missing >>> something and other solutions are possible. >>> _______________________________________________ >>> OpenSCAD mailing list >>> To unsubscribe send an email to discuss-leave@lists.openscad.org >>> >> _______________________________________________ >> OpenSCAD mailing list >> To unsubscribe send an email to discuss-leave@lists.openscad.org >> > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org >
CK
Chun Kit LAM
Mon, Aug 5, 2024 12:06 AM

What is the openscad version, as well as OS and hardware spec? Nightly
version is using a different preview pipeline. And this somehow makes me
wonder if you are using software rendering instead of GPU rendering.

On 5/8/2024 07:05, Sanjeev Prabhakar via Discuss wrote:

Can you share a picture of your model?

On Mon, 5 Aug, 2024, 2:20 am Todd Allen via Discuss,
discuss@lists.openscad.org wrote:

 I use the render key but the other two are no longer of much use. 
 If I can I'll rewrite the <export STL> key to do a render with
 $export=true which I can test in script to go higher res and then
 export an OBJ.

 On Sun, Aug 4, 2024 at 11:57 AM nop head via Discuss
 <discuss@lists.openscad.org> wrote:

     F5, F6 and F7 do preview, render and export but I think F7 is
     STL only.

     On Sun, 4 Aug 2024 at 17:44, Todd Allen via Discuss
     <discuss@lists.openscad.org> wrote:

         When working with complex high facet models I've turned
         off automatic preview and just use rendering because
         previewing overheats my CPU and makes it nearly impossible
         to adjust the viewport as much of the interface becomes
         so sluggish it is practically frozen.  I had been taking
         advantage of the $preview variable to set the other
         resolution adjusting vars such as $fs to minimize
         resolution for previewing and have a high resolution for
         rendering.  But now I have been manually changing vars to
         only have high res for renders before exporting.  What I'd
         really love to have is a way to do single keystrokes for a
         preview render, a full render and an export render (as an
         obj and not an stl).  I expect I will have to build my own
         from source to achieve this but thought I would ask in
         case I am missing something and other solutions are possible.
         _______________________________________________
         OpenSCAD mailing list
         To unsubscribe send an email to
         discuss-leave@lists.openscad.org

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

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

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

What is the openscad version, as well as OS and hardware spec? Nightly version is using a different preview pipeline. And this somehow makes me wonder if you are using software rendering instead of GPU rendering. On 5/8/2024 07:05, Sanjeev Prabhakar via Discuss wrote: > Can you share a picture of your model? > > > On Mon, 5 Aug, 2024, 2:20 am Todd Allen via Discuss, > <discuss@lists.openscad.org> wrote: > > I use the render key but the other two are no longer of much use.  > If I can I'll rewrite the <export STL> key to do a render with > $export=true which I can test in script to go higher res and then > export an OBJ. > > On Sun, Aug 4, 2024 at 11:57 AM nop head via Discuss > <discuss@lists.openscad.org> wrote: > > F5, F6 and F7 do preview, render and export but I think F7 is > STL only. > > On Sun, 4 Aug 2024 at 17:44, Todd Allen via Discuss > <discuss@lists.openscad.org> wrote: > > When working with complex high facet models I've turned > off automatic preview and just use rendering because > previewing overheats my CPU and makes it nearly impossible > to adjust the viewport as much of the interface becomes > so sluggish it is practically frozen.  I had been taking > advantage of the $preview variable to set the other > resolution adjusting vars such as $fs to minimize > resolution for previewing and have a high resolution for > rendering.  But now I have been manually changing vars to > only have high res for renders before exporting.  What I'd > really love to have is a way to do single keystrokes for a > preview render, a full render and an export render (as an > obj and not an stl).  I expect I will have to build my own > from source to achieve this but thought I would ask in > case I am missing something and other solutions are possible. > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to > discuss-leave@lists.openscad.org > > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org > > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org > > > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email todiscuss-leave@lists.openscad.org
TA
Todd Allen
Mon, Aug 5, 2024 2:43 AM

Ryzen 9 6900HX w/ AMD Radeon 680M graphics, 32 GB ram
OS is a fully updated Arch linux virtual machine running under Qubes OS 4.2
with pvh virtualization and seamless integration enabled.
I get the same behavior with both a week old unstable release and the last
stable release 2024.01.06 of OpenSCAD, both are .appimage files.

I think the issue may be a graphics driver as the problem got much worse
after switching from a 1080p monitor to a 2560x1440 monitor.

I have a Windows VM which I rarely use to run Fusion360 which is a much
more graphically demanding app and it runs well.  I should try OpenSCAD
there to help isolate if the problem is with the linux graphics driver.
Curiously though when I render the video is smooth and fairly responsive
under linux and it is only when looking at a preview the system chokes.

Here's a sample script which causes this:

include <BOSL2/std.scad>
include <BOSL2/rounding.scad>

$fn= $preview ? 32 : 256;
eps = 0.002;

module setenv_RodFrame(rod_d=10, wall_t=2.5, corner_size=26, chamfer=0.5,
inner_chamfer, outer_chamfer) {
$rod_d = rod_d;
$wall_t = wall_t;
$corner_size = corner_size;
$inner_chamfer = is_undef(inner_chamfer) ? chamfer : inner_chamfer;
$outer_chamfer = is_undef(outer_chamfer) ? chamfer : outer_chamfer;
$pipe_d = $rod_d+2*$wall_t;
$flange_t = $wall_t;
$flange_fillet = 1.25*$wall_t;
$corner_cut = $rod_d0.5+$wall_t0.8;
children();
}

module leg(h, d, cb, ct) {
joined_shape = rect([h-$flange_fillet0.6,$flange_t]);
union() {
zcyl(h=h, d=d, chamfer1=cb, chamfer2=ct, circum=true);
for(a = [-45,-135]) zrot(a) right($pipe_d
0.5) yrot(90)
down($pipe_d0.5) join_prism(joined_shape,base="cylinder",base_d=$pipe_d,
length=h
0.6, fillet=$flange_fillet, n=24);
}
}

module leg_core(h, d, cb, ct) {
down(eps) zcyl(h=h+10*eps, d=d, chamfer1=cb, chamfer2=ct, circum=true);
}

module corner() {
ang = acos(1/sqrt(3));
h = $corner_size-$corner_cut;
top_half(s=200) up(h1.04) {
difference() {
zrot_copies(n=3) xrot(ang) down(h
0.5+$corner_cut) leg(h,
$pipe_d, $outer_chamfer, $inner_chamfer);
zrot_copies(n=3) xrot(ang) down(h*0.5+$corner_cut) leg_core(h,
$rod_d, -$outer_chamfer,0);
// trim bottom outer edge of flange
// figuring out a formula too hard for now so if parameters
change this will need tweaking, probably make these values enviroment vars
zrot_copies(n=3) fwd(14) down(h) xrot(45)
cuboid([26,3,7],anchor=BACK);
}
}
}

// EXAMPLE invocation
setenv_RodFrame() corner();

On Sun, Aug 4, 2024 at 7:07 PM Chun Kit LAM via Discuss <
discuss@lists.openscad.org> wrote:

What is the openscad version, as well as OS and hardware spec? Nightly
version is using a different preview pipeline. And this somehow makes me
wonder if you are using software rendering instead of GPU rendering.
On 5/8/2024 07:05, Sanjeev Prabhakar via Discuss wrote:

Can you share a picture of your model?

On Mon, 5 Aug, 2024, 2:20 am Todd Allen via Discuss, <
discuss@lists.openscad.org> wrote:

I use the render key but the other two are no longer of much use.  If I
can I'll rewrite the <export STL> key to do a render with $export=true
which I can test in script to go higher res and then export an OBJ.

On Sun, Aug 4, 2024 at 11:57 AM nop head via Discuss <
discuss@lists.openscad.org> wrote:

F5, F6 and F7 do preview, render and export but I think F7 is STL only.

On Sun, 4 Aug 2024 at 17:44, Todd Allen via Discuss <
discuss@lists.openscad.org> wrote:

When working with complex high facet models I've turned off automatic
preview and just use rendering because previewing overheats my CPU and
makes it nearly impossible to adjust the viewport as much of the interface
becomes so sluggish it is practically frozen.  I had been taking advantage
of the $preview variable to set the other resolution adjusting vars such as
$fs to minimize resolution for previewing and have a high resolution for
rendering.  But now I have been manually changing vars to only have high
res for renders before exporting.  What I'd really love to have is a way to
do single keystrokes for a preview render, a full render and an export
render (as an obj and not an stl).  I expect I will have to build my own
from source to achieve this but thought I would ask in case I am missing
something and other solutions are possible.


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


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


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


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


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

Ryzen 9 6900HX w/ AMD Radeon 680M graphics, 32 GB ram OS is a fully updated Arch linux virtual machine running under Qubes OS 4.2 with pvh virtualization and seamless integration enabled. I get the same behavior with both a week old unstable release and the last stable release 2024.01.06 of OpenSCAD, both are .appimage files. I think the issue may be a graphics driver as the problem got much worse after switching from a 1080p monitor to a 2560x1440 monitor. I have a Windows VM which I rarely use to run Fusion360 which is a much more graphically demanding app and it runs well. I should try OpenSCAD there to help isolate if the problem is with the linux graphics driver. Curiously though when I render the video is smooth and fairly responsive under linux and it is only when looking at a preview the system chokes. Here's a sample script which causes this: include <BOSL2/std.scad> include <BOSL2/rounding.scad> $fn= $preview ? 32 : 256; eps = 0.002; module setenv_RodFrame(rod_d=10, wall_t=2.5, corner_size=26, chamfer=0.5, inner_chamfer, outer_chamfer) { $rod_d = rod_d; $wall_t = wall_t; $corner_size = corner_size; $inner_chamfer = is_undef(inner_chamfer) ? chamfer : inner_chamfer; $outer_chamfer = is_undef(outer_chamfer) ? chamfer : outer_chamfer; $pipe_d = $rod_d+2*$wall_t; $flange_t = $wall_t; $flange_fillet = 1.25*$wall_t; $corner_cut = $rod_d*0.5+$wall_t*0.8; children(); } module leg(h, d, cb, ct) { joined_shape = rect([h-$flange_fillet*0.6,$flange_t]); union() { zcyl(h=h, d=d, chamfer1=cb, chamfer2=ct, circum=true); for(a = [-45,-135]) zrot(a) right($pipe_d*0.5) yrot(90) down($pipe_d*0.5) join_prism(joined_shape,base="cylinder",base_d=$pipe_d, length=h*0.6, fillet=$flange_fillet, n=24); } } module leg_core(h, d, cb, ct) { down(eps) zcyl(h=h+10*eps, d=d, chamfer1=cb, chamfer2=ct, circum=true); } module corner() { ang = acos(1/sqrt(3)); h = $corner_size-$corner_cut; top_half(s=200) up(h*1.04) { difference() { zrot_copies(n=3) xrot(ang) down(h*0.5+$corner_cut) leg(h, $pipe_d, $outer_chamfer, $inner_chamfer); zrot_copies(n=3) xrot(ang) down(h*0.5+$corner_cut) leg_core(h, $rod_d, -$outer_chamfer,0); // trim bottom outer edge of flange // figuring out a formula too hard for now so if parameters change this will need tweaking, probably make these values enviroment vars zrot_copies(n=3) fwd(14) down(h) xrot(45) cuboid([26,3,7],anchor=BACK); } } } // EXAMPLE invocation setenv_RodFrame() corner(); On Sun, Aug 4, 2024 at 7:07 PM Chun Kit LAM via Discuss < discuss@lists.openscad.org> wrote: > What is the openscad version, as well as OS and hardware spec? Nightly > version is using a different preview pipeline. And this somehow makes me > wonder if you are using software rendering instead of GPU rendering. > On 5/8/2024 07:05, Sanjeev Prabhakar via Discuss wrote: > > Can you share a picture of your model? > > > On Mon, 5 Aug, 2024, 2:20 am Todd Allen via Discuss, < > discuss@lists.openscad.org> wrote: > >> I use the render key but the other two are no longer of much use. If I >> can I'll rewrite the <export STL> key to do a render with $export=true >> which I can test in script to go higher res and then export an OBJ. >> >> On Sun, Aug 4, 2024 at 11:57 AM nop head via Discuss < >> discuss@lists.openscad.org> wrote: >> >>> F5, F6 and F7 do preview, render and export but I think F7 is STL only. >>> >>> On Sun, 4 Aug 2024 at 17:44, Todd Allen via Discuss < >>> discuss@lists.openscad.org> wrote: >>> >>>> When working with complex high facet models I've turned off automatic >>>> preview and just use rendering because previewing overheats my CPU and >>>> makes it nearly impossible to adjust the viewport as much of the interface >>>> becomes so sluggish it is practically frozen. I had been taking advantage >>>> of the $preview variable to set the other resolution adjusting vars such as >>>> $fs to minimize resolution for previewing and have a high resolution for >>>> rendering. But now I have been manually changing vars to only have high >>>> res for renders before exporting. What I'd really love to have is a way to >>>> do single keystrokes for a preview render, a full render and an export >>>> render (as an obj and not an stl). I expect I will have to build my own >>>> from source to achieve this but thought I would ask in case I am missing >>>> something and other solutions are possible. >>>> _______________________________________________ >>>> OpenSCAD mailing list >>>> To unsubscribe send an email to discuss-leave@lists.openscad.org >>>> >>> _______________________________________________ >>> OpenSCAD mailing list >>> To unsubscribe send an email to discuss-leave@lists.openscad.org >>> >> _______________________________________________ >> OpenSCAD mailing list >> To unsubscribe send an email to discuss-leave@lists.openscad.org >> > > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org > > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org >
CK
Chun Kit LAM
Mon, Aug 5, 2024 3:06 AM

Do you have GPU passthrough for your VM? When running under
virtualization, it may run under software rendering. And I doubt if
Fusion360 is much more graphically demanding, openscad preview render is
kind of like unoptimized ray-tracing (from my understanding) which is
quite heavy even for good GPUs, and it will definitely stress your CPU
when run under software rendering.

On 5/8/2024 10:43, Todd Allen wrote:

Ryzen 9 6900HX w/ AMD Radeon 680M graphics, 32 GB ram
OS is a fully updated Arch linux virtual machine running under Qubes
OS 4.2 with pvh virtualization and seamless integration enabled.
I get the same behavior with both a week old unstable release and the
last stable release 2024.01.06 of OpenSCAD, both are .appimage files.

I think the issue may be a graphics driver as the problem got much
worse after switching from a 1080p monitor to a 2560x1440 monitor.

I have a Windows VM which I rarely use to run Fusion360 which is a
much more graphically demanding app and it runs well.  I should try
OpenSCAD there to help isolate if the problem is with the linux
graphics driver.  Curiously though when I render the video is smooth
and fairly responsive under linux and it is only when looking at a
preview the system chokes.

Here's a sample script which causes this:

include <BOSL2/std.scad>
include <BOSL2/rounding.scad>

$fn= $preview ? 32 : 256;
eps = 0.002;

module setenv_RodFrame(rod_d=10, wall_t=2.5, corner_size=26,
chamfer=0.5, inner_chamfer, outer_chamfer) {
    $rod_d = rod_d;
    $wall_t = wall_t;
    $corner_size = corner_size;
    $inner_chamfer = is_undef(inner_chamfer) ? chamfer : inner_chamfer;
    $outer_chamfer = is_undef(outer_chamfer) ? chamfer : outer_chamfer;
    $pipe_d = $rod_d+2*$wall_t;
    $flange_t = $wall_t;
    $flange_fillet = 1.25*$wall_t;
    $corner_cut = $rod_d0.5+$wall_t0.8;
    children();
}

module leg(h, d, cb, ct) {
    joined_shape = rect([h-$flange_fillet0.6,$flange_t]);
    union() {
        zcyl(h=h, d=d, chamfer1=cb, chamfer2=ct, circum=true);
        for(a = [-45,-135]) zrot(a) right($pipe_d
0.5) yrot(90)
down($pipe_d0.5)
join_prism(joined_shape,base="cylinder",base_d=$pipe_d, length=h
0.6,
fillet=$flange_fillet, n=24);
        }
}

module leg_core(h, d, cb, ct) {
    down(eps) zcyl(h=h+10*eps, d=d, chamfer1=cb, chamfer2=ct,
circum=true);
}

module corner() {
    ang = acos(1/sqrt(3));
    h = $corner_size-$corner_cut;
    top_half(s=200) up(h1.04) {
        difference() {
            zrot_copies(n=3) xrot(ang) down(h
0.5+$corner_cut) leg(h,
$pipe_d, $outer_chamfer, $inner_chamfer);
            zrot_copies(n=3) xrot(ang) down(h*0.5+$corner_cut)
leg_core(h, $rod_d, -$outer_chamfer,0);
            // trim bottom outer edge of flange
            // figuring out a formula too hard for now so if
parameters change this will need tweaking, probably make these values
enviroment vars
            zrot_copies(n=3) fwd(14) down(h) xrot(45)
cuboid([26,3,7],anchor=BACK);
            }
        }
}

// EXAMPLE invocation
setenv_RodFrame() corner();

On Sun, Aug 4, 2024 at 7:07 PM Chun Kit LAM via Discuss
discuss@lists.openscad.org wrote:

 What is the openscad version, as well as OS and hardware spec?
 Nightly version is using a different preview pipeline. And this
 somehow makes me wonder if you are using software rendering
 instead of GPU rendering.

 On 5/8/2024 07:05, Sanjeev Prabhakar via Discuss wrote:
 Can you share a picture of your model?


 On Mon, 5 Aug, 2024, 2:20 am Todd Allen via Discuss,
 <discuss@lists.openscad.org> wrote:

     I use the render key but the other two are no longer of much
     use.  If I can I'll rewrite the <export STL> key to do a
     render with $export=true which I can test in script to go
     higher res and then export an OBJ.

     On Sun, Aug 4, 2024 at 11:57 AM nop head via Discuss
     <discuss@lists.openscad.org> wrote:

         F5, F6 and F7 do preview, render and export but I think
         F7 is STL only.

         On Sun, 4 Aug 2024 at 17:44, Todd Allen via Discuss
         <discuss@lists.openscad.org> wrote:

             When working with complex high facet models I've
             turned off automatic preview and just use rendering
             because previewing overheats my CPU and makes it
             nearly impossible to adjust the viewport as much
             of the interface becomes so sluggish it is
             practically frozen.  I had been taking advantage of
             the $preview variable to set the other resolution
             adjusting vars such as $fs to minimize resolution for
             previewing and have a high resolution for rendering.
             But now I have been manually changing vars to only
             have high res for renders before exporting.  What I'd
             really love to have is a way to do single keystrokes
             for a preview render, a full render and an export
             render (as an obj and not an stl).  I expect I will
             have to build my own from source to achieve this but
             thought I would ask in case I am missing something
             and other solutions are possible.
             _______________________________________________
             OpenSCAD mailing list
             To unsubscribe send an email to
             discuss-leave@lists.openscad.org

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

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


 _______________________________________________
 OpenSCAD mailing list
 To unsubscribe send an email todiscuss-leave@lists.openscad.org
 _______________________________________________
 OpenSCAD mailing list
 To unsubscribe send an email to discuss-leave@lists.openscad.org
Do you have GPU passthrough for your VM? When running under virtualization, it may run under software rendering. And I doubt if Fusion360 is much more graphically demanding, openscad preview render is kind of like unoptimized ray-tracing (from my understanding) which is quite heavy even for good GPUs, and it will definitely stress your CPU when run under software rendering. On 5/8/2024 10:43, Todd Allen wrote: > Ryzen 9 6900HX w/ AMD Radeon 680M graphics, 32 GB ram > OS is a fully updated Arch linux virtual machine running under Qubes > OS 4.2 with pvh virtualization and seamless integration enabled. > I get the same behavior with both a week old unstable release and the > last stable release 2024.01.06 of OpenSCAD, both are .appimage files. > > I think the issue may be a graphics driver as the problem got much > worse after switching from a 1080p monitor to a 2560x1440 monitor. > > I have a Windows VM which I rarely use to run Fusion360 which is a > much more graphically demanding app and it runs well.  I should try > OpenSCAD there to help isolate if the problem is with the linux > graphics driver.  Curiously though when I render the video is smooth > and fairly responsive under linux and it is only when looking at a > preview the system chokes. > > Here's a sample script which causes this: > > include <BOSL2/std.scad> > include <BOSL2/rounding.scad> > > $fn= $preview ? 32 : 256; > eps = 0.002; > > module setenv_RodFrame(rod_d=10, wall_t=2.5, corner_size=26, > chamfer=0.5, inner_chamfer, outer_chamfer) { >     $rod_d = rod_d; >     $wall_t = wall_t; >     $corner_size = corner_size; >     $inner_chamfer = is_undef(inner_chamfer) ? chamfer : inner_chamfer; >     $outer_chamfer = is_undef(outer_chamfer) ? chamfer : outer_chamfer; >     $pipe_d = $rod_d+2*$wall_t; >     $flange_t = $wall_t; >     $flange_fillet = 1.25*$wall_t; >     $corner_cut = $rod_d*0.5+$wall_t*0.8; >     children(); > } > > module leg(h, d, cb, ct) { >     joined_shape = rect([h-$flange_fillet*0.6,$flange_t]); >     union() { >         zcyl(h=h, d=d, chamfer1=cb, chamfer2=ct, circum=true); >         for(a = [-45,-135]) zrot(a) right($pipe_d*0.5) yrot(90) > down($pipe_d*0.5) > join_prism(joined_shape,base="cylinder",base_d=$pipe_d, length=h*0.6, > fillet=$flange_fillet, n=24); >         } > } > > module leg_core(h, d, cb, ct) { >     down(eps) zcyl(h=h+10*eps, d=d, chamfer1=cb, chamfer2=ct, > circum=true); > } > > module corner() { >     ang = acos(1/sqrt(3)); >     h = $corner_size-$corner_cut; >     top_half(s=200) up(h*1.04) { >         difference() { >             zrot_copies(n=3) xrot(ang) down(h*0.5+$corner_cut) leg(h, > $pipe_d, $outer_chamfer, $inner_chamfer); >             zrot_copies(n=3) xrot(ang) down(h*0.5+$corner_cut) > leg_core(h, $rod_d, -$outer_chamfer,0); >             // trim bottom outer edge of flange >             // figuring out a formula too hard for now so if > parameters change this will need tweaking, probably make these values > enviroment vars >             zrot_copies(n=3) fwd(14) down(h) xrot(45) > cuboid([26,3,7],anchor=BACK); >             } >         } > } > > // EXAMPLE invocation > setenv_RodFrame() corner(); > > > On Sun, Aug 4, 2024 at 7:07 PM Chun Kit LAM via Discuss > <discuss@lists.openscad.org> wrote: > > What is the openscad version, as well as OS and hardware spec? > Nightly version is using a different preview pipeline. And this > somehow makes me wonder if you are using software rendering > instead of GPU rendering. > > On 5/8/2024 07:05, Sanjeev Prabhakar via Discuss wrote: >> Can you share a picture of your model? >> >> >> On Mon, 5 Aug, 2024, 2:20 am Todd Allen via Discuss, >> <discuss@lists.openscad.org> wrote: >> >> I use the render key but the other two are no longer of much >> use.  If I can I'll rewrite the <export STL> key to do a >> render with $export=true which I can test in script to go >> higher res and then export an OBJ. >> >> On Sun, Aug 4, 2024 at 11:57 AM nop head via Discuss >> <discuss@lists.openscad.org> wrote: >> >> F5, F6 and F7 do preview, render and export but I think >> F7 is STL only. >> >> On Sun, 4 Aug 2024 at 17:44, Todd Allen via Discuss >> <discuss@lists.openscad.org> wrote: >> >> When working with complex high facet models I've >> turned off automatic preview and just use rendering >> because previewing overheats my CPU and makes it >> nearly impossible to adjust the viewport as much >> of the interface becomes so sluggish it is >> practically frozen.  I had been taking advantage of >> the $preview variable to set the other resolution >> adjusting vars such as $fs to minimize resolution for >> previewing and have a high resolution for rendering. >> But now I have been manually changing vars to only >> have high res for renders before exporting.  What I'd >> really love to have is a way to do single keystrokes >> for a preview render, a full render and an export >> render (as an obj and not an stl).  I expect I will >> have to build my own from source to achieve this but >> thought I would ask in case I am missing something >> and other solutions are possible. >> _______________________________________________ >> OpenSCAD mailing list >> To unsubscribe send an email to >> discuss-leave@lists.openscad.org >> >> _______________________________________________ >> OpenSCAD mailing list >> To unsubscribe send an email to >> discuss-leave@lists.openscad.org >> >> _______________________________________________ >> OpenSCAD mailing list >> To unsubscribe send an email to discuss-leave@lists.openscad.org >> >> >> _______________________________________________ >> OpenSCAD mailing list >> To unsubscribe send an email todiscuss-leave@lists.openscad.org > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org >
TA
Todd Allen
Mon, Aug 5, 2024 3:20 AM

Yes, just checked it is doing software graphics.  It is possible to use GPU
graphics but it looks like I have a few hoops to jump through.  Why is
displaying a preview so much more demanding than displaying a render?
Anyway for now I'll see if I can get by just making previews very coarse
grained.

On Sun, Aug 4, 2024 at 10:06 PM Chun Kit LAM john.lck40@gmail.com wrote:

Do you have GPU passthrough for your VM? When running under
virtualization, it may run under software rendering. And I doubt if
Fusion360 is much more graphically demanding, openscad preview render is
kind of like unoptimized ray-tracing (from my understanding) which is quite
heavy even for good GPUs, and it will definitely stress your CPU when run
under software rendering.
On 5/8/2024 10:43, Todd Allen wrote:

Ryzen 9 6900HX w/ AMD Radeon 680M graphics, 32 GB ram
OS is a fully updated Arch linux virtual machine running under Qubes OS
4.2 with pvh virtualization and seamless integration enabled.
I get the same behavior with both a week old unstable release and the last
stable release 2024.01.06 of OpenSCAD, both are .appimage files.

I think the issue may be a graphics driver as the problem got much worse
after switching from a 1080p monitor to a 2560x1440 monitor.

I have a Windows VM which I rarely use to run Fusion360 which is a much
more graphically demanding app and it runs well.  I should try OpenSCAD
there to help isolate if the problem is with the linux graphics driver.
Curiously though when I render the video is smooth and fairly responsive
under linux and it is only when looking at a preview the system chokes.

Here's a sample script which causes this:

include <BOSL2/std.scad>
include <BOSL2/rounding.scad>

$fn= $preview ? 32 : 256;
eps = 0.002;

module setenv_RodFrame(rod_d=10, wall_t=2.5, corner_size=26, chamfer=0.5,
inner_chamfer, outer_chamfer) {
$rod_d = rod_d;
$wall_t = wall_t;
$corner_size = corner_size;
$inner_chamfer = is_undef(inner_chamfer) ? chamfer : inner_chamfer;
$outer_chamfer = is_undef(outer_chamfer) ? chamfer : outer_chamfer;
$pipe_d = $rod_d+2*$wall_t;
$flange_t = $wall_t;
$flange_fillet = 1.25*$wall_t;
$corner_cut = $rod_d0.5+$wall_t0.8;
children();
}

module leg(h, d, cb, ct) {
joined_shape = rect([h-$flange_fillet0.6,$flange_t]);
union() {
zcyl(h=h, d=d, chamfer1=cb, chamfer2=ct, circum=true);
for(a = [-45,-135]) zrot(a) right($pipe_d
0.5) yrot(90)
down($pipe_d0.5) join_prism(joined_shape,base="cylinder",base_d=$pipe_d,
length=h
0.6, fillet=$flange_fillet, n=24);
}
}

module leg_core(h, d, cb, ct) {
down(eps) zcyl(h=h+10*eps, d=d, chamfer1=cb, chamfer2=ct, circum=true);
}

module corner() {
ang = acos(1/sqrt(3));
h = $corner_size-$corner_cut;
top_half(s=200) up(h1.04) {
difference() {
zrot_copies(n=3) xrot(ang) down(h
0.5+$corner_cut) leg(h,
$pipe_d, $outer_chamfer, $inner_chamfer);
zrot_copies(n=3) xrot(ang) down(h*0.5+$corner_cut) leg_core(h,
$rod_d, -$outer_chamfer,0);
// trim bottom outer edge of flange
// figuring out a formula too hard for now so if parameters
change this will need tweaking, probably make these values enviroment vars
zrot_copies(n=3) fwd(14) down(h) xrot(45)
cuboid([26,3,7],anchor=BACK);
}
}
}

// EXAMPLE invocation
setenv_RodFrame() corner();

On Sun, Aug 4, 2024 at 7:07 PM Chun Kit LAM via Discuss <
discuss@lists.openscad.org> wrote:

What is the openscad version, as well as OS and hardware spec? Nightly
version is using a different preview pipeline. And this somehow makes me
wonder if you are using software rendering instead of GPU rendering.
On 5/8/2024 07:05, Sanjeev Prabhakar via Discuss wrote:

Can you share a picture of your model?

On Mon, 5 Aug, 2024, 2:20 am Todd Allen via Discuss, <
discuss@lists.openscad.org> wrote:

I use the render key but the other two are no longer of much use.  If I
can I'll rewrite the <export STL> key to do a render with $export=true
which I can test in script to go higher res and then export an OBJ.

On Sun, Aug 4, 2024 at 11:57 AM nop head via Discuss <
discuss@lists.openscad.org> wrote:

F5, F6 and F7 do preview, render and export but I think F7 is STL only.

On Sun, 4 Aug 2024 at 17:44, Todd Allen via Discuss <
discuss@lists.openscad.org> wrote:

When working with complex high facet models I've turned off automatic
preview and just use rendering because previewing overheats my CPU and
makes it nearly impossible to adjust the viewport as much of the interface
becomes so sluggish it is practically frozen.  I had been taking advantage
of the $preview variable to set the other resolution adjusting vars such as
$fs to minimize resolution for previewing and have a high resolution for
rendering.  But now I have been manually changing vars to only have high
res for renders before exporting.  What I'd really love to have is a way to
do single keystrokes for a preview render, a full render and an export
render (as an obj and not an stl).  I expect I will have to build my own
from source to achieve this but thought I would ask in case I am missing
something and other solutions are possible.


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


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


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


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


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

Yes, just checked it is doing software graphics. It is possible to use GPU graphics but it looks like I have a few hoops to jump through. Why is displaying a preview so much more demanding than displaying a render? Anyway for now I'll see if I can get by just making previews very coarse grained. On Sun, Aug 4, 2024 at 10:06 PM Chun Kit LAM <john.lck40@gmail.com> wrote: > Do you have GPU passthrough for your VM? When running under > virtualization, it may run under software rendering. And I doubt if > Fusion360 is much more graphically demanding, openscad preview render is > kind of like unoptimized ray-tracing (from my understanding) which is quite > heavy even for good GPUs, and it will definitely stress your CPU when run > under software rendering. > On 5/8/2024 10:43, Todd Allen wrote: > > Ryzen 9 6900HX w/ AMD Radeon 680M graphics, 32 GB ram > OS is a fully updated Arch linux virtual machine running under Qubes OS > 4.2 with pvh virtualization and seamless integration enabled. > I get the same behavior with both a week old unstable release and the last > stable release 2024.01.06 of OpenSCAD, both are .appimage files. > > I think the issue may be a graphics driver as the problem got much worse > after switching from a 1080p monitor to a 2560x1440 monitor. > > I have a Windows VM which I rarely use to run Fusion360 which is a much > more graphically demanding app and it runs well. I should try OpenSCAD > there to help isolate if the problem is with the linux graphics driver. > Curiously though when I render the video is smooth and fairly responsive > under linux and it is only when looking at a preview the system chokes. > > Here's a sample script which causes this: > > include <BOSL2/std.scad> > include <BOSL2/rounding.scad> > > $fn= $preview ? 32 : 256; > eps = 0.002; > > module setenv_RodFrame(rod_d=10, wall_t=2.5, corner_size=26, chamfer=0.5, > inner_chamfer, outer_chamfer) { > $rod_d = rod_d; > $wall_t = wall_t; > $corner_size = corner_size; > $inner_chamfer = is_undef(inner_chamfer) ? chamfer : inner_chamfer; > $outer_chamfer = is_undef(outer_chamfer) ? chamfer : outer_chamfer; > $pipe_d = $rod_d+2*$wall_t; > $flange_t = $wall_t; > $flange_fillet = 1.25*$wall_t; > $corner_cut = $rod_d*0.5+$wall_t*0.8; > children(); > } > > module leg(h, d, cb, ct) { > joined_shape = rect([h-$flange_fillet*0.6,$flange_t]); > union() { > zcyl(h=h, d=d, chamfer1=cb, chamfer2=ct, circum=true); > for(a = [-45,-135]) zrot(a) right($pipe_d*0.5) yrot(90) > down($pipe_d*0.5) join_prism(joined_shape,base="cylinder",base_d=$pipe_d, > length=h*0.6, fillet=$flange_fillet, n=24); > } > } > > module leg_core(h, d, cb, ct) { > down(eps) zcyl(h=h+10*eps, d=d, chamfer1=cb, chamfer2=ct, circum=true); > } > > module corner() { > ang = acos(1/sqrt(3)); > h = $corner_size-$corner_cut; > top_half(s=200) up(h*1.04) { > difference() { > zrot_copies(n=3) xrot(ang) down(h*0.5+$corner_cut) leg(h, > $pipe_d, $outer_chamfer, $inner_chamfer); > zrot_copies(n=3) xrot(ang) down(h*0.5+$corner_cut) leg_core(h, > $rod_d, -$outer_chamfer,0); > // trim bottom outer edge of flange > // figuring out a formula too hard for now so if parameters > change this will need tweaking, probably make these values enviroment vars > zrot_copies(n=3) fwd(14) down(h) xrot(45) > cuboid([26,3,7],anchor=BACK); > } > } > } > > // EXAMPLE invocation > setenv_RodFrame() corner(); > > > On Sun, Aug 4, 2024 at 7:07 PM Chun Kit LAM via Discuss < > discuss@lists.openscad.org> wrote: > >> What is the openscad version, as well as OS and hardware spec? Nightly >> version is using a different preview pipeline. And this somehow makes me >> wonder if you are using software rendering instead of GPU rendering. >> On 5/8/2024 07:05, Sanjeev Prabhakar via Discuss wrote: >> >> Can you share a picture of your model? >> >> >> On Mon, 5 Aug, 2024, 2:20 am Todd Allen via Discuss, < >> discuss@lists.openscad.org> wrote: >> >>> I use the render key but the other two are no longer of much use. If I >>> can I'll rewrite the <export STL> key to do a render with $export=true >>> which I can test in script to go higher res and then export an OBJ. >>> >>> On Sun, Aug 4, 2024 at 11:57 AM nop head via Discuss < >>> discuss@lists.openscad.org> wrote: >>> >>>> F5, F6 and F7 do preview, render and export but I think F7 is STL only. >>>> >>>> On Sun, 4 Aug 2024 at 17:44, Todd Allen via Discuss < >>>> discuss@lists.openscad.org> wrote: >>>> >>>>> When working with complex high facet models I've turned off automatic >>>>> preview and just use rendering because previewing overheats my CPU and >>>>> makes it nearly impossible to adjust the viewport as much of the interface >>>>> becomes so sluggish it is practically frozen. I had been taking advantage >>>>> of the $preview variable to set the other resolution adjusting vars such as >>>>> $fs to minimize resolution for previewing and have a high resolution for >>>>> rendering. But now I have been manually changing vars to only have high >>>>> res for renders before exporting. What I'd really love to have is a way to >>>>> do single keystrokes for a preview render, a full render and an export >>>>> render (as an obj and not an stl). I expect I will have to build my own >>>>> from source to achieve this but thought I would ask in case I am missing >>>>> something and other solutions are possible. >>>>> _______________________________________________ >>>>> OpenSCAD mailing list >>>>> To unsubscribe send an email to discuss-leave@lists.openscad.org >>>>> >>>> _______________________________________________ >>>> OpenSCAD mailing list >>>> To unsubscribe send an email to discuss-leave@lists.openscad.org >>>> >>> _______________________________________________ >>> OpenSCAD mailing list >>> To unsubscribe send an email to discuss-leave@lists.openscad.org >>> >> >> _______________________________________________ >> OpenSCAD mailing list >> To unsubscribe send an email to discuss-leave@lists.openscad.org >> >> _______________________________________________ >> OpenSCAD mailing list >> To unsubscribe send an email to discuss-leave@lists.openscad.org >> >