Skip to content
Forum Archive

APEs programming

38 posts

goebish#

APEs programming

Hello ! I'd like to share the source code for APE with others programmers...I hope some people will join this topic and post their source code 🙂

here are the source code for the 3 APE I just programmed:

ScreenReverse.APE
AddBorder.APE
RGBfilter.APE
NoSage#
I am at a computer at school, so I am not able to download the apes right now. I do not know anything about them but have heard that they are writen in c++ so wouldnt this require a compiler and decent ones cost a pretty penny. Just wondering where I can get a free c++ compiler that works pretty good, to join the ape bandwagon. 📻
mucks#
dev c++ should works

you can get it from sourceforge.net

huh do you guys think a command can be done to take the avs's layer to skin a 3d ape?
mucks#
dev c plus plus

i works with c++ cause it's free and cause i'm a programmer...so to compile these codes how should i operates (basicly to makes changes to the sources won't realy be a trouble...the worst i can get is a crash..héhé)
UnConeD#
Well it wouldn't be too hard to improve the metaballs so that a buffer is mapped onto it as texture. Just don't have time for that now 🙂.
mucks#
direct3d ape?

hey friend do you think it'd be possible to make an ape (like an effect list) that outputs the visual from 3d hardware

and a way to reduce colors in it (or anything to incrase the speed of hungry presets) in it

yeah i was thinking about an ape using 8bf files from adobe photoshop and pals to make fxs like false 3d , 360 rotation , chrome , (and cloning from others like hot wax coating ((((ok and using a comm to reduce quality to incerase speed))))

an ape to make transparencity fading and move edges over edges to remove ugly lines un ddm rb and zooming purpose parts




!!!!!!!!!!!!!hey budddies..who did ask to get sourcecodes from avs...for what purpose! ape's been created!!!!!!!!!!!!!!!


héhé so that's it.....

i posted some more stuff directly about avs in the whishlist)

see ya
duo#
damn

well i downloaded the zip onto my school's computer.
they have borland C++, visual C++, visual J++, and VB 6 but no damn winzip. im gonna go dl it write now and check your stuff out.
mucks#
comme promis.....

......................
mucks#
the full size one

.............
mucks#edited
the buffers/blending

is there any way to make an alternative to effect list or to buffer save to make a chosen color being blended..like completely avoided...
cause i think that evry parts of avs can be converted to ape and then being modified

in another post i made i asked for this...i got some answers..but didn't realy satisfy me cause there is always some pixels half blended and the rest is transparent(the good part)
so i can't realy get the little flyin fairie to be all opaque (even if i use no fairie😕)

so it'd be great to make an ape that tells <<hey the machine , remove this color and make it transparent or hey avs take this color and give it some alphablending , and do nothing to the rest>>


i did find an excelent slideshowmaker ape that takes jpg..

if there were an ape that simply use gif with transparent colorcode
or png with simple tansparentcode it'd mayby do the job great
but the first alternative would mayby help elsewere...like in presets like cartoon from unconed......

you'd take an effect list with movin particles/rotto blitter/water/buffer save then another effect list with
with cartoon effect, then aply the ape to one color or two (hum mayby usin the color gradian inside fractal fx (like the one in photoshop when making a gradian with a form like left to right /square/circle)

huh and you there can chose 2 or 3 colors to become transparent

(ok here there is the option of buffer save and/or effect list to be modified as an evolved ape


so here i send what i've made upon now to understand how to works with tools i have

sorry to explain so badly.....i'm kinda stressed out and i made a white night too......i'm stressed cause i'm gona be a vj if i can show a bit more of quality to my talents (if i got any talent)

so priv msg me if you find any better synthax the 180 (minutes or hour i don't remember)after i wrote
goebish#
No more posts in this topic ...... Don't anyone want to share his sources with the community ????
UnConeD#
I'm working on an AVS-script compiler and intend to release it as public domain here if I ever get it to work. That enough? 🙂

By the way, I took a quick look at your code and noticed it's quite inefficient. Here are a few ideas:
* RGBFilter:
- Why don't you calculate the mask in realtime? Simply do something like:
int mask = (0xFF && enabled1) || (0xFF00 && enabled2) || (0xFF0000 && enabled3);
That should reduce your code by about 95%.
- Why are you putting everything in fbout[]? You could just as well do the modifications to framebuffer[] itself, because there is no dependancy between the pixels.

* ScreenReverse
- The pos() method is called twice for every pixel in the image, which means an immense slowdown. Replace it with a macro:
#define pos(a,b,c) ((a)+(b)*(c))
The compiler will replace every instance of pos() with the real code, which means that there is no extra function call per pixel, but you still get nice code.


Also, if you want fast APE's, you need to use assembly and MMX in critical routines. It's already very slow 🙂 For example, here's the critical code for my Color-reduction APE:

/* render */
int a,b,c;
a = 8-config.levels;
b = 0xFF;
while (a--) b=(b<<1)&0xFF;
b |= (b<<16) | (b<<8);
c = w*h;
int a,b,c;
a = 8-config.levels;
b = 0xFF;
while (a--) b=(b<<1)&0xFF;
b |= (b<<16) | (b<<8);
c = w*h;
__asm {
mov ebx, framebuffer;
mov ecx, c;
mov edx, b;
lp:
sub ecx, 4;
test ecx, ecx;
jz end;
and dword ptr [ebx+ecx*4], edx;
and dword ptr [ebx+ecx*4+4], edx;
and dword ptr [ebx+ecx*4+8], edx;
and dword ptr [ebx+ecx*4+12], edx;
jmp lp;
end:
}
return 0;
/* end render */
This might seem weird at first, but it's actually pretty tight code. It takes advantage of the fact that AVS's imagewidth is always divisable by 4, to do 4 pixels in one cycle. This means only 1/4th the amount of jumps.

By the way, mucks: it's not possible to make Effect List APE's. APE's can only behave like a misc, trans or render.
goebish#edited
thank you for your code Unconed, i'm really a begginer at C++ programming but I can understand your code (I love assembly coz I love reverse enginering 🙂 ) so I'll publish versions 1.2 of my APEs (and their source code) very soon.
Montana: If you want my compiled APEs go to this page ( french only at the moment 🙂 ):
http://vfx10.**********/softs.htm

You'll find 4 apes with their source code and some utilities I made recently...AVS Playlister is an AVS presets list manager I just made.to use it, read the doc ! (in french 🙂 if someone want to translate it to english please tell me )
goebish#
A new one !

here come a new one: NegativeStrobe.APE

also check this page to get the latests versions of my APEs and their sources: http://vfx10.**********/softs.htm
dirkdeftly#
You're probably one of the few people who writes code in the first place. I'd post code...if I had any
Magic.X#
Of course i could post the Hotlist Code here but first, it would fill more than 20 Pages, second, it is all written in Delphi, third, i have a really unusual style of programming and dont want to torture anybody by letting him unscramble those 20 pages of code.

If anyone wants it nevertheless, i'll post it here, but dont make me responsible, i warned you. :P
goebish#
No, I'd like this thread to be about APE programming only...not 3rd party utilities...But wouldn't you try C++ and assembly to join us 🙂
And I've a remark: european peoples are very active on this forum 🙂
goebish#
compiled goebish APEs

some peoples asked me for my compiled APEs coz' they don't own VC++..so here they are..To install them, copy the .APE files that are in the zip file into your AVS directory (the default directory is c:\program files\winamp\plugins\avs )...Have fun
goebish#
weird .ASC fileformat...

Please Unconed, How can I make .ASC files for your 3D.APE, I've tried lot of converters but none works...This APE could be very usefull to me if I could insert my own objects....
UnConeD#
If you mean the wireframe renderer APE, I didn't make that one... I made Tentacles and Metaballs.
papaw00dy#
Video Capture APE

Has anybody gotten the AVS Video Capture APE to work right? I got it to work with my crappy IBM PC Camera, but it made my FPS crawl at like 1 or 2 fps. I haven't been able to get it working with any other cameras or capture devices because they don't support 32 bit mode. Perhaps somebody could improve the APE. I think the original coder abandoned the project, but he might be willing to give up the source code.

I'd be willing to help, but my C++ is pretty limited. If I can get the source code from the original author I will post it to this forum.
goebish#
maybe try another one...

I know there are more than one video input APE and some work better than others...I don't use it at the moment, but a friend do, I'll ask him to send it to me and I'll post it here...Hope this will help

Note: I basically come from Visual Basic world and my C++ knowledge is limited too ( the APEs I made are my first C++ programming attempt), so why don't you try it too ? 😁
goebish#
lol

do you really know "well" VC++ ???? It can't just compile to exe but also dll...and ape is a sort of dll (not really but...), just go here to download my sources : http://vfxsoftwares.fr.st and open the dsw files with "open workspace" in visual c++, compile and OOOHHHHHH 😱!!!!!! It compile to an APE 😱
goebish#
animated gifs...

I'd like to develop an APE to render animated GIFs (with size, positioning, transparent colors and so on...),but as my C++ knowledge is limited for now (thanks again UncoNeD for the tips you gave me🙂), I'd like someone serious to help me when I'm having problems...Can someone join this project please ?
Yathosho#
hey goebish, it would be very useful if you could add a version resource to your APEs. though it might be unlikely you will still update them, it'd allow a proper installation (checking for up-to-date versions).