Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - snowy2

Pages: [1]
1
Graphics / PostFX motion blur code snippets/tutorial
« on: May 29, 2010, 06:16:42 pm »
I'm trying to implement pixel motion blur. Does anyone have any code snippets or links to resources that demonstrate how to do this via PostFX? Any help much appreciated.

Just to clarify... I'm trying to do the quick and dirty 2d motion blur by saving the last frame's buffer, reducing the alpha and blending it with the current frame.

update:
Ah, found out a quick way to do it. I simply CopyScreen() the window contents and SetTexture() just before clearing the screen.  The fragment shader code just blends the two textures (framebuffer and last frame) together. Then Draw() the effect as usual.

Pages: [1]