A.D.A. Amiga Demoscene Archive

        Welcome guest!

  

  

  

log in with SceneID

  

Demos Amiga Demoscene Archive Forum / Graphics / faked antialiasing

 

Author Message
dodke
Member
#1 - Posted: 7 Mar 2011 11:27 - Edited
Reply Quote
I did this simple algorithm a few years back that tried faking some kind of pixel by pixel drawn antialiasing to 1 bit images for an intro project and this morning decided to do a quick and dirty java tool for it that would be easier to use. i was thinking it could be fun to share it as well in case someone finds it interesting.
The source code is included so if you have problems or want it improved just fix it :P otherwise i wouldn't recommend looking at the code too much.

first step is to do a black and white image in photoshop/grafx2/etc that might look something like this:
step 1

then you process it with the tool by typing
java feikkaa sourceimage.png
or something in the terminal / whatever in the directory with the tool in it.

the output will be in sourceimage.aa.png and looks a bit like this:
step 2

still looks kinda shitty so you need to add some colour in photoshop with the color balance adjustment for example:
step 3

since you're most probably not quite satisfied with the result you can do some retouching after the processing is applied. you'll probably be saving a lot of time anyway compared to doing it all by hand.

the tool is here for now.
ZEROblue
Member
#2 - Posted: 26 Mar 2011 12:58
Reply Quote
Thanks for sharing this!
Lonewolf10
Member
#3 - Posted: 12 Apr 2011 00:52
Reply Quote
Thanks for the tool. I don't use large text much so they don't usually require anti-aliasing, but I DL'ed it anyway as I'm sure it'll come in handy sometime :)
Two questions:

1) Does it only work with .png files

2) I noticed the _MACOSX directory. Does that mean its not Windows compatible?


Regards,
Lonewolf10
dodke
Member
#4 - Posted: 15 Apr 2011 20:40
Reply Quote
It uses the Java API for loading images so jpegs are supported (but make absolutely no sense) and maybe others (bmp?, no clue).

It works on all platforms with J2SE so at least Windows, Mac OS X and Linux. (+ some others). It's a bare class file so you need to run with the command line program "java".
Lonewolf10
Member
#5 - Posted: 29 Jul 2011 19:50
Reply Quote
Just tried it out...

C:\Documents and Settings\user\My Documents>java feikka AliasTest.PNG


with feikka.class and feikka.java in the same directory as AliasTest.PNG but I got this error:


Exception in thread "main" java.lang.NoClassDefFoundError: feikka


I am clearly doing something wrong, can someone please help me?


Regards,
Lonewolf10

PS. This forum is very quiet, is everyone on holiday?
dodke
Member
#6 - Posted: 23 Apr 2012 17:08
Reply Quote
The program is called 'feikkaa'. with two a's at the end.

Hope that helps :)

 

  Please log in to comment

  

  

  

 

A.D.A. Amiga Demoscene Archive, Version 3.0