Hello Guest

How to setup the accumulation buffer

  • 0 Replies
  • 3961 Views
How to setup the accumulation buffer
« on: March 08, 2005, 14:19:55 »
I would like to use the accumulation buffer for motion blur. I can't get it to work though. My system freezes each time I do the first glClear on the accum buffer ... I do this in init():
PixelFormat pFormat = new PixelFormat(
24, // bpp
8, // alpha
16, // depth
0, // stencil
0, // samples
0, // num_aux_buffers
24, // accum_bpp
8, // accum_alpha
false); // stereo

Display.create(pFormat);
// set clearing colour for accum buffer
GL11.glClearAccum(0.0f,0.0f,0.0f,0.0f);

and then in the loop
GL11.glClear( GL11.GL_ACCUM_BUFFER_BIT);

This reliably crashes my Linux completely, no choice but to pull the power
What is the problem here? I'm running Java 1.5 on Debian Kernel 2.6.9 with Radeon 9800.

-tomsen

(Edit: Same setup on Windows does not crash at least but nothing gets painted either. Seems Linux driver is crap. No surprise.)
 + 2 equals 5 for very large values of 2