sounds like you already found that you
lose alpha when blending textures.
meanwhile, is it practical for you to go ahead and leave the light on and set elements to simulate "lights off" via rgb(255,255,255) settings, then rgb(xxx,xxx,xxx) to add the color as needed? ie:
set display mode desktop width(), desktop height(), 32,1 : autocam off
color backdrop rgb(0,0,0)
box 0,0,64,64,rgb(0,0,0),rgb(255,255,255),rgb(255,255,255),rgb(0,0,0)
get image 1,0,0,64,64,1
box 0,0,64,64,rgb(255,0,0),rgb(255,0,0),rgb(255,0,0),rgb(255,0,0)
get image 2,0,0,64,64,1
sync on : sync rate 60
make object cube 1,64.0
texture object 1,1
set object texture 1,2,0
`set object light 1,0
set object specular 1,rgb(255,255,255)
set object diffuse 1,rgb(255,255,255)
set object emissive 1,rgb(255,255,255)
set object ambience 1,rgb(255,255,255)
set alpha mapping on 1,50.0
make object cube 2,32.0
set object wireframe 2,1
toggle1 = -1
toggle2 = 1
spr = 1
hide mouse
move camera -128.0
do
yrotate object 1,wrapvalue(object angle y(1)+0.1)
yrotate object 2,wrapvalue(object angle y(2)-0.1)
mc = mouseclick()
if mc > 0 and last + 500 < timer()
if mc = 1 `Toggle Red
toggle1 = -toggle1
if toggle1 = 1
set object specular 1,rgb(255,0,0)
set object diffuse 1, rgb(255,0,0)
set object emissive 1,rgb(255,0,0)
set object ambience 1,rgb(255,0,0)
spr = 2
else
set object specular 1,rgb(255,255,255)
set object diffuse 1, rgb(255,255,255)
set object emissive 1,rgb(255,255,255)
set object ambience 1,rgb(255,255,255)
spr = 1
endif
endif
if mc = 2 `Toggle Alpha
toggle2 = -toggle2
if toggle2 = -1
set alpha mapping on 1,100.0
else
set alpha mapping on 1,50.0
endif
endif
last = timer()
endif
set cursor 0,0
print "LMB = Toggle Red (",toggle1,")"
print "RMB = Toggle Alpha (",toggle2,")"
sprite 1,mousex(),mousey(),spr
sync
loop
otherwise, depending on the effect, frequency and variey, pre-rendering "colored" textures might be the way to go.
Virtual Nomad @ California, USA . DBPro V7.7 . Matrix1Utils 05.27.12
AMD Phenomâ„¢ X4 9750 Quad-Core @ 2.4 GHz . 8 GB PC2-6400 RAM
ATI Radeon HD 3650 @ 512 MB . Vista Home Premium 64 Bit