Hi there. Have a look to this piece of code.Change the light range to cero and see the difference...it glows even with no light at all. I hope it can help.
rem -----------------------------------------------------
rem CREATING A GLOWING TEXTURE FOR NO LIGHTS SCENES.
rem -----------------------------------------------------
autocam off
sync on
`we turn off ambient light and light 0, and make a light 1
hide light 0:set ambient light 0
make light 1:set light range 1,250
`-------------------------------------------------------------------
`we make two textures for the glowing box ,one black & white and the other
`just red to get de this effect
rem image 1
ink rgb(255,0,0),1:box 0,0,38,38
get image 1,0,0,38,38
rem image 2
ink rgb(0,0,0),1:box 0,0,38,38
ink rgb(255,255,255),1
for i= 1 to 15
ellipse 18,18,i,i
next i
ink rgb(0,0,0),1
box 0,17,38,20
box 17,0,20,38
get image 2,0,0,38,38,1
make memblock from image 1,2
make bitmap from memblock 1,1
set current bitmap 1
blur bitmap 1,6
get image 2,0,0,38,38,1
paste image 2,0,0
blur bitmap 1,6
get image 2,0,0,38,38,1
delete bitmap 1
delete memblock 1
`image for the floor
ink rgb(20,80,20),1
box 0,0,50,50
ink rgb(25,9,25),1
box 10,10,40,40
get image 3,0,0,50,50,1
`--------------------------------------------------------------------
`glowing box
make object box 1,30,30,30:position object 1,150,15,30
texture object 1,2
set light mapping on 1,1
`second box
make object box 2,20,20,20:position object 2,-40,10,30
color object 2,rgb(255,255,0)
`floor
make matrix 1,500,500,50,50
position matrix 1,-150,0,-150
prepare matrix texture 1,3,3,3
position camera 250,70,-150
point camera 50,0,0
p#=-240
do
color backdrop rgb(0,0,0)
p#=p#+0.2
if p#>500 then p#=-240
position light 1,p#,30,40
rem here we make the glow effect just modifying the emissive value of the object
a#=a#+0.1
if a#>5000 then a#=0
set object emissive 1,rgb(a#*3,0,0)
sync
loop
cheers
I'm not a grumpy grandpa
