POV-Ray : Newsgroups : povray.binaries.animations : Spline equation fun Server Time
18 Jul 2024 16:19:18 EDT (-0400)
  Spline equation fun (Message 1 to 4 of 4)  
From: Hughes, B 
Subject: Spline equation fun
Date: 10 Mar 2004 16:19:39
Message: <404f866b@news.povray.org>
Hi all. LTNP! (long time, no post)

This was what happened while I had been trying to create the symbol for
infinity by using an equation within a spline. Not much to look at when
still images are rendered but it works for animation rather well, I thought.

infiniteloops.mpg is actually a few animations joined together showing
spline
paths that have a reflective sphere following the path around once each.
loopy.mpg is a single path changing with the clock variable. They looked
like fun to watch, hence the reason for posting here of course.

The equations aren't too much, as you can see, simply sine cosine pi stuff:

#declare InfinityPath=
spline {
 cubic_spline
 #local i=-0.05;
 #while (i<=1.05)
  i, <sin(i*5*pi)*2.5,cos(i*5*pi)*2.5,0>*abs(sin(i*clock*10*pi))
 // i, <cos(i*2*pi)*4,sin(i*4*pi)*2,sin(i*2*pi)*1> // infinity-like symbol
 #local i=i+0.05;
 #end
}

then a small sphere with translate InfinityPath(clock) to follow the path,
and:

union {
#local I=-0.03;
#while (I<=1.03)
sphere {0, 0.1 // tiny path-plotting sphere
 translate InfinityPath(I)
}
#local I=I+0.01;
#end
}

for the path itself. Sorry if it seems crudely done.  :-)

-- 
Bob H.
http://www.3digitaleyes.com


Post a reply to this message


Attachments:
Download 'infiniteloops.mpg' (267 KB)

From: Hughes, B 
Subject: Re: Spline equation fun - loopy.mpg
Date: 10 Mar 2004 16:23:15
Message: <404f8743@news.povray.org>
And now for the second mpeg.


Post a reply to this message


Attachments:
Download 'loopy.mpg' (487 KB)

From: Tom Galvin
Subject: Re: Spline equation fun - loopy.mpg
Date: 10 Mar 2004 21:51:24
Message: <Xns94A8DE52C6C4Dtomatimporg@203.29.75.35>
"Hughes, B." <omn### [at] charternet> wrote in news:404f8743
@news.povray.org:

> And now for the second mpeg.
> 
> 

I like it.

Maybe  drop the checkered floor for either empty space, or a pure white 
"wonkavision" look.  That way the math comes to the foreground.  Maybe add 
a camera dolly along a diagonal.

my 2 cents
-- 
Tom
_________________________________
The Internet Movie Project
http://www.imp.org/


Post a reply to this message

From: Hughes, B 
Subject: Re: Spline equation fun - entwined [Mpeg1, ~370K]
Date: 10 Mar 2004 23:48:55
Message: <404fefb7@news.povray.org>
"Tom Galvin" <tom### [at] imporg> wrote in message
news:Xns94A8DE52C6C4Dtomatimporg@203.29.75.35...
>
> Maybe  drop the checkered floor for either empty space, or a pure white
> "wonkavision" look.  That way the math comes to the foreground.  Maybe add
> a camera dolly along a diagonal.

Thanks Tom. I think you're right about using a blank background instead of
that ugly checkered floor, at least without any reflective sphere being
present. Might be good with the black to white gradient z I'm trying now. I
knew what you meant about Wonk-A-Vision, having seen the movie once again
recently, although I'm not sure if you were saying it might work well to
move the camera for a more sideways view as the animation progresses.
There's enough chaos that a sideways view doesn't look like much, doesn't
have any z extents to this, except for the infinity symbol part.

Attached is another one with the background empty, only 2D again. I'm going
in the direction of trying for some kind of fractal-like plotting, without
really knowing what I'm doing.

Bob H.


Post a reply to this message


Attachments:
Download 'ENTWINED.MPG' (274 KB)

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