AuthorTopic: Anti-Aliasing Calculator [GIFT]  (Read 7468 times)

Offline difrnt

  • 0001
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile

Anti-Aliasing Calculator [GIFT]

on: September 20, 2006, 02:36:45 pm
Here is a Anti-Aliasing Calculator that I made.
I originally did it in C++ but just re-coded it in PHP.
It's your guy's to use freely, tell me what you think.
Tell me any errors you find so I may fix them.

http://www.portmonkey.com/aacalc

Thanks!
.think difrnt.

Offline ptoing

  • 0101
  • ****
  • Posts: 3063
  • Karma: +0/-0
  • variegated quadrangle arranger
    • the_ptoing
    • http://pixeljoint.com/p/2191.htm
    • View Profile
    • Perpetually inactive website

Re: Anti-Aliasing Calculator [GIFT]

Reply #1 on: September 20, 2006, 02:55:52 pm
i guess sliders and realtime update would be nice, then again i don't need this, promotion has ramping :B
There are no ugly colours, only ugly combinations of colours.

Offline difrnt

  • 0001
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile

Re: Anti-Aliasing Calculator [GIFT]

Reply #2 on: September 20, 2006, 04:44:30 pm
Great idea ptoing!
I shall start working on this!
.think difrnt.

Offline Larwick

  • 0011
  • **
  • Posts: 738
  • Karma: +1/-0
    • Larwick
    • http://www.pixeljoint.com/p/3794.htm
    • View Profile
    • Artstation

Re: Anti-Aliasing Calculator [GIFT]

Reply #3 on: September 20, 2006, 06:40:21 pm
Also howabout being able to put two hex codes in as another option other than the RGB values? Seems really neat btw. :0'

Offline Ai

  • 0100
  • ***
  • Posts: 1057
  • Karma: +2/-0
  • finti
    • http://pixeljoint.com/pixels/profile.asp?id=1996
    • finticemo
    • View Profile

Re: Anti-Aliasing Calculator [GIFT]

Reply #4 on: September 21, 2006, 02:17:04 pm
I noticed, the output is incorrectly formatted when any of the input values are < 16

for example:
# F F1E
is the AA color chosen for A=(10 10 10)  B=(20 20 50)
I expected #0F0F1E

Yeah, realtime update is pretty important.
If you insist on being pessimistic about your own abilities, consider also being pessimistic about the accuracy of that pessimistic judgement.

Offline AdamAtomic

  • 0100
  • ***
  • Posts: 1188
  • Karma: +0/-0
  • natural born medic
    • View Profile
    • Adam Atomic

Re: Anti-Aliasing Calculator [GIFT]

Reply #5 on: September 21, 2006, 05:40:19 pm
Yeah a slider so you could bias the values would be very nice, e.g. I usually blend at 35% or 65% rather than 50%.  Maybe have a slider for the # of values to return also?

Offline Helm

  • Moderator
  • 0110
  • *
  • Posts: 5159
  • Karma: +0/-0
    • View Profile
    • Asides-Bsides

Re: Anti-Aliasing Calculator [GIFT]

Reply #6 on: September 21, 2006, 06:04:21 pm
If the only thing in mind when you create a new buffer-shade is the two colors it's going to be buffering between, then you're not using that shade optimally. No automated tools are needed for this extremely human-intuition based choice, I think. But to each their own.

Offline AdamAtomic

  • 0100
  • ***
  • Posts: 1188
  • Karma: +0/-0
  • natural born medic
    • View Profile
    • Adam Atomic

Re: Anti-Aliasing Calculator [GIFT]

Reply #7 on: September 21, 2006, 06:28:39 pm
I think this is more for calculating just the anti-aliasing shade for people using apps that don't have brush transparency.

Offline Feron

  • 0100
  • ***
  • Posts: 1123
  • Karma: +0/-1
  • Carpe Diem
    • View Profile
    • Pixelheart

Re: Anti-Aliasing Calculator [GIFT]

Reply #8 on: September 21, 2006, 06:33:28 pm
I just use photoshop pencil - if i want an AA shade is just press '5' (sets to 50% opacity) pencil over the color i want to make an aa shade with, 'i' - click the color, ctrl Z, and then set pencil back to 100% opacity.  however, more often than not, i just chose my own AA color by eye, and i have found using desaturated tones for AA can work better.  This wold be harder to implement into your calculator.

A sliding version would make more sense and would be more efficient.  Props to your effort though - not many people would go to the effort to make tools like these.

Offline robotriot

  • 0010
  • *
  • Posts: 166
  • Karma: +0/-0
  • Tubby mechanical friend
    • View Profile
    • robotriot

