POV-Ray : Newsgroups : povray.advanced-users : :O I broke it. : :O I broke it. Server Time
6 May 2024 05:21:28 EDT (-0400)
  :O I broke it.  
From: Bald Eagle
Date: 12 Aug 2016 20:45:04
Message: <web.57ae6ce5800fc25b5e7df57c0@news.povray.org>
Render Options
  Quality:  9
  Bounding boxes.......On   Bounding threshold: 3
  Antialiasing.........Off
Internal limit exceeded in FixedSimpleVector
Fatal error in renderer: A POV-Ray internal nesting limit was reached.
Render failed


What did I DO???

##########################################################################

#version 3.7;

global_settings {assumed_gamma 1.0}

#include "colors.inc"
#include "textures.inc"

camera {
 location <5, 1, -20>
 look_at  <5, 1, 0>
}


light_source {<20, 50, -100> White shadowless}
light_source {<0, 5, -1> White shadowless}

#declare R = 2;

//###############################################################
#declare r = 0.1;
#declare Step = 0.4 / (2*pi/0.1)*(pi/0.2);
#declare Sphere2 =
union {
#for (Theta, 0, 2*pi, 0.1)
    #for (Phi, 0, pi, 0.2)      // this gets cycles twice, because Theta goes to
2*pi

    #declare X = R * sin (Theta) * cos (Phi);
    #declare Y = R * sin (Theta) * sin (Phi);
    #declare Z = R * cos (Theta);

    sphere {<X, Y, Z>, r pigment {Red*abs(sin(Theta/2))} }
    #declare r = r + Step;
    #end // end for Phi
#end // end for Theta

cylinder {<0, 0, 0>, <R*1.5, 0, 0>, 0.075 pigment {Red}}
cylinder {<0, 0, 0>, <0, R*1.5, 0>, 0.075 pigment {Green}}
cylinder {<0, 0, 0>, <0, 0, R*1.5>, 0.075 pigment {Blue}}

}
//###############################################################

object {Sphere2 translate x*10}


Post a reply to this message

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