POV-Ray : Newsgroups : povray.bugreports : #switch...#end bug with 3.7 RC5 : #switch...#end bug with 3.7 RC5 Server Time
29 Apr 2024 18:43:29 EDT (-0400)
  #switch...#end bug with 3.7 RC5  
From: Jörg 'Yadgar' Bleimann
Date: 17 Mar 2012 11:27:35
Message: <4f64ad67@news.povray.org>
High!

Version 3.7 RC5 apparently is not yet able to handle animation loops 
properly: when I tried to render this script

   background
   {
     #switch (clock)
       #range (0, 24)
         color rgb 0
       #break
       #range (25, 99)
         color rgb (clock-25)*<0, 1/75, 1/75>
       #break
       #range (100, 299)
         color rgb <0, 1, 1>
       #break
     #end
   }
   camera {
     location <0, 2, -3>
     look_at  <0, 1,  2>
   }
   sphere
   {
     #switch (clock)
       #range (0, 99)
         <0, 1, 2>, 0
       #break
       #range (100, 199)
         <0, 1, 2>, (clock-100)*0.02
       #break
       #range (200, 299)
         <0, 1, 2>, 2
       #break
     #end
     texture 			// line 32
     {
       pigment { color <1, 1, 0> }
     }
   }
   light_source
   {
     <2, 4, -3>
     #switch (clock)
       #range (0, 199)
         color rgb 0
       #break
       #range (200, 299)
         color rgb (clock-200)*0.01
       #break
       #range (300, 399)
         color rgb 1
       #break
     #end

   }

with +ki0 +kf299 +kfi0 +kff 299, PoV-Ray prompted an error message on 
line 32: parse error: Expected 'numeric expression', texture found instead

The same scene runs flawlessly under 3.6!

See you in Khyberspace!

Yadgar


Post a reply to this message

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