Archive: Flock SSC


2nd June 2003 09:55 UTC

Flock SSC
Teehee...took me all day but I finally got this (mostly) perfect. Except it seems to like to hug the edges for some reason, and I can't figure out why. Any ideas? NO i'm not going to go into detail of the code because it's 12:42 am and i'm tired as FUCK...you'll have to figure it out on your own. And I don't have a zip util on this comp :tear, tear: so you'll have to paste ALL FOUR SECTIONS OF CODE BY YOURSELF (omfg)

init:

n=6;pit=acos(-1)/3;mx1=mx1+rand(100)/2000-0.025;my1=my1+rand(100)/2000-0.025;mh1=mh1+rand(100)/500-0.1;mx2=mx2+rand(100)/2000-0.025;my2=my2+rand(100)/2000-0.025;mh2=mh2+rand(100)/500-0.1;mx3=mx3+rand(100)/2000-0.025;my3=my3+rand(100)/2000-0.025;mh3=mh3+rand(100)/500-0.1;mx4=mx4+rand(100)/2000-0.025;my4=my4+rand(100)/2000-0.025;mh4=mh4+rand(100)/500-0.1;mx5=mx5+rand(100)/2000-0.025;my5=my5+rand(100)/2000-0.025;mh5=mh5+rand(100)/500-0.1;mx6=mx6+rand(100)/2000-0.025;my6=my6+rand(100)/2000-0.025;mh6=mh6+rand(100)/500-0.1;

beat:
mx1=mx1+rand(100)/2000-0.025;my1=my1+rand(100)/2000-0.025;mh1=mh1+rand(100)/500-0.1;mx2=mx2+rand(100)/2000-0.025;my2=my2+rand(100)/2000-0.025;mh2=mh2+rand(100)/500-0.1;mx3=mx3+rand(100)/2000-0.025;my3=my3+rand(100)/2000-0.025;mh3=mh3+rand(100)/500-0.1;mx4=mx4+rand(100)/2000-0.025;my4=my4+rand(100)/2000-0.025;mh4=mh4+rand(100)/500-0.1;mx5=mx5+rand(100)/2000-0.025;my5=my5+rand(100)/2000-0.025;mh5=mh5+rand(100)/500-0.1;mx6=mx6+rand(100)/2000-0.025;my6=my6+rand(100)/2000-0.025;mh6=mh6+rand(100)/500-0.1;

