Zanir » Blog Archive » Program 18 – Motion blur

Program 18 – Motion blur

15.09.2004

031_motion_blur_with_pbufferProgram uses pixel buffer, for rendering scene to texture. Motion blur is make with equation:
frame(t+1) = alpha*texture + (1-alpha)*frame(t)
Frame buffer doesn’t need clear. Frame buffer doesn’t contain z-buffer. Alpha is preset on 0.18. Texture has 1024 * 1024. Texture contain z-buffer. Program is equivalent to OpenGL program 31. On my graphical card however DX is fastest. DX 127 FSP, OpenGL 104 FSP.

source code and executable – 700kB

Leave a Reply