Skip to content
Forum Archive

New things

9 posts

shreyas_potnis#

New things

I havent been in contact with avs sice a long time. So it would be gr8 if someone posted a preset which uses all the new stuff like megabuf etc etc.
[Ishan]#
lol Shreyas. dont be so lazy! search for it a bit! 😛

[edit] PAK's or TomyLobo's DA pages might help.[/edit]
[Ishan]#
uh...Shreyas was'nt here when Final Whack and Whacko revisited were released?

oh damn.....my memory 😛
jheriko#
if your looking for the hot techniques in use at the moment

the best examples available will be found in the usual r337 avser's collections.

back face culling
geometry sorting/fixed order rendering
numerical raytracing (whittaker method + variants)
ambient+diffuse+specular lighting with normal, spec & gloss maps/data
triangle modeling+texture hack
per-sample fullscreen raytrace
point sprite modelling/particle clouds etc...

most of these techniques need the new apes, including texer2, triangle and global variable manager. they all come with help except triangle. You will have to find examples to work that out.
quick vars - x1,y1,z1,z2,y2,z2,x3,y3,z3,red1,green1,blue1)

have fun.
TomyLobo#
It's not really that hard once you know the variables' names 😉
If you have any further questions, just /query TomyLobo on QuakeNet or freenode

Jheriko forgot to mention another one of my APEs: my syntax-enhancer eeltrans.ape.
This ape rewrites all the code you use in a preset, addressing various deficiencies with the AVS language.
Some features are: writing code inside ifs and loops, regular assignments to (g)megabuf

pn=0;
loop(bar,
if(above(megabuf(pn+2),5),
megabuf(pn)=foo;
,
megabuf(pn+1)=foo;
);
pn=pn+3;
);
another feature is a C/C++-Style #define directive:

#define yorz(a) ((a)*(a)*(a))

foo=3;
cubic3=yorz(foo);
available on my deviantart page 🙂