any hint on anti-alias ?

Started by guillaume, December 20, 2011, 10:03:53 AM

Previous topic - Next topic

guillaume

hi,  my app will run on a custom hardware, and it only support opengl es 1.0,
so how should  I implement anti-alias on my app with jPCT-AE ? thanks.

EgonOlsen

You can't. It isn't supported on ES 1.0 as far as i know.

guillaume

Quote from: EgonOlsen on December 20, 2011, 10:35:52 AM
You can't. It isn't supported on ES 1.0 as far as i know.
thanks. so what's the minimum ES version should I get ?
or is there any other way to implement it ?

EgonOlsen

You need 2.0 for this. jPCT has a helper class in the util-package to enable it for an OpenGL ES 2.0 context.

Edit: Example image: http://www.jpct.net/forum2/index.php/topic,2067.msg15892.html#msg15892

guillaume

by the way, I also tested my app with jPCT desktop version.
does code

buffer = new FrameBuffer(800, 600, FrameBuffer.SAMPLINGMODE_HARDWARE_ONLY);


will enable anti-alias ? the result seems no effect.
look the attach image

[attachment deleted by admin]

EgonOlsen

No, it doesn't. Either use FrameBuffer.SAMPLINGMODE_GL_AA_2X or FrameBuffer.SAMPLINGMODE_GL_AA_4X instead. Or force it in the driver settings.

guillaume

I try this.

buffer = new FrameBuffer(800, 600, FrameBuffer.SAMPLINGMODE_GL_AA_4X);


and the result  seems the same.  am I missing something others ?

see the attachment.

[attachment deleted by admin]

EgonOlsen

No, that's all there is to do. That doesn't mean that AA is supported on your platform. Many Intel onboard chips don't support it, for example.

guillaume

yes.  I am using intel onboard chips.
is there a software way to do anti-alias ?

EgonOlsen

No, not really. If it's not a laptop, go out and buy a cheap dedicated graphics card. Anything will do better than this Intel onboard crap (albeit they ARE improving, but it's about time...).