POV-Ray : Newsgroups : povray.general : spline.inc Server Time
15 Nov 2024 15:19:36 EST (-0500)
  spline.inc (Message 1 to 5 of 5)  
From: Chris Field
Subject: spline.inc
Date: 15 Jan 1999 07:32:45
Message: <369f356d.0@news.povray.org>
im using spline.inc (from chris colefax's website) to create smooth motion
paths....however, i cant seem to create more than one spline per scene.
is it meant to work this way?

i can rotate and move the one spline, but i need several different
splines...even using two spline files and including spline.inc after each
one creates only one spline.

any help would be greatly appreciated.


Post a reply to this message

From: Ken
Subject: Re: spline.inc
Date: 15 Jan 1999 18:25:37
Message: <369FCDF2.47D607EE@pacbell.net>
Chris Field wrote:

> im using spline.inc (from chris colefax's website) to create smooth motion
> paths....however, i cant seem to create more than one spline per scene.
> is it meant to work this way?
>
> i can rotate and move the one spline, but i need several different
> splines...even using two spline files and including spline.inc after each
> one creates only one spline.
>
> any help would be greatly appreciated.

 Can you provide a general example of how you are using it.
If we can see the code it is easier to trouble shoot the problem
for you. Don't include the whole scene you are working on just
the relevant parts.

--
Ken Tyler

tyl### [at] pacbellnet


Post a reply to this message

From: Chris Field
Subject: Re: spline.inc
Date: 16 Jan 1999 05:59:06
Message: <36a070fa.0@news.povray.org>
now i know i can get the same effect as using these two splines by using one
and rotating it, but this gives an idea of what i'm talking about.
i certainly hope i've made no stupid mistakes...

heres the code -

--------spline-test.pov---------
camera {location <0, 70, -30> look_at <0, 0, -30> }
#declare spline_smoothness = 300
#declare spline_file = "left.spl" #include "ShowSpl.inc"
#declare spline_file = "right.spl" #include "ShowSpl.inc"

-------left.spl----------
#declare spline_segments = 1
#declare spline_loop = false

#declare point0 = <-100,   0,  -60>
#declare point1 = <-40,   0,  -60>
#declare point2 = <0,   0, 2>
#declare point3 = <0,   0, 10>
#include "Spline.inc"

------right.spl---------

#declare spline_segments = 1
#declare spline_loop = false

#declare point0 = <100,   0,  -60>
#declare point1 = <40,   0,  -60>
#declare point2 = <0,   0, 2>
#declare point3 = <0,   0, 10>
#include "Spline.inc"


Post a reply to this message

From: Ken
Subject: Re: spline.inc
Date: 16 Jan 1999 18:06:36
Message: <36A11AF6.D2EEE1A6@pacbell.net>
Chris Field wrote:

> now i know i can get the same effect as using these two splines by using one
> and rotating it, but this gives an idea of what i'm talking about.
> i certainly hope i've made no stupid mistakes...
>
> heres the code -
>
> --------spline-test.pov---------
> camera {location <0, 70, -30> look_at <0, 0, -30> }
> #declare spline_smoothness = 300
> #declare spline_file = "left.spl" #include "ShowSpl.inc"
> #declare spline_file = "right.spl" #include "ShowSpl.inc"
>
> -------left.spl----------
> #declare spline_segments = 1
> #declare spline_loop = false
>
> #declare point0 = <-100,   0,  -60>
> #declare point1 = <-40,   0,  -60>
> #declare point2 = <0,   0, 2>
> #declare point3 = <0,   0, 10>
> #include "Spline.inc"
>
> ------right.spl---------
>
> #declare spline_segments = 1
> #declare spline_loop = false
>
> #declare point0 = <100,   0,  -60>
> #declare point1 = <40,   0,  -60>
> #declare point2 = <0,   0, 2>
> #declare point3 = <0,   0, 10>
> #include "Spline.inc"

Hmm ! Sorry  I can't see the problem and would hate to start
guessing. Maybe an email to Mr. Colefax can clear this up for
you. I have found him very helpful in the past and he will answer
private emails when he finds the time. It might take a few days
but he will respond.

--
Ken Tyler

tyl### [at] pacbellnet


Post a reply to this message

From: Thomas Willhalm
Subject: Re: spline.inc
Date: 20 Jan 1999 08:06:16
Message: <qqmzp7e5c1l.fsf@goldach.fmi.uni-konstanz.de>
"Chris Field" <fun### [at] hotmailcom> writes:

> now i know i can get the same effect as using these two splines by using one
> and rotating it, but this gives an idea of what i'm talking about.
> i certainly hope i've made no stupid mistakes...
> 
> heres the code -
> 
> --------spline-test.pov---------
> camera {location <0, 70, -30> look_at <0, 0, -30> }
> #declare spline_smoothness = 300
> #declare spline_file = "left.spl" #include "ShowSpl.inc"
> #declare spline_file = "right.spl" #include "ShowSpl.inc"
> 
[ splines snipped ]

It it possible to use several splines at a time. We used up to 65 splines
in a project last year. We did however not use "ShowSpl.inc". The way we
used the splines was:

  #declare spline_clock = value1
  #include "node00.spl"
  #declare node00 = spline_pos

  #declare spline_clock = value2
  #include "node01.spl"
  #declare node01 = spline_pos


I hope this helps.

Thomas


-- 
http://www.fmi.uni-konstanz.de/~willhalm


Post a reply to this message

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