|
![](/i/fill.gif) |
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
|
![](/i/fill.gif) |