PDA

View Full Version : Need help with AVS (rendering a box)


CarniceroOO7
2nd March 2003, 02:42
I'm trying to render a box (filled with white) using the superscope. I just started learning the superscope and don't quite have the hang of it, but I'm learning.

So far I need to make a box but am having a bitch of a time taking the easy way out and just creating a static bitmap.

I started just making individual vertical lines and spacing them apart by extremely small increments. But I don't think it would be practical to have an AVS preset with 5,000 simple-line superscopes just to render a white-filled square.

Could I just create one vertical or horizontal line and "stretch it both ways" so that it is basically one fatass line that, for all intents and purposes, looks like a box?

If someone knows how to do this, could you post the code? Because I can then just layer above or below the effects I already have code.

Nic01
2nd March 2003, 03:29
n=w*2;

x=-1+i*2;
s=bnot(s);
y=s*2-1;

If you want to fill the whole damned screen up.
No explanations. Search the forums.

CarniceroOO7
2nd March 2003, 03:52
Sorry, I meant I want a box smaller than the whole window, positioned in the center. Could the mosaic filter maybe help me out here?

anubis2003
2nd March 2003, 04:09
He just showed you the superscope code to use. If you can't figure it out then search the forums

mikm
2nd March 2003, 13:16
and it IS in the forums. a rotating solid square was posted in response to a question i had about solid SSCs a long time ago.

Jaheckelsafar
3rd March 2003, 07:02
There's also a volumetric cube floating around somewhere.

Tuggummi
3rd March 2003, 08:42
Per Frame:
size=0.5 ; n=w*size

Per Point:
s=1-s ;
x=s*size-size*0.5 ;
y=i*size-size*0.5 ;


If this doesn't explain you enough then you should try to seek out some tutorials about ssc coding.