Transparency in a figure

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Transparency in a figure

Esteban
How I can do to make a shape has a transparent fill?
Reply | Threaded
Open this post in threaded view
|

Re: Transparency in a figure

gouessej
Administrator
Hi

If you use the fixed pipeline, you can use the alpha blending, look at GL_BLEND and glBlendFunc. There is an example of the OpenGL red book ported to JOGL 2 available in the project jogl-demos:
https://github.com/sgothel/jogl-demos/blob/master/src/redbook/src/glredbook10/alpha.java
Julien Gouesse | Personal blog | Website