Zeveso
Zeveso

Reputation: 1294

Best way to reduce aliasing artifacts in open gl es? (Image re-sizing)

Ok, so whenever I scale an image down I get some aliasing artifacts. Really don't want that.

I was looking at this question and saw what he recommend, but not sure how that would apply to open gl.

I know that open gl pretty much automatically scales it. However, what should I look at doing that would make the image look nice?

Should I scale inside of GL or outside? Would you recommend scaling before I even create the texture?

Really would like to see what is standard for this. Thanks!

If complicated, please include some example code... even if just pseudo code.

Upvotes: 0

Views: 703

Answers (1)

HalR
HalR

Reputation: 11073

I think the term you should look for is multisampling with opengl-es 2.0. You should turn that on to get smoother scaling in your rendering.

For 1.0 you could use the complex answer here.

Some source:

// Create an OpenGL ES 2.0 context.
    setEGLContextClientVersion(2);
    if (kUseMultisampling)
        setEGLConfigChooser(mConfigChooser = new MultisampleConfigChooser());
    setRenderer(mRenderer = new GDC11Renderer());

Upvotes: 2

Related Questions