Archive: Two Dimensional Tentacles


28th April 2003 02:16 UTC

Two Dimensional Tentacles
I made preset of a 2D version of the 3D tentacles .ape! Well, sort of.

UnConeD, if you're out there, what do you think? :)


28th April 2003 02:33 UTC

That's a nice effect, but it needs something more - it is kinda repetitive.


28th April 2003 04:29 UTC

You don't really need the invert there. It might make a nice background, but I can't really see a presed based on that.


28th April 2003 12:55 UTC

UnConeD made a preset based on 3D tentacles, and he got showered with praise for it!(Of course he's got a reputaion as "the codemaster":p ) Oh well, I like it.

But I will change the DM coding to make it less repetitive; thanks making me realize that Anubis :)


28th April 2003 20:06 UTC

umm...this isn't a tentacles effect. the graphics are right, but the motion isn't.


29th April 2003 00:30 UTC

umm...this isn't a tentacles effect
I kind of agree with Atero. And this preset might look better with some colour.
This preset is Decent but could be a lot better.

30th April 2003 13:12 UTC

ReSubmmision
Resubmission


30th April 2003 14:15 UTC

well. i think its very clever.
after looking at it, i was expect a much bigger dm code. But you have used a very nice method.
Some of the movement is too speedy and erratic, especially in the newer version.
Atero is right though, technikly (nghey), its not a 'tentacle' affect.
For a REAL tentacle affeect, you need to make the reaction time of each arm segment relative to its distance from the center, (d).


2nd May 2003 12:03 UTC

I like it, but for the first time, Atero's right. No affence Atero:)


2nd May 2003 12:54 UTC

Any ideas on how to get the reaction time right? I'm not sure how....


2nd May 2003 15:29 UTC

You mean like this?

It calculates the 1th-4th derivatives at the current point and plugs them into a Taylor polynomial to get a good approximation of the tentacles' history of movement (as if you would use an array).


2nd May 2003 16:38 UTC

nice work ucd, and a cool idea pixelcraft. ended up being a nice colaboration i think :)


2nd May 2003 17:44 UTC

There's a small error in the 2nd DM per point code. The polynomial contains d3 two times. The last one has to be d4.

For music responsiveness I've updated the 2nd DM. This code guarantees continuity until the 4th derivative, which prevents the tentacles from jumping around at the ends.

init:


elastic=1


per-frame:

sa=sa*.8+getspec(0,0.1,0)+.01;
st1=st1*.8+sa*.2;st2=st2*.8+st1*.2;st3=st3*.8+st2*.2;
ra=ra+(sin(t)+cos(t*.1)*(sin(t*.714)+.1)+sin(t*3.17)*.3)*st3*.1+(rt4-ra)*.2;
rt1=rt1*.8+rtg*.2;rt2=rt2*.8+rt1*.2;rt3=rt3*.8+rt2*.2;rt4=rt4*.8+rt3*.2;

d1=da*(1-elastic)+(ra-lra)*elastic;
d2=d2*(1-elastic)+(d1-ld1)*elastic;
d3=d3*(1-elastic)+(d2-ld2)*elastic;
d4=d4*(1-elastic)+(d3-ld3)*elastic;

lra=ra;ld1=d1;ld2=d2;ld3=d3;t=t-.05;


onbeat:

rtg=ra+(rand(200)*.01-1)*6*getspec(0,0,0)


per point:

dp=d*10;
r=r-d1*dp+d2*sqr(dp)*.5-d3*sqr(dp)*dp*.166+d4*sqr(sqr(dp))*.04166+ra;

3rd May 2003 16:25 UTC

Wow, a remix by UnConeD, I feel so honored:D

That is really good! I've never seen 'elastic' used as a variable before:igor:


4th May 2003 05:46 UTC

Originally posted by Pixelcraft
I've never seen 'elastic' used as a variable before:igor:
...does it matter?

and yes, that is a very good tweak...i've been trying to get rid of those awful corner repititions with no luck, any suggestions?

oh, and couldn't you randomize that dm or make it respond to something? :p