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 16:48:49 EDT (-0400)
  Re: Crashing for reasons I can't fathom  
From: Paul Bourke
Date: 15 Mar 2025 19:00:00
Message: <web.67d6045fe3a63a81c386dcd2784a083c@news.povray.org>
kurtz le pirate <kur### [at] freefr> wrote:
> On 15/03/2025 11:14, Paul Bourke wrote:
> > "Paul Bourke" <pau### [at] gmailcom> wrote:
> >> Any ideas why this scene
> >>     https://paulbourke.net/transient/povray/
> >> crashes once "theradius" gets past a certain value, eg: 0.6. There are no
> >> coincident points, running version 3.7 on MacOS. Tonnes of RAM (192GB) and only
> >> a fraction is used.
> >> And more importantly, how to fix or get around it?
> >
> > Also happens for beta 3.8, but at different values of "the radius".
> >
>
> IMHO, this comes from using the <disk> object.
>
> Have you tried using the <cylinder> object instead ?

I just tried it, didn't make any difference, still crashes, in fact crashes more
reliably now. Here's the new DoPoint macro.

#macro DoPoint(theposition,thecolour)
   #local thenormal = vnormalize(VP-theposition);
   #local thedistance = vlength(VP-theposition);
   #if (thedistance > 0.2)    // Filter any points close to the camera
      #if (thedistance < 30)  // Filter any distant outliers
         #local theradius = 0.05;
         cylinder {
            <0,0,0>, thenormal/100, 0.95
            //hollow
            texture {
               pigment {
                  onion
                  colour_map {
                     [0.00, rgb thecolour transmit 0]
                     [0.20, rgb thecolour transmit 0.95]
                     [1.00, rgb thecolour transmit 1]
                  }
               }
               finish { emission 0 ambient 1 diffuse 0 specular 0 }
            }
            scale theradius
            translate theposition
         }
      #end
   #end
#end


Post a reply to this message

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