• Advertisement
Sign in to follow this  

Antialiasing - without DX

This topic is 4734 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Does anyone know any antialiasing techniques/algorithms? Just pure C++ algorithms, I'm not using SDL/DX/OpenGL/Allegro/whatever.

Share this post


Link to post
Share on other sites
Advertisement
Easiest method is to just draw at 3x the size and then just scale it down. And I pick 3x because it's a nice simple number to work with. Just add the colour components together and divide by 9.

The correct way requires some some math, and kind of depends on what you're drawing.

Share this post


Link to post
Share on other sites
I thought you said pure C++. I meant low level pixel manipulation. The pixel at [x,y] in the final image would be the average of the pixels at [x*3 to x*3+2,y*3 to y*3+2] in the 3x temporary buffer we drew everything to.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement