POV-Ray : Newsgroups : povray.beta-test : Segmentation Fault : Segmentation Fault Server Time
30 Jun 2024 17:42:40 EDT (-0400)
  Segmentation Fault  
From: Anthony D  Baye
Date: 10 Sep 2010 21:00:01
Message: <web.4c8ad42decb2972fd7f39bd00@news.povray.org>
When running the following code with:

povray +a0.03 +kff240

#include "colors.inc"
#include "metals.inc"
#include "stones.inc"
#include "math.inc"

light_source { <10, 50, -30> rgb 1 }
camera {
     location <0.0, 6.0, -15.0>
     up y
     right x*(image_width/image_height)
     look_at 0.0
     }

#default {
     pigment { White }
     finish { ambient 0.1 diffuse 0.6 }
     }

difference {
     plane { y, 0 }
     sphere { 0.0, 5.0 }
          pigment { White*0.625 }
          finish { ambient 0 diffuse 0.4 }
     }

difference {
     intersection {
          torus { 5.0, 0.75 }
          cylinder { -0.5*y, 0.5*y, 6.0 }
          }
     sphere { 0.0, 4.9375 }
     }

#declare Frame_Rate = 24;
#declare Duration = 10;
#declare Frame_Count = Frame_Rate * Duration;
#macro index(seconds)
#local tick = (1 / Frame_Count) * Frame_Rate;

seconds*tick

#end

union {
     union {
          difference {
               cylinder { -0.375*y, 0.375*y, 4.875 }
               cylinder { -0.4375*y, 0.4375*y, 4.625 }
               }
          difference {
               cylinder { -0.375*y, 0.375*y, 4.5 }
               cylinder { -0.4375*y, 0.4375*y, 4.25 }
               }
          }
     difference {
          cylinder { -0.375*y, 0.375*y, 4.125 }
          cylinder { -0.4375*y, 0.4375*y, 3.875 }
          #if(clock <= index(5))
               rotate (3600*pow((clock-index(0)),2)/index(5))*x
          #else
               rotate (3600*(clock-index(5))/index(10))*x
          #end
          }
     }

A.D.B.


Post a reply to this message

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