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.
Page Index Toggle Pages: 1
openGL + blur ? (Read 2035 times)
openGL + blur ?
Jul 6th, 2005, 7:20pm
 
Hello all

Has anyone ever achieved a "working" motion blur at p5 GL mode? I'm just failing miserably here, not sure if it's possible at this point...

I found some documentation on the "Accumulation buffer" but I really don't know how to use it ( http://www.opengl.org/resources/tutorials/advanced/advanced96/node38.html)

thanks!
Re: openGL + blur ?
Reply #1 - Jul 11th, 2005, 10:41pm
 
one thing that i've found works pretty well in some situations is the ol

Code:

noStroke();
fill(0, 10);
rect(0, 0, width, height);


trick.  to make anything in openGL work with no background calls, however, you need to clear the depth buffer:

Code:

gl.glClear(GL.GL_DEPTH_BUFFER_BIT);


if that's not enough of a blur for you, you can just call the rect(0, 0, width, height) less often, say once every few frames.
Re: openGL + blur ?
Reply #2 - Jul 12th, 2005, 4:58am
 
hmm... interesting. I'll try it. Thanks!
Page Index Toggle Pages: 1