Login  Register

Re: useful Java2D bridge

Posted by Sven Gothel on Oct 04, 2011; 8:28pm
URL: https://forum.jogamp.org/useful-Java2D-bridge-tp3391708p3394498.html

On Tuesday, October 04, 2011 09:32:57 PM Brandon Borkholder [via jogamp] wrote:
>
>
> Agreed, it should degrade gracefully depending on what's available.  There
> really isn't anything that shaders will buy,

But that fixed function pipeline (FFP) might not be even available -> mobile/ES2.
Pls also mind that FFP is emulated on today's GPUs..
  http://jogamp.org/jogl/doc/Overview-OpenGL-Evolution-And-JOGL.html

> I'd basically end up
> reimplementing the fixed-function pipeline.  The big exception is geometry
> shaders.  That would significantly speed up line drawing.

Also writing shader(s) which do the job matching the exact needs incl.
data management (VBO caching .. etc) usually is more efficient.
Again, driver for today's hardware usually generates shaders on the fly
to emulate the FFP.
However, we may can do that later, of course.

Awesome that you are willing to bring this very useful module into JOGL.

>
> I really wanted to implement java.awt.Composite using shaders, until I found
> out a shader can't get the current color fragment value...

A compositor usually blends previous generated FBOs,
which you can ofc use as textures in shaders.
Thats how the new KDE w/ ES2 impl. does it.

~Sven