Code archives/3D Graphics - Effects/Motion Blur
This code has been declared by its author to be Public Domain code.
Download source code
| This is a very small lib that with tweaking can do some really neat things. I have a demo that you can download which has complete source and a simple example. http://www.hi-toro.com/blitz/MotionBlur.rar http://www.hi-toro.com/blitz/MotionBlur.zip Also, please vote for my gallery screenshot at http://blitzbasic.com/gallery/view_pic.php?id=1193&gallery=&page=1 |
; l_surface by Daniel Wooden ; Created : 10/25/2005 Global l_surface = CreateSprite( camera ) SpriteViewMode l_surface, 2 PositionEntity l_surface, 0, 0, 0.00638 ScaleSprite l_surface, 0.0064, 0.0048 EntityAlpha l_surface, 0.5 Global l_texture = CreateTexture( 640, 480, 1+256 ) ScaleTexture l_texture, 1.598, 1.066 TextureBlend l_texture, 2 EntityTexture l_surface, l_texture Function l_update() RenderWorld CopyRect 0, 0, 640, 480, 0, 0, BackBuffer(), TextureBuffer( l_texture ) End Function Function l_setAlpha( a# ) EntityAlpha l_surface, a# End Function |