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 › Accumulation Buffer in OpenGL
Page Index Toggle Pages: 1
Accumulation Buffer in OpenGL (Read 599 times)
Accumulation Buffer in OpenGL
Sep 10th, 2006, 10:05am
 
Has anyone here had any luck getting the accumulation buffer working from within Processing?  If I recall, it's necessary to initialize OpenGL in the proper way to use this buffer, but the initialization code is behind the scenes in Processing, so I'm not exactly sure what to do.

Thanks,
Eric
Re: Accumulation Buffer in OpenGL
Reply #1 - Sep 10th, 2006, 3:57pm
 
I have doneit, but it does need you to edit PgraphicsGL.java frmo the processing source, and re-build it.

You'll need something like:
Code:
GLCapabilities capabilities = new GLCapabilities();
capabilities.setAccumRedBits(8);
capabilities.setAccumGreenBits(8);
capabilities.setAccumBlueBits(8);
capabilities.setAccumAlphaBits(8);
canvas = new GLCanvas(capabilities);


Then you should be able to use the glAccum functions.
Page Index Toggle Pages: 1