POV-Ray : Newsgroups : povray.animations : Spline Woes Server Time
24 Nov 2024 02:36:31 EST (-0500)
  Spline Woes (Message 1 to 9 of 9)  
From: How Camp
Subject: Spline Woes
Date: 11 Dec 2002 21:44:48
Message: <3df7f820@news.povray.org>
Okay, I admit I'm not so hot with splines.  I'm trying to make a path for my
camera.  I'm using Chris Colefax's Clock includes, which are fabulous.
However, I'd like to use a spline to determine my camera's path.

I have a list of vectors where I'd like my camera to be at certain times.
However, the camera needs to linger in some positions longer than others.
So, I've been typing in spline values all evening long, and not really
getting what I want.

Er, so the question is:  What methods are there for creating a nice camera
path via splines?  I've tried some spline editors, but I can't seem to find
one that allows me to gracefully enter my specific coordinates, and then
output an array of data in some for (text file, even to the screen,
whatever).

Any advice from the pros?

- How


Post a reply to this message

From: Andrew Cocker
Subject: Re: Spline Woes
Date: 12 Dec 2002 05:30:04
Message: <3df8652c$1@news.povray.org>
If you create your camera path spline, then use AutoClck.mcr to Declare YourClock,
simply to
govern timing along the spline ie:

#declare YourSpline=0;
Declare_From (YourSpline,0)
Declare_To_Using (YourSpline,0.2,0.4,"S")
.....etc

then move the camera using translate Cam_Spline (YourSpline)

This is untested, but should work.

All the best,

Andy Cocker

"How Camp" <kro### [at] hotmailcom> wrote in message news:3df7f820@news.povray.org...
> Okay, I admit I'm not so hot with splines.  I'm trying to make a path for my
> camera.  I'm using Chris Colefax's Clock includes, which are fabulous.
> However, I'd like to use a spline to determine my camera's path.
>
> I have a list of vectors where I'd like my camera to be at certain times.
> However, the camera needs to linger in some positions longer than others.
> So, I've been typing in spline values all evening long, and not really
> getting what I want.
>
> Er, so the question is:  What methods are there for creating a nice camera
> path via splines?  I've tried some spline editors, but I can't seem to find
> one that allows me to gracefully enter my specific coordinates, and then
> output an array of data in some for (text file, even to the screen,
> whatever).
>
> Any advice from the pros?
>
> - How
>
>
>


Post a reply to this message

From: How Camp
Subject: Re: Spline Woes
Date: 12 Dec 2002 13:49:32
Message: <3df8da3c@news.povray.org>
"Andrew Cocker" <mai### [at] andrewcockercouk> wrote in message
news:3df8652c$1@news.povray.org...
> If you create your camera path spline, then use AutoClck.mcr to Declare
YourClock, simply to
> govern timing along the spline ie:
>
> #declare YourSpline=0;
> Declare_From (YourSpline,0)
> Declare_To_Using (YourSpline,0.2,0.4,"S")
> .....etc
>
> then move the camera using translate Cam_Spline (YourSpline)
>

Ah, bonk!  It would appear I was making things much more difficult than they
really needed to be.  I deftly took the elegance of the autoclock macro and
squashed it into something unwieldy.

Thanks, Andy, for the help.

- How


Post a reply to this message

From: Apache
Subject: Re: Spline Woes
Date: 13 Dec 2002 18:05:12
Message: <3dfa67a8$1@news.povray.org>
What about NURBS?


Post a reply to this message

From: Fidel viegas
Subject: Re: Spline Woes
Date: 16 Dec 2002 12:22:51
Message: <BA23BB06.813A%fidel.viegas@artrecognition.co.uk>
in article 3dfa67a8$1@news.povray.org, Apache at apacheserver2000@yahoo.com
wrote on 13/12/02 11:39 pm:

> What about NURBS?
> 

I think someone has written a macro that translates NURBS into bicubic
patches. I am not quite sure. Can anyone confirm this.

All the best

Fidel.


Post a reply to this message

From: How Camp
Subject: Re: Spline Woes
Date: 19 Dec 2002 08:14:26
Message: <3e01c632$1@news.povray.org>
"Fidel viegas" <fid### [at] artrecognitioncouk> wrote in message
news:BA23BB06.813A%fid### [at] artrecognitioncouk...
> in article 3dfa67a8$1@news.povray.org, Apache at
apa### [at] yahoocom
> wrote on 13/12/02 11:39 pm:
>
> > What about NURBS?
> >
>
> I think someone has written a macro that translates NURBS into bicubic
> patches. I am not quite sure. Can anyone confirm this.

Yes, I'd be interested in seeing this as well.

- How


Post a reply to this message

