POV-Ray : Newsgroups : povray.general : Crashing for reasons I can't fathom : Re: Crashing for reasons I can't fathom Server Time
18 Apr 2025 11:17:35 EDT (-0400)
  Re: Crashing for reasons I can't fathom  
From: Paul Bourke
Date: 16 Mar 2025 20:40:00
Message: <web.67d76f05e3a63a81c386dcd2784a083c@news.povray.org>
yesbird <sya### [at] gmailcom> wrote:
> On 16/03/2025 04:27, yesbird wrote:
> > This is what I got with theradius = 0.1 and no crash.
> > --
> > YB
>

> rendering complete animation and this is the first 11 seconds

> forward-backward loop:
> https://povlab.yesbird.online/pb/
>

> --YB

I also reverted to polygons, to get away from all the suggestions around discs,
media, interiors, etc. Seems to be OK in 3.7 and 3.8, although 3.8 is MUCH
faster, factor about 3 or 4.

#macro DoPoint(theposition,thecolour)
   #local thenormal = vnormalize(VP-theposition);
   #local thedistance = vlength(VP-theposition);
   #local theright = vcross(thenormal,z);
   #local theup = vcross(theright,thenormal);
   #local theright = vcross(thenormal,theup);
   #if (thedistance > 1.0)    // Filter any points close to the camera
      #if (thedistance < 30)  // Filter any distant outliers
         #local theradius = 0.01*(1+thedistance); // Diameter of closest points
         #if (theradius > 0.3)                    // Diameter of most distant
            #local theradius = 0.3;
         #end
         polygon {
            5, theright, theup, -theright, -theup, theright
            no_shadow
            texture {
               pigment {
                  onion
                  colour_map {
                     [0.00, rgb thecolour transmit 0.75]
                     [0.50, rgb thecolour transmit 0.95]
                     [0.95, rgb thecolour transmit 1]
                     [1.00, rgb <0,0,0> transmit 1]
                  }
               }
              finish { emission 0 ambient 0 diffuse 1 specular 0 }
            }
            scale theradius
            translate theposition
         }
      #end
   #end
#end


Post a reply to this message

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