We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpOpenGL and 3D Libraries › Dynamic alpha masking
Page Index Toggle Pages: 1
Dynamic alpha masking (Read 500 times)
Dynamic alpha masking
Mar 10th, 2009, 10:06pm
 
Hi,
I'm trying to make a wipe transition using some 'bubles' (particle system) as an alpha mask for an image to show the underlying image.
This has to run in 1360x768 and I'm really having problems with my framerate.
I've tried writing to both a P2D and a JAVA2D off-screen buffer which is ok, but when I add some other graphics everything slows down dramaticaly.
So what I'm trying now is to use OpenGL to do the heavy work, but I can't get an alpha mask to work. That is I can get a JAVA2D buffer to mask using OpenGL but the framerate is redicolous.
I've started to have a look at the codeanticode libraries, but which has helped on the framerate using off-screen buffer in OpenGL, but I can't get the alpha to work. I've tried with the buffer.background(0,0) on the GLGraphicsOffScreen object, but it just shows up as black.
I appologize for my rambling, but I'm getting close to desperation here. Cheesy
Page Index Toggle Pages: 1