I haven't tried your code yet....but this is what I use to make rain or scanlines.... (excerpt from my program-"Nautilus") ->
rain=CreateCube(camera)
EntityParent rain,camera
raintex=LoadTexture("scanl.png") ;or rain.png bitmap
ScaleEntity rain,.1,10,10
ScaleTexture raintex,.2,.2
EntityAlpha rain,.7 ;or set texture to mask ie. "2"
EntityTexture rain,raintex
TurnEntity rain,0,90,0
PositionEntity rain,0,0,2 ;in front of camera
set rainpos=0.0 before Main loop, then after UpdateWorld in prog: ->
PositionTexture raintex,0,rainpos ;rotates texture!!!
rainpos=rainpos+.1
So simple, and yet so cool!
gpete
rain=CreateCube(camera)
EntityParent rain,camera
raintex=LoadTexture("scanl.png") ;or rain.png bitmap
ScaleEntity rain,.1,10,10
ScaleTexture raintex,.2,.2
EntityAlpha rain,.7 ;or set texture to mask ie. "2"
EntityTexture rain,raintex
TurnEntity rain,0,90,0
PositionEntity rain,0,0,2 ;in front of camera
set rainpos=0.0 before Main loop, then after UpdateWorld in prog: ->
PositionTexture raintex,0,rainpos ;rotates texture!!!
rainpos=rainpos+.1
So simple, and yet so cool!
gpete