glowing graphics

Blitz3D Forums/Blitz3D Programming/glowing graphics

ryan scott(Posted 2005) [#1]
graphics 3d question here... can we make graphics that glow like in this game Mutant Storm? If so, how? I mean as an example how to make just a single orb that has this glowing properties like you see here?

http://www.pompomgames.com/


GR(Posted 2005) [#2]
There are some really good code examples in the code archives so it's a good idea to check it out if you are looking for something specific. Maybe these links will help you out:

quick planet glow without entityorder
http://www.blitzbasic.com/codearcs/codearcs.php?code=452

Glow Effect
http://www.blitzbasic.com/codearcs/codearcs.php?code=1351

Cheers.


ryan scott(Posted 2005) [#3]
hmm glow effect is nice but it does it to the whole screen, is there some way to do it just to a single object?

also, it seems like pompomgames.com is using objects that actually glow like they have a light in them, is that possible? or does it seem like maybe just semi-transparent balls are used as a glow effect?


Rook Zimbabwe(Posted 2005) [#4]
OK this may be a silly idea but what about a kind of a sunburst PNG sprite that is BLACK at the edges etc... paste it behind the object and parent it to the object... That might work???


Matty(Posted 2005) [#5]
Similar to what Rook said you could do this:

create a sprite with a texture that is circular with the brightest part at the centre and fades to black towards the outside of the circle. Then place the sprite 'above' the object (ie closer to the camera than the object by a small distance) and use additive blend mode. For different colors for the glow you could either use an animated texture with different colored images on each frame OR you could change the sprite's vertex colors and simply use the greyscale texture mentioned with additive blend mode.