Re: Anti-Aliasing Calculator [GIFT]

Reply #9 on: September 21, 2006, 07:38:02 pm
I just use photoshop pencil - if i want an AA shade is just press '5' (sets to 50% opacity) pencil over the color i want to make an aa shade with, 'i' - click the color, ctrl Z, and then set pencil back to 100% opacity.

Heh, you do know that you can just press ALT for the colour picker, and that doing undo is unnecessary in that case, except when you set the pixel on a different layer? It won't have any transparency to it :)

I guess this is more fancy than my old AA-colourfinder :D http://omr.planet-d.net/trash/aac.zip
WELCOME TO BATTLE SQUADRON

Offline difrnt

  • 0001
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile

Re: Anti-Aliasing Calculator [GIFT]

Reply #10 on: September 21, 2006, 07:54:39 pm

Heh, you do know that you can just press ALT for the colour picker, and that doing undo is unnecessary in that case, except when you set the pixel on a different layer? It won't have any transparency to it :)

I guess this is more fancy than my old AA-colourfinder :D http://omr.planet-d.net/trash/aac.zip
Nope, it's not. That is actually where I got the idea for mine at.
Mine was so it didn't exit everytime.
It also was set so the output was in the color outputed color for AA.
.think difrnt.

Offline Feron

  • 0100
  • ***
  • Posts: 1123
  • Karma: +0/-1
  • Carpe Diem
    • View Profile
    • Pixelheart

Re: Anti-Aliasing Calculator [GIFT]

Reply #11 on: September 21, 2006, 09:45:38 pm
Heh, you do know that you can just press ALT for the colour picker, and that doing undo is unnecessary in that case, except when you set the pixel on a different layer? It won't have any transparency to it :)

I guess this is more fancy than my old AA-colourfinder :D http://omr.planet-d.net/trash/aac.zip

Ummm, I use Mac OS X so color picker is I.

Offline AdamAtomic

  • 0100
  • ***
  • Posts: 1188
  • Karma: +0/-0
  • natural born medic
    • View Profile
    • Adam Atomic

Re: Anti-Aliasing Calculator [GIFT]

Reply #12 on: September 21, 2006, 10:14:30 pm
he means that you can be using the pencil tool, and hold down the alt key while still on pencil to temporarily switch to the eye dropper.  this is a big helper for speed!

Werewolf

  • Guest

Re: Anti-Aliasing Calculator [GIFT]

Reply #13 on: September 24, 2006, 07:09:43 pm
add a div where the background-color equals the result, it would be good for copy and paste preview

Offline Elk

  • 0010
  • *
  • Posts: 294
  • Karma: +0/-2
  • Choice Architect & Nudger
    • elkdarkshire
    • http://pixeljoint.com/p/4683.htm
    • darkshire
    • darkshire.elk
    • View Profile

Re: Anti-Aliasing Calculator [GIFT]

Reply #14 on: September 24, 2006, 07:36:33 pm
good work goboom
i just dont get how it works! ;D
Open for business
elkdarkshire@gmail.com
Elk#2299

Offline Feron

  • 0100
  • ***
  • Posts: 1123
  • Karma: +0/-1
  • Carpe Diem
    • View Profile
    • Pixelheart

Re: Anti-Aliasing Calculator [GIFT]

Reply #15 on: September 24, 2006, 07:39:35 pm
he means that you can be using the pencil tool, and hold down the alt key while still on pencil to temporarily switch to the eye dropper.  this is a big helper for speed!

:o... I've been using photoshop for years... I wonder how many other sneaky shortcuts there are!
thanks!

Offline difrnt

  • 0001
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile

Re: Anti-Aliasing Calculator [GIFT]

Reply #16 on: September 28, 2006, 01:32:11 am
good work goboom
i just dont get how it works! ;D
You simply take your 2 RGB values and enter them in, and blamo! out comes your perfect 50% AA color.
.think difrnt.

Offline Ai

  • 0100
  • ***
  • Posts: 1057
  • Karma: +2/-0
  • finti
    • http://pixeljoint.com/pixels/profile.asp?id=1996
    • finticemo
    • View Profile

Re: Anti-Aliasing Calculator [GIFT]

Reply #17 on: September 28, 2006, 02:06:58 am
You simply take your 2 RGB values and enter them in, and blamo! out comes your perfect 50% AA color.
I think he was looking for something more like this:

aa_r = (c1_r + c2_r) / 2
aa_g = (c1_g + c2_g) / 2
aa_b = (c1_b + c2_b) / 2
If you insist on being pessimistic about your own abilities, consider also being pessimistic about the accuracy of that pessimistic judgement.