POV-Ray : Newsgroups : povray.general : output file saving : Re: output file saving Server Time
26 Apr 2024 08:20:21 EDT (-0400)
  Re: output file saving  
From: GioSeregni
Date: 2 Mar 2020 08:10:01
Message: <web.5e5d049e7018a2442c923fbd0@news.povray.org>
Many Thanks to all for the help.
I understand, and I also hope I no longer have the crash problem.
To check the backward compatibility of my Pov parser from CAD, that I update
continuously, I had taken some old dwgs to render.
I was surprised because I had big problems with drawings quietly rendered with
other previous versions of PovRay.
In another thread, casually, I also found the reason. The boolean "difference".
Many years ago I built my leaf (which uses every tree of mine), using the
difference. Now, if it is repeated, it is terrible.
I rewrote the leaf code in another polygonal way, I gave up the edges softened
by two curves, but the difference of time and memory is amazing.
A tree with the new version (detailed but without Boolean operator) takes 1/4 of
the time.
And memory does not continually increase. With the old version of the leaf,
exactly (sigh) at the end of the rendering, crashes often occurred

OLD VERSION

            difference{
              polygon {5 <.04,0,0><0,0,.06><-.04,0,0><0,0,-.06><.04,0,0>}
              sphere  {<0.04,0,0>, .065 inverse}
              sphere  {<-0.04,0,0>, .065 inverse}
              translate <0,Rad,0>   }
              rotate <rand(R1)*360,rand(R2)*360,rand(R3)*360>
              scale <rand (R1),rand(R2),rand(R3)>}

NEW VERSION (4 time faster)


object{polygon{13<-.013,0,-.037><-.0217,0,-.02><-.025,0,0><-.0217,0,.02><-.013,0,.037><0,0,.051>

<.013,0,.037><.0217,0,.02><.025,0,0><.0217,0,-.02><.013,0,-.037><0,0,-.051><-.013,0,-.037>
            translate <0,Rad,0> }
            rotate <rand(R1)*360,rand(R2)*360,rand(R3)*360>
            scale <rand (R1),rand(R2),rand(R3)>}


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.