POV-Ray : Newsgroups : povray.general : Debugging Splines Server Time
4 Aug 2024 10:16:09 EDT (-0400)
  Debugging Splines (Message 1 to 4 of 4)  
From: mcavoys
Subject: Debugging Splines
Date: 11 Jun 2003 07:33:54
Message: <3ee711f0.272076505@news.povray.org>
I am using splines to position a camera and got an unexpected result. How can I
output the value of the spline (at a clock value) to #debug. 

#declare Cam_Pos =
    spline {
      quadratic_spline
        0.00,	<0.894,	-1.569,	2.334>
        0.25,	<2.939,	-0.06,	2.035>
        0.75,	<2.939,	-0.06,	2.035>
        1.00,	<3.061,	-1.763,	2.335>   
    }

Regards
        Stephen


Post a reply to this message

From: Christopher James Huff
Subject: Re: Debugging Splines
Date: 11 Jun 2003 08:00:08
Message: <cjameshuff-798FA9.06514311062003@netplex.aussie.org>
In article <3ee711f0.272076505@news.povray.org>,
 mca### [at] aolcom (S McAvoy) wrote:

> I am using splines to position a camera and got an unexpected result. How can 
> I output the value of the spline (at a clock value) to #debug. 
> 
> #declare Cam_Pos =
>     spline {
>       quadratic_spline
>         0.00,	<0.894,	-1.569,	2.334>
>         0.25,	<2.939,	-0.06,	2.035>
>         0.75,	<2.939,	-0.06,	2.035>
>         1.00,	<3.061,	-1.763,	2.335>   
>     }

#debug VStr(Cam_Pos(clock))

-- 
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tagpovrayorg
http://tag.povray.org/


Post a reply to this message

From: Christopher James Huff
Subject: Re: Debugging Splines
Date: 11 Jun 2003 08:05:53
Message: <cjameshuff-1835AB.06572911062003@netplex.aussie.org>
In article <cja### [at] netplexaussieorg>,
 Christopher James Huff <cja### [at] earthlinknet> wrote:

> #debug VStr(Cam_Pos(clock))

Forgot something: you have to #include "strings.inc" first. Or you could 
use the built-in str() function and do what VStr() does, but it's more 
work.

-- 
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tagpovrayorg
http://tag.povray.org/


Post a reply to this message

From: mcavoys
Subject: Re: Debugging Splines
Date: 11 Jun 2003 10:25:24
Message: <3ee73bbc.282776220@news.povray.org>
On Wed, 11 Jun 2003 06:57:29 -0500, Christopher James Huff
<cja### [at] earthlinknet> wrote:


>> #debug VStr(Cam_Pos(clock))
>
>Forgot something: you have to #include "strings.inc" first. Or you could 
>use the built-in str() function and do what VStr() does, but it's more 
>work.
>
Thanks Christopher,
That looks just the thing.

Regards
        Stephen


Post a reply to this message

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