PDA

View Full Version : Glow / blur / trails ?



Selfdestroyer
05-13-2007, 05:54 AM
I cant seem to find out what its called but what I'm trying to accomplish is the glowing/blur effect on an object. Like a circle that is glowing and when moved it will give off a trail or hue. kind of like the Solorwinds Screen saver

http://www.geeklan.co.uk/images/solarwinds.jpg

Any ideas what its called and how i can achieve this?

Zengar
05-13-2007, 09:40 AM
Render the objects multiple times over different positions, while increasing the alpha value. The current position will have the alpha value of 1.0 (fully opaque).

ziggle
05-13-2007, 06:04 PM
another good way to accomplish this effect if you want it for all of your objects as your screenshot shows is to:

do your rendering, then copy the screen to a texture
then on subsequent renders, draw the copied texture over the screen at some alpha before doing your next rendering

dorbie
05-14-2007, 02:21 AM
You're looking for "motion blur" there are many ways but it's generally expensive and so it is usually approximated of done incorrectly.

The accurate way is to integrate all positions between the last frame and this.

Zengar's suggestion does not accomplish this because the recent frame has a weight of 1.0, ziggle's suggestion does not accomplish this because it convolves inter frame and not intra frame.

Either or a combination of their suggestions may provide something that looks 'cool' heck it might even be closer to what you're looking for than true motion blur.

Good luck.