How to create a glow effect

Blitz3D Forums/Blitz3D Programming/How to create a glow effect

Thanks guys..
sswift, you make my glow code really glow. I try and got this. I don't know how its happen but its work.
; CreateCamera Example
; --------------------

Graphics3D 640,480,16,2
SetBuffer BackBuffer()

; Create camera
Global camera=CreateCamera()
MoveEntity camera,3,3,0
RotateEntity camera,30,30,0

light=CreateLight()

Global cube=CreateCube()
PositionEntity cube,0,0,5

;glow setup
Global sizex=160
Global sizey=120
Global glowtexture=CreateTexture (384,384,256)
Global sp=CreateSprite(camera)
MoveEntity sp,-.25,-.05,1.2
EntityAlpha sp,.9
ScaleTexture glowtexture,GraphicsWidth()/sizex,GraphicsHeight()/sizey
EntityTexture sp,glowtexture

While Not KeyDown( 1 )
	CameraViewport camera,0,0,sizex,sizey
	RenderWorld
	CopyRect 0,0,sizex,sizey,0,0,BackBuffer(),TextureBuffer(glowtexture)
	CameraViewport camera,0,0,GraphicsWidth(),GraphicsHeight()
	RenderWorld
	Flip
Wend

End



..but I still don't have any idea on how to put a sprite just in front of viewport perfectlly.