[Anti-aliasing] how do i remove aliasing problem on ES1.0?

hello, nice to meet you.
I am beginner programmer in opengl-es. (using android emulator)
And i have tried to use as following codes to remove aliasing problem.


public void onDrawFrame(GL10 gl){
...
gl.glShadeModel(GL10.GL_SMOOTH);
gl.glEnable(GL10.GL_MULTISAMPLE);
gl.glEnable(GL10.GL_BLEND);
gl.glBlendFunc(GL10.GL_SRC_ALPHA, GL10.GL_ONE_MINUS_SRC_ALPHA);
gl.glHint (GL10.GL_LINE_SMOOTH_HINT, GL10.GL_NICEST);

gl.glVertexPointer(3, GL10.GL_FLOAT, 0, mfPlaneBuf);		
gl.glColor4f(r,g,b,1f);
gl.glNormal3f(0,0,-1);
gl.glDrawArrays(GL10.GL_TRIANGLES,0,6);
...
}

is there some problem?
if so, how could i resolve aliasing problem?
please help me :roll:

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.