Archive: make 4 ssc to one


18th February 2006 21:17 UTC

make 4 ssc to one
i created a heart, using 4 ssc(see the attached presets..the one is in motion, the other not), is it possible to create this in one?


18th February 2006 22:12 UTC

Impossible


ok maybe not. Try reading the programming guide


18th February 2006 22:29 UTC

thanx, good work... seems not to be impossible... and thanx for the description in the code


18th February 2006 22:55 UTC

w00t! You're genius PAK-9. But, how if there is 8 SSCs?:igor:


19th February 2006 01:52 UTC

The principle is extensible to n ssc's

Its a technique that is worth learning. Look at the preset 'Beanies' for example (Winamp Forums Compilation 1 or PAK-9 AVS 5) each of those jumping bean things is a single superscope, which is convenient because it means you can just duplicate them until you have the desired number.


19th February 2006 02:20 UTC

Yes, I got it. You make it clear.


19th February 2006 09:18 UTC

and now you can see, how it looks, after i translated the heart into 3D and made any backgroundfx


19th February 2006 09:30 UTC

Looking good.. :)


14th March 2006 19:11 UTC

i have tried to use the code for another ssc, but maybe i didn't really have understand the functions..

inside the zip is the preset with more ssc and the bugged version with one...
the code(wihtout face and breast):

init:
n=800;adjust=0.0099009900990099;

frame:
t=t-0.05;
index=0;

point:

part=
above(index,99)+
above(index,199)+
above(index,299)+
above(index,399)+
above(index,499)+
above(index,599)+
above(index,699)+; //what part of the heart are we drawing?;

fakei=(index%100)*adjust; //substitute this for where you have used i

r=fakei*2*$pi;
//Bein1;
x1=if(equal(part,0),fakei*0.2,x1);
y1=if(equal(part,0),fakei*0.6,y1);
//Bein2;
x1=if(equal(part,1),-fakei*0.2,x1);
y1=if(equal(part,1),fakei*0.6,y1);
//Torso;
x1=if(equal(part,2),0,x1);
y1=if(equal(part,2),-fakei*0.25,y1);
//Hals;
x1=if(equal(part,3),0,x1);
y1=if(equal(part,3),fakei*0.05-0.25,y1);
//Arm1;
x1=if(equal(part,4),fakei*0.3,x1);
y1=if(equal(part,4),fakei*0.2-0.25,y1);
//Arm2;
x1=if(equal(part,5),-fakei*0.3,x1);
y1=if(equal(part,5),fakei*0.2-0.25,y1);
//Kopf;
x1=if(equal(part,6),cos(r)*0.05,x1);
y1=if(equal(part,6),sin(r)*0.1-0.4,y1);

x=x1;
y=y1;


index=index+1;

//skip this line because it is jumping from one place to another
skip=equal(index,101);
What's wrong with it?

as next, i want to try to move the "body", for example started by the hip, and the rest will move with it...

14th March 2006 20:05 UTC

First thing I notice is this line:

above(index,699)+;
You've got an extra plus there that'll cause an error.

Under the "Settings" menu, there's a "Debug Window" you can activate, that'll gives you, among other things, an option that lists these kinds of errors when they happen. I've found it quite useful at times.

Also, the final "skip=" line is incorrect, because it will only skip once, between the first and second segments. If all of your segments start where the previous segment ends, you don't even need this line. Otherwise, I recommend something like this:
skip=bnot(fakei)
This sets "skip" to 1 whenever fakei is 0, preventing the line from being drawn whenever the SSC jumps to the next segment.

14th March 2006 21:36 UTC

thanx for this help... i must look the debug window^^