I am playing a bit with the accumulation buffer and right now i am trying to do motion blur.
Well, actually it is very easy to do “full scene” motion blur, but headache is just round the corner.
So, i am now trying to only do motion blur for actually moving objects, so that when the viewer moves the world does not get blurred, too.
My idea was to do it this way:
-render the moving objects
-blur them with the accumulation buffer
-render the world, overriting all previous stuff
-blend the accumulation buffer over the color buffer to add the blur
-render the moving objects again, to get sharp edges
However, it seems not to be possible to blend the content of the ab into the cb, only to copy it.
Yes, that works. Its possible to get the desired effect this way.
The only thing i don´t like about it is, that - on my Radeon - i have to use a standard-sized texture, meaning 1024^2 or even 2048^2 only to store the framebuffer (because i don want to shrink the image.
Does anyone know, if the non-power-of-two-texture extension gets supported in the near future?