From: Wheredragon
Subject: Re: Spline Woes
Date: 31 Mar 2003 21:27:10
Message: <3e88f8fe@news.povray.org>
The way I delt with camera and splines was first using a program where I
made a path using splines that show the paths (Truespace 4 I have, but
Truespace 3 is freeware now).

But actually, the simplest way I seen to slow the camera down is between the
points where the camera is to be slow is simply increasing the gap between
those two points.

Say I have my cubic spline points like this:
<0,0,0>
<-1, 0, 1>
<1, 1, 0>
<2,2,1>
<3,3,2>
<4,4,2>
my points are 10 frames apart, and I want the frames 2,2,1 and 3,3,2 to be
twice as slow... This is how it would look:
#declare Movement=spline{
  cubic_spline
  -10, <0,0,0>
  0,<-1, 0, 1>
  10,<1, 1, 0>
  20,<2,2,1>
  40,<3,3,2>
  50,<4,4,2>
}

And have the clock from 0 to 40.  What will happen is that the rendering
will move at a certain rate UNTIL somewhere between 20 and 40, where it will
be the slowest at 30.

Wheredragon
"How Camp" <kro### [at] hotmailcom> wrote in message
news:3e01c632$1@news.povray.org...
>
> "Fidel viegas" <fid### [at] artrecognitioncouk> wrote in message
> news:BA23BB06.813A%fid### [at] artrecognitioncouk...
> > in article 3dfa67a8$1@news.povray.org, Apache at
> apa### [at] yahoocom
> > wrote on 13/12/02 11:39 pm:
> >
> > > What about NURBS?
> > >
> >
> > I think someone has written a macro that translates NURBS into bicubic
> > patches. I am not quite sure. Can anyone confirm this.
>
> Yes, I'd be interested in seeing this as well.
>
> - How
>
>


Post a reply to this message

From: Gwen & Emory Stagmer
Subject: Re: Spline Woes
Date: 31 Mar 2003 23:03:30
Message: <3E890E82.F9E8E61A@comcast.net>
How,
   Sorry I didn't see this until tonight.
I've got a Hermite curve program that outputs '.INC' files specifically for
POV which I use for both objects and cameras.  Input is a simple text file.
Hermite curves are basically a curve specified by directed vectors.
They're piecewise smooth, so the curves are tangent to the vectors going
both into and away from each control point.  It's the way I envision cameras...

http://www.geocities.com/emory_stagmer/povherm

Freeware, and example POV code on the website.

Emory


How Camp wrote:
> 
> "Fidel viegas" <fid### [at] artrecognitioncouk> wrote in message
> news:BA23BB06.813A%fid### [at] artrecognitioncouk...
> > in article 3dfa67a8$1@news.povray.org, Apache at
> apa### [at] yahoocom
> > wrote on 13/12/02 11:39 pm:
> >
> > > What about NURBS?
> > >
> >
> > I think someone has written a macro that translates NURBS into bicubic
> > patches. I am not quite sure. Can anyone confirm this.
> 
> Yes, I'd be interested in seeing this as well.
> 
> - How


Post a reply to this message

From: Dennis Miller
Subject: Re: Spline Woes
Date: 27 Apr 2004 18:58:32
Message: <408ee598$1@news.povray.org>
So with Winhermcurve:
I have created an error
#declare fred = array[200] {xxx

but how do I apply that? With a spline, it would be
sphere { ...
translate fred}

How does it work in your software?
Thanks.
Dennis

"Gwen & Emory Stagmer" <emo### [at] comcastnet> wrote in message
news:3E890E82.F9E8E61A@comcast.net...
>
> How,
>    Sorry I didn't see this until tonight.
> I've got a Hermite curve program that outputs '.INC' files specifically
for
> POV which I use for both objects and cameras.  Input is a simple text
file.
> Hermite curves are basically a curve specified by directed vectors.
> They're piecewise smooth, so the curves are tangent to the vectors going
> both into and away from each control point.  It's the way I envision
cameras...
>
> http://www.geocities.com/emory_stagmer/povherm
>
> Freeware, and example POV code on the website.
>
> Emory
>
>
> How Camp wrote:
> >
> > "Fidel viegas" <fid### [at] artrecognitioncouk> wrote in message
> > news:BA23BB06.813A%fid### [at] artrecognitioncouk...
> > > in article 3dfa67a8$1@news.povray.org, Apache at
> > apa### [at] yahoocom
> > > wrote on 13/12/02 11:39 pm:
> > >
> > > > What about NURBS?
> > > >
> > >
> > > I think someone has written a macro that translates NURBS into bicubic
> > > patches. I am not quite sure. Can anyone confirm this.
> >
> > Yes, I'd be interested in seeing this as well.
> >
> > - How


Post a reply to this message

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