Archive: Need help with AVS (rendering a box)


2nd March 2003 03:42 UTC

Need help with AVS (rendering a box)
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.


2nd March 2003 04:29 UTC

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.


2nd March 2003 04:52 UTC

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?


2nd March 2003 05:09 UTC

He just showed you the superscope code to use. If you can't figure it out then search the forums


2nd March 2003 14:16 UTC

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.


3rd March 2003 08:02 UTC

There's also a volumetric cube floating around somewhere.


3rd March 2003 09:42 UTC

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.