POV-Ray : Newsgroups : povray.unofficial.patches : init_spline bug : init_spline bug Server Time
2 Sep 2024 08:16:50 EDT (-0400)
  init_spline bug  
From: Greg M  Johnson
Date: 7 Apr 2000 19:57:17
Message: <38ee75dd@news.povray.org>
Run the following code with   Final_Frame=25  .

Watch the debug codes that come out.  The variable lshinx will come up
with a value that is not even in the range of the spline!!

-------------
#version unofficial MegaPov 0.4;
#include "colors.inc"
camera{
        location <10,5,-55>
        look_at <10,5,0>
        angle 45
        }
background {Gray35}
plane {y,-16       pigment {ForestGreen}      }
light_source {<12, 3, -51.8056> color White}

#init_spline {"Lshinx",
<0.00, -15>,
<0.25, -125>,
<0.45, -110>,
<0.50, -10>,
<0.75, -25>,
<1.00, -15>
}

#declare Cmultclock=clock*2;
#declare modclock=mod(Cmultclock,1);
//#declare modclock=0.59;
#declare lshinx=eval_spline ("Lshinx",modclock);
#debug "\n modclock "
#debug str(modclock,2,2)
#debug "\n lshinx "
#debug str(lshinx,2,2)
#debug "\n"


Post a reply to this message

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