Jump to content
  • Advertisement
Sign in to follow this  
geekalert

Antialiasing - without DX

This topic is 4980 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
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!