Re: Mixing translucent objects in a GL scene
Posted by
Martin on
Feb 04, 2012; 9:39am
URL: https://forum.jogamp.org/Mixing-translucent-objects-in-a-GL-scene-tp3697955p3715232.html
Hi,
Trying some sample code related to alpha blending [1], I got an exception saying it's not available:
javax.media.opengl.GLException: Method "glBlendEquation" not available
at jogamp.opengl.gl4.GL4bcImpl.glBlendEquation(GL4bcImpl.java:700)
at glredbook12x.blendeqn.display(blendeqn.java:87)
So I discover one should call:
System.out.println("blend available:"+gl.isFunctionAvailable("glBlendEquation"));
What is the reason for unavailable functions?
Is that due to my hardware? Should I add open gl extensions?
[1]
https://jzy3d.googlecode.com/svn/trunk/src/glredbook/glredbook12x/blendeqn.java