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 › OpenGL Texture Addition for Motion Blur
Page Index Toggle Pages: 1
OpenGL Texture Addition for Motion Blur (Read 1272 times)
OpenGL Texture Addition for Motion Blur
Oct 28th, 2007, 11:55pm
 
I'm trying to use OpenGL and Render to Texture to simulate a motion blur effect.

I know how to save the current scene to a texture file and display that using glquads, but I can only do that once. I was wondering if there was a way for me to "add" the new texture scene on top of the old one ?

eg :

1) Save Texture
2) Copy Texture to Display Texture
3) Display Texture in Glquads
4) Lower Alpha value
5) Save New Texture
6) Combine the two textures together
7) Lower Alpha

Now that I think about it, I'm not so sure this will work...

Anyone with any other suggestions for this ?


Re: OpenGL Texture Addition for Motion Blur
Reply #1 - Oct 29th, 2007, 10:39am
 
keep track on a number of frames and add them together on screen..
lets say the last 8 frames or use the accumulation buffer.
Re: OpenGL Texture Addition for Motion Blur
Reply #2 - Oct 29th, 2007, 11:19am
 
V wrote on Oct 29th, 2007, 10:39am:
keep track on a number of frames and add them together on screen..
lets say the last 8 frames or use the accumulation buffer.


yeah, I'd love to use the accumulation buffer, but I'm not sure if the computer I'm going to be presenting on will have it...
Page Index Toggle Pages: 1