frame:
xp1=xp1+mx1;yp1=yp1+my1;hp1=hp1+mh1;xp2=xp2+mx2;yp2=yp2+my2;hp2=hp2+mh2;xp3=xp3+mx3;yp3=yp3+my3;hp3=hp3+mh3;xp4=xp4+mx4;yp4=yp4+my4;hp4=hp4+mh4;xp5=xp5+mx5;yp5=yp5+my5;hp5=hp5+mh5;xp6=xp6+mx6;yp6=yp6+my6;hp6=hp6+mh6;mx1=if(above(abs(xp1),1),-mx1,mx1);xp1=min(abs(xp1),1)*sign(xp1);my1=if(above(abs(xp1),1),-my1,my1);yp1=min(abs(yp1),1)*sign(yp1);mx1=mx1*0.98+(xp2+xp3+xp4+xp5+xp6-xp1*5)*0.005;my1=my1*0.98+(yp2+yp3+yp4+yp5+yp6-yp1*5)*0.005;mh1=mh1*0.98+(hp2+hp3+hp4+hp5+hp6-hp1*5)*0.005;mx2=if(above(abs(xp2),1),-mx2,mx2);xp2=min(abs(xp2),1)*sign(xp2);my2=if(above(abs(xp2),1),-my2,my2);yp2=min(abs(yp2),1)*sign(yp2);mx2=mx2*0.98+(xp1+xp3+xp4+xp5+xp6-xp2*5)*0.005;my2=my2*0.98+(yp1+yp3+yp4+yp5+yp6-yp2*5)*0.005;mh2=mh2*0.98+(hp1+hp3+hp4+hp5+hp6-hp2*5)*0.005;mx3=if(above(abs(xp3),1),-mx3,mx3);xp3=min(abs(xp3),1)*sign(xp3);my3=if(above(abs(xp3),1),-my3,my3);yp3=min(abs(yp3),1)*sign(yp3);mx3=mx3*0.98+(xp1+xp2+xp4+xp5+xp6-xp3*5)*0.005;my3=my3*0.98+(yp1+yp2+yp4+yp5+yp6-yp3*5)*0.005;mh3=mh3*0.98+(hp1+hp2+hp4+hp5+hp6-hp3*5)*0.005;mx4=if(above(abs(xp4),1),-mx4,mx4);xp4=min(abs(xp4),1)*sign(xp4);my4=if(above(abs(xp4),1),-my4,my4);yp4=min(abs(yp4),1)*sign(yp4);mx4=mx4*0.98+(xp1+xp2+xp3+xp5+xp6-xp4*5)*0.005;my4=my4*0.98+(yp1+yp2+yp3+yp5+yp6-yp4*5)*0.005;mh4=mh4*0.98+(hp1+hp2+hp3+hp5+hp6-hp4*5)*0.005;mx5=if(above(abs(xp5),1),-mx5,mx5);xp5=min(abs(xp5),1)*sign(xp5);my5=if(above(abs(xp5),1),-my5,my5);yp2=min(abs(yp5),1)*sign(yp5);mx5=mx5*0.98+(xp1+xp2+xp3+xp4+xp6-xp5*5)*0.005;my5=my5*0.98+(yp1+yp2+yp3+yp4+yp6-yp5*5)*0.005;mh5=mh5*0.98+(hp1+hp2+hp3+hp4+hp6-hp5*5)*0.005;mx6=if(above(abs(xp6),1),-mx6,mx6);xp6=min(abs(xp6),1)*sign(xp6);my6=if(above(abs(xp6),1),-my6,my6);yp6=min(abs(yp6),1)*sign(yp6);mx6=mx6*0.98+(xp1+xp2+xp3+xp4+xp5-xp6*5)*0.005;my6=my6*0.98+(yp1+yp2+yp3+yp4+yp5-yp6*5)*0.005;mh6=mh6*0.98+(hp1+hp2+hp3+hp4+hp5-hp6*5)*0.005;p=0;

pixel:
p=p+1;
x=xp1*equal(p,1)+xp2*equal(p,2)+xp3*equal(p,3)+xp4*equal(p,4)+xp5*equal(p,5)+xp6*equal(p,6);
y=yp1*equal(p,1)+yp2*equal(p,2)+yp3*equal(p,3)+yp4*equal(p,4)+yp5*equal(p,5)+yp6*equal(p,6);
col=hp1*equal(p,1)+hp2*equal(p,2)+hp3*equal(p,3)+hp4*equal(p,4)+hp5*equal(p,5)+hp6*equal(p,6);
red=abs(sin(col));green=abs(sin(col+pit));blue=abs(sin(col-pit));
<edit> DEAR LORD THAT'S A WIDE PAGE!!! :igor:

2nd June 2003 10:11 UTC

wow, its so hard getting to this comment box +)..

nice work atero..
pretty crazy shit.

btw, finding the 'post' button is even harder


2nd June 2003 13:22 UTC

You do know that you can't bitch anyone anymore about "attaching the file" after this? (and the other screw up with angel wings)

I don't understand what the hell that is suppose to be, so i'll just say: "pretty fucking bizarre!"


2nd June 2003 15:06 UTC

I understand what it is, but that line length :igor:


2nd June 2003 17:32 UTC

Atero, try &#91;font=courier&#93;&#91;/font&#93; for big chunks like that please :P.


2nd June 2003 20:09 UTC

Tuggummi: Fuck off - I didn't have a zip utility on the comp I was on and I've searched many times for a good one and I've never found one.

UnConeD: Fuck off. If you don't do PHP it's damned impossible to copy/paste everything because HTML doesn't do word wrapping and so you get a shit ton of carriage returns (duh...)

