Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Future Improvements (https://forums.graalonline.com/forums/forumdisplay.php?f=10)
-   -   Auto Anti-alias (https://forums.graalonline.com/forums/showthread.php?t=87238)

DustyPorViva 08-03-2009 04:39 AM

Auto Anti-alias
 
findimg(200).autoaa = true;

Will automatically anti-alias an image... This is mainly for images that are resized/rotated and such, as images at such low resolutions tend to look HORRIBLE without AA. Could also add a setting in options as to whether players WANT any AAing at all, like most games have for video settings.

Soala 08-03-2009 05:17 AM

Yeah that would be totally nice, mostly 3D Games have that.

Tigairius 08-03-2009 05:29 AM

Yeah, this is a good suggestion.

_Zelph 08-03-2009 04:57 PM

You mean image interpolation. That's what helps smooth out rotated images & resized images

Anti aliasing is a different story. More of a text/lines/polygons sort of deal. In a stupidly general sense

Both would be very nice, though! Anti aliased polygons would be cool.

Crow 08-03-2009 05:33 PM

Quote:

Originally Posted by _Zelph (Post 1512718)
You mean image interpolation.

No. He says anti-alias, and means it.

_Zelph 08-03-2009 06:02 PM

Is this not what we're talking about?

http://star.pst.qub.ac.uk/idl/images...Methods-14.jpg

DustyPorViva 08-03-2009 06:05 PM

I originally was just thinking of edges, but that's cool too if it's not too graphically intensive :)

Crow 08-03-2009 06:14 PM

Quote:

Originally Posted by DustyPorViva (Post 1512732)
I originally was just thinking of edges

So I was right in my assumption! :redface:

_Zelph 08-03-2009 06:44 PM

I still think he's talking about interpolation. Here, I made a demo for you guys:

http://dragonstrength.com/interpolation.gif

DustyPorViva 08-03-2009 06:50 PM

I know what interpolation is... but when I originally thought about this all I was interested in were edges, mainly because that's all I thought about when I was thinking of 3D games(as they only AA edges of polygons to make them look smoother).

Thing is, interpolation actually blurs the image quite horribly. AA does not do that. AA blends the edges, not blurs them, which is a bit different and looks somewhat different as well. However, I'm not sure, from a programming standpoint, how the two would be implemented in a game and such. I don't think bilinear is much of a step up from nearest neighbor...

_Zelph 08-03-2009 07:15 PM

Here's a second demo for the hell of it

http://dragonstrength.com/interpolation2.gif

Images are just grids of pixels. When you resize or rotate them, you basically have to insert new pixels/data (i.e. interpolate) based on what sort of end result you want. Nearest neighbor is the fastest because all it does is make the new pixel the same color as the closest original.

In broader terms, though, I guess you could say this is the same as anti aliasing (Not that I'm directing this at anyone)

Long story short, most people have better computers now than they did 10 years ago and it'd be nice to see some of this

Crow 08-03-2009 08:15 PM

It really depends on the situation. Interpolation can come in pretty handy, but I wouldn't mind AA'ed edges of something resized/rotated either.

_Zelph 08-03-2009 08:57 PM

Quote:

Originally Posted by Crow (Post 1512752)
It really depends on the situation. Interpolation can come in pretty handy, but I wouldn't mind AA'ed edges of something resized/rotated either.

But interpolation is how they're anti aliased >_<

Edit: It should be a client option, similar to how light effects has an option

Crow 08-03-2009 09:02 PM

Quote:

Originally Posted by _Zelph (Post 1512754)
But interpolation is how they're anti aliased >_<

Edit: It should be a client option, similar to how light effects has an option

No no, I mean, let's say we have an image of a one-colored rectangle, and I rotate that by, say, 72 degrees. Then the edges of the image are jaggy! And I only want the edges anti-aliased, I don't care if things that I might draw onto the rectangle later are jaggy or not.

_Zelph 08-03-2009 09:08 PM

Quote:

Originally Posted by Crow (Post 1512755)
No no, I mean, let's say we have an image of a one-colored rectangle, and I rotate that by, say, 72 degrees. Then the edges of the image are jaggy! And I only want the edges anti-aliased, I don't care if things that I might draw onto the rectangle later are jaggy or not.

But that can't be done with bitmap images (png, gif, bmp, etc). At least not with any method that I've heard of. If there WAS one, it'd be a total crapshoot no doubt

With vector graphics, though, yeah. In that case you'd be using a polygon =p


All times are GMT +2. The time now is 02:10 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.