Glowing effect?
Blitz3D Forums/Blitz3D Beginners Area/Glowing effect?
| ||
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 |
| ||
do a slightly bigger transparent cube over it |
| ||
Or a glowy-effect sprite? |
| ||
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. |
| ||
You can do this in Gile[s], if you own it. Then you can actually make the entire object be a lightsource. |
| ||
thanks guys, I think I got it now. |
| ||
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 :) |
| ||
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. |