Login  Register

Re: Antialiased polygons in JOGL 2.0 rc3

Posted by Sven Gothel on Sep 27, 2011; 9:18am
URL: https://forum.jogamp.org/Antialiased-polygons-in-JOGL-2-0-rc3-tp3369689p3372069.html

On Tuesday, September 27, 2011 07:41:33 AM Archie [via jogamp] wrote:
>
> Thanks for getting back to me Wade,
> I should have been more specific. I'd say JOGL2 is pretty much working.  In
> it's current state it actually draws the polygon but it is not antialiased.  
>
besides all set smooth fixed function pipeline hints you enable,
how about
  gl.glShadeModel(GL2.GL_SMOOTH) ?


> However, if you uncomment the line that says:
> //gl.glBlendFunc (GL.GL_SRC_ALPHA_SATURATE, GL.GL_ONE); (Some examples
> encourage this setting)
> It doesn't appear to draw the polygon anymore.
yeah well, this triggers sort of a 2nd rendering pass,
I would need to read the spec to be precise here - however,
it blends (composites) 2 framebuffers together with a specific method.
Read the spec - but I already can tell at least you would need alpha
to be enabled for your GLCapabilities.

>
> So either I can draw it and it is antialiased, or I can't see it at all. :)
haha :)

well, compare it with let's say Gears GL2 and Gears ES1 .. ?
play with the 'smooth' state .. hmm.

Sorry, hope it helps a little.

~Sven