|
|
|
|
|
|
| |
| |
|
|
From: Greg M Johnson
Subject: Re: Just a little rythmic doodle ( 916 kbbu )
Date: 23 Feb 2003 14:07:47
Message: <3e591c03$1@news.povray.org>
|
|
|
| |
| |
|
|
Wild, mon.
Post a reply to this message
|
|
| |
| |
|
|
From: Florian Brucker
Subject: Re: Just a little rythmic doodle ( 916 kbbu )
Date: 23 Feb 2003 14:37:57
Message: <3e592315$1@news.povray.org>
|
|
|
| |
| |
|
|
i love it!
5 hours? it would have taken me ages to create something like this.
keep up the good work
florian
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Very cool. How is it done?
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Skip Talbot wrote:
> Very cool. How is it done?
Thanks! :)
Well, for each "hair" there is an array of points. Each hair will
attempt to become straight. This is done by making each point go towards
the line defined by the two previous points in the array. Furthermore,
each point is forced to be a specific distance from the previous point
in the array. That's all really. I didn't even bother to implement
things like inertia, and certainly not collision detection.
This is the core of the code:
#declare H = 0;
#while (H<Hairs)
#declare S = 2;
#while (S<Segments)
#declare Goal = (2*A[H][S-1]-A[H][S-2]);
#declare A[H][S] = A[H][S]*(1-Stiffness)+Goal*Stiffness;
#declare A[H][S] =
A[H][S-1]+vnormalize(A[H][S]-A[H][S-1])*SegmentLength;
#declare S = S+1;
#end
#declare H = H+1;
#end
Each hair is then moved around by controlling the locations of the first
and second point in the array.
Oh, and then I made some rhythmic-like functions to control the movement
and the colors etc. :) (Not really functions, just #declared variables
dependent on the frame_number variable.)
Rune
--
3D images and anims, include files, tutorials and more:
rune|vision: http://runevision.com (updated Oct 19)
POV-Ray Ring: http://webring.povray.co.uk
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
The Matrix squiddy dancing around....
Post a reply to this message
|
|
| |
| |
|
|
From: Christoph Hormann
Subject: Re: Just a little rythmic doodle ( 916 kbbu )
Date: 24 Feb 2003 08:23:56
Message: <3E5A1CEB.1E01B823@gmx.de>
|
|
|
| |
| |
|
|
Rune wrote:
>
> I'm not sure what this is or what it's called, and I know that similar
> things have been done before (anybody can dig out the relevant posts
> from this group so I can have a look?), but one of my friends was of the
> opinion that it is not entirely trivial to code a thing like this, so I
> had to try. ;D This animation took me about 5 hours to create
> including coding, tweaking, rendering, and compiling.
Looks good, especially for such a simple algorithm. I think the way you
implemented it prevents collisions quite well by itself in this case, it
probably much depends on the length of the tentacles and the kind of
movement if this works. It would be interesting to see it with some more
complicated movement, for example the combination of tiny high frequency
with large scale low frequency movement.
> This animation *must* be viewed in fullscreen in a dark room! And
> remember to turn on the speakers.
I tried full screen but the file could be higher resolution for that. BTW
does anyone know how i can prevent mplayer to turn off the zoom when
looping back to the beginning?
Christoph
--
POV-Ray tutorials, include files, Sim-POV,
HCR-Edit and more: http://www.tu-bs.de/~y0013390/
Last updated 31 Dec. 2002 _____./\/^>_*_<^\/\.______
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Very nice. But the flashes don't match the beat. You'll need to move the
audio -80 milisecs circa, I just tried in VirtualDub. :o)
Regards,
Hugo
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
This is so totally cool... I've been thinking about doing something that
dances to the beat for ages. (Of course, since I don't have a recording of a
beat yet......)
Love it man, love it!
Thanks.
Andrew.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |