Glowing effect?

Blitz3D Forums/Blitz3D Beginners Area/Glowing effect?

po(Posted 2004) [#1]
How would I make a simple coloured glowing effect on something like a rotating cube? Kind of like you see in alot of games where you collect items which have a glow thing happening.
-Thanks


smilertoo(Posted 2004) [#2]
do a slightly bigger transparent cube over it


_PJ_(Posted 2004) [#3]
Or a glowy-effect sprite?


jhocking(Posted 2004) [#4]
You could do a complicated glowing effect using a bloom filter effect people have been working on, but for a simple light halo you can just use a sprite. Create an image of a light burst on a black background, load that image as a sprite, and set the sprite to "add" blend mode. Now position the sprite in the same place as the cube.


PowerPC603(Posted 2004) [#5]
You can do this in Gile[s], if you own it.
Then you can actually make the entire object be a lightsource.


po(Posted 2004) [#6]
thanks guys, I think I got it now.


aCiD2(Posted 2004) [#7]
i have extended on the bloom filter function by excepting an optional parameter called 'glow' where you pass an entity in. then at the start of the code it moves 'glow' up 65536 units, with the camera, performs bloom filter code, and then moves the camera and 'glow' back down :)


Ice9(Posted 2004) [#8]
do a slightly bigger transparent cube over it

and set the order of drawing to the bigger cube to always
draw before your normal cube. That way it doesn't blend
with the texture on your normal cube.