Zanir » Blog Archive » Program 31 – Motion blur with p-buffer

Program 31 – Motion blur with p-buffer

08.08.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.

Request: WGL_ARB_pbuffer, WGL_ARB_pixel_format and WGL_ARB_render_texture.

source code and executable – 640kB

Leave a Reply