Siddhartha: Just fuck off.

Shreyas: Preemptive fuck off.

Zevensoft: Fuck on.

Finally got this fuckoff over to my good comp...if a mod wants to fuck off that PHP fuckoffosity they can fuckoff do fuckoff so fuck fuck fuck fuckoooooffffffff.

:igor:

fuckoffs


3rd June 2003 09:50 UTC

atero is making friends as always.

pooor poor shreyas :'(

:(:(:(:(


3rd June 2003 19:47 UTC

:igor: :confused: :eek: ;) :D :) :weird:


3rd June 2003 22:38 UTC

really nice :) i like the colors and the smooth look it has.

this is kinda stupid, but i'll say it anyway: i was trying to do something with that texer pic (kinda bored), and i applied it to the standard starfield and it looked really cool, i think... maybe it'd look even cooler with a better starfield (you know with 3d rotation and stuff), just an idea.


4th June 2003 00:48 UTC

Err Atero, your code had spaces in it. Any browser will wordwrap text (well, unless it's nested inside an element that is wide already, like this table) that is NOT contained inside a &#60;pre&#62;&#60;/pre&#62; tag, so you wouldn't have had any problems. IE is even less strict and will word wrap at various other non-space symbols too. Other than having no color coding, which is a minor loss IMO, there wouldn't be a difference except that this thread would not be as wide as your ego. And instead of trying to fix the problem, you just edit your post and add a "woo, wide thread!". That's inviting.

And why the heck are you bitching at Sid and Tug? They both commented on your scope, which means they went to the trouble of copy/pasting it into a preset, yet you get mad because they made a minor note about the thread width, i.e. bad posting netiquette.

Just because you're a regular doesn't mean the rules don't apply to you.

"Pot to kettle, pot to kettle. You are black. Repeat. You are black. Over."


4th June 2003 02:37 UTC

Atero, if you didn't feel like getting the zip utility, then couldn't you have just uploaded it somewhere else(i.e. DeviantArt) and just posted the link???


4th June 2003 03:35 UTC

there wouldn't be a difference except that this thread would not be as wide as your ego
I laugh my ass of.

Sorry all, but i actually told atero to post it here after he tried to post it in an irc chat. (though i didnt realise he wouldnt be zipping it.)

4th June 2003 07:03 UTC

Now the preset makes a lot more sense! Because i didn't know that i had to multiply the scope and use texer and a texer bitmap i didn't have to make it look like it should... :rolleyes:

I actually like it now, i like it a lot :)


4th June 2003 07:39 UTC

Originally posted by anubis2003
Atero, if you didn't feel like getting the zip utility, then couldn't you have just uploaded it somewhere else(i.e. DeviantArt) and just posted the link???
man...i feel like a complete dumbass now >_<

unconed: umm...OH YEAH... ;) but phpbb word wraps automatically with <br> tags, if i remember correctly from my hypercube post...

and for the love of god, someone delete the original [php] stuff :p

4th June 2003 08:06 UTC

If a thread is really wide, why not use carraige returns in your
long ass replies :P?


4th June 2003 09:52 UTC

This is very kind of you, Atero...:mad:


4th June 2003 16:41 UTC

i was just joking, c'mon...

and if i added carriage returns you couldn't copy/paste it, which was my original intent...

rova, gonzo, rocker, someone delete/lock this thread. all i wanted was opinions on this scope and i never got any


4th June 2003 20:57 UTC

Actually, you DID get opinions. Perhaps not the ones you wanted to hear, but several people said something about your flocking scope.

I won't, because you were such an ass about it.


4th June 2003 21:11 UTC

great to hear that, steven. go fuck a tree.


5th June 2003 09:49 UTC

Just paste the entire thing in the quick reply text box without the carriage returns. If you paste the entire frame part in the ssc, there's no problem.
I have to search for the submit button now!
I too was joking, Atero :)
edit: how can you fuck a tree :weird: ;)