POV-Ray : Newsgroups : povray.unofficial.patches : init_spline bug Server Time
2 Sep 2024 06:18:53 EDT (-0400)
  init_spline bug (Message 1 to 2 of 2)  
From: Greg M  Johnson
Subject: init_spline bug
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

From: Greg M  Johnson
Subject: Re: init_spline bug
Date: 12 Apr 2000 11:10:20
Message: <38F490D6.2CAA9ED0@my-dejanews.com>
See my new understanding of the concept in my entry at p.b.i  on 4/11/00.

Greg M. Johnson wrote:

> 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.