Missing GL_LINE_SMOOTH in GLES20

  ... discussions about development with the GLES2 branch of AndEngine.

Missing GL_LINE_SMOOTH in GLES20

Postby justin.romaine » Sat May 05, 2012 1:15 am

I had developed a rounded rectangle based on the andengine rectangular shape base class
It worked well until I upgraded andengine to the GLES2 version
Now anti aliasing is no longer is supported.

Question. What is the acceptable method for anti aliasing lines and polygon in the new version of andengine?

GLES20.glEnable(GLES20.GL_LINE_SMOOTH);
GLES20.glHint(GLES20.GL_LINE_SMOOTH_HINT, GLES20.GL_NICEST);

these options do not exist in GLES2
justin.romaine
 
Posts: 6
Joined: Tue Feb 21, 2012 9:02 am

Re: Missing GL_LINE_SMOOTH in GLES20

Postby justin.romaine » Tue May 08, 2012 7:25 am

No one can answer this> (boohoo) Im sure it involves something like rendering into a texture,adding some effect, then adding that. Kinda like the Text class. When i work it out, i will post the solution.
justin.romaine
 
Posts: 6
Joined: Tue Feb 21, 2012 9:02 am

Re: Missing GL_LINE_SMOOTH in GLES20

Postby IFL » Wed May 09, 2012 5:44 pm

Try setting Multi-Sampling via EngineOptions.getRenderOptions().setMultiSampling(true). I don't know about the smooth line from GLES1, but setting that option in GLES2 acts somewhat like an anti-alias filter for the renderer.
User avatar
IFL
 
Posts: 177
Joined: Fri Mar 04, 2011 6:28 am

Re: Missing GL_LINE_SMOOTH in GLES20

Postby Steve0212 » Fri Jul 13, 2012 12:53 am

Could you post your class for a rounded rectangle? I am a newbie to AndEngine and have a need for rounded rectangles in my game.

Thank you so much.
Steve0212
 
Posts: 1
Joined: Fri Jul 13, 2012 12:51 am

Re: Missing GL_LINE_SMOOTH in GLES20

Postby futuresandwich » Wed Aug 22, 2012 5:38 am

Was there any response on this? I need to use GL_LINE_SMOOTH and GL_POINT_SMOOTH in my project.
futuresandwich
 
Posts: 3
Joined: Sun Aug 19, 2012 8:15 am


Return to GLES2

Who is online

Users browsing this forum: mavericks and 19 guests