Archive: Creating a 3 Looped SSC Curve


12th September 2004 19:31 UTC

Creating a 3 Looped SSC Curve
So there is the circle that is basicly one loop.
x=cos(i*2*$PI);
y=sin(i*2*$PI)

Then there is the figure eight which is two.
x=cos(i*2*$PI);
y=sin(i*4*$PI)

Does anyone know how to make the curve that is 3 loops that are each identical and each equidistant from the origin? The shape I am thinking of looks similar to the Mercedes Benz logo, but instead of three radiating lines, there are three radiating loops. It is often seen in Celtic artwork.

I'd like to use this as the path for a particle, but just can't seem to figure it out.

Thanks for any help.

EDIT --
Ok, I figured it out while using the restroom. Funny how that tends to happen. If you add aspect correction, each loop is then identical to the others.

3 Loops:
d=sin(i*6*$PI);
x=cos(i*2*$PI)*d;
y=sin(i*2*$PI)*d

4 Loops:
d=cos(i*4*$pi);
x=cos(i*2*$PI)*d;
y=sin(i*2*$PI)*d

Perhaps someone else will find these simple curves of use.


12th September 2004 21:51 UTC

Here is a fun example applying this motion to a tentacle. Newbies (or anyone else for that matter), feel free to use this code and the accompanying texer image to create simple dancing tentacles. Just add color and beat response and you'll have a groovy little preset that runs at high fps.


13th September 2004 17:25 UTC

Preset > New
Render > SuperScope
Load Example > Rotating Bow Thing


13th September 2004 17:55 UTC

Originally posted by WarriorO/TLight
Preset > New
Render > SuperScope
Load Example > Rotating Bow Thing
:p Thanks.

I'm still sort of pleased I was able to figure it out, but the code in the built-in ssc example definitely makes it easier to change the number of loops. Last night I noticed a similar bow thing in UnconeD's Tokyo Bullet preset. His bows don't crisscross at the origin point though so there is a nice space at the center of them. I think I'll try to figure out how to do that today.