sync on
sync rate 0
LM start
load image "texture.bmp", 1
load image "detail.tga", 2
make object terrain 1 ` create the terrain object
set terrain heightmap 1, "map.bmp" ` set the heightmap
set terrain scale 1, 3, 0.1, 3 ` set the scale
set terrain split 1, 16 ` split value by 16 * 16
set terrain tiling 1, 4 ` detail map tiling
set terrain light 1, 1, -0.25, 0, 1, 1, 0.78, 0.5 ` light - xdir, ydir, zdir, red, green, blue, intensity
set terrain texture 1, 1, 2 ` base and detail texture
build terrain 1 ` finally build the terrain
position object 1,-500,-15,-100
make object cube 2,30
position object 2,15,0,10
LM Add Collision Object 1
LM Add Collision Object 2
LM Build collision Data
LM Add Light Map Object 1
LM Add Light Map Object 2
LM Set Blend Mode 5
LM Boost Curved Surface Quality -1,2.0
LM Add Point Light 0,50,-30,500,rnd(100)/100.0,rnd(100)/100.0,rnd(100)/100.0
LM Build Light Maps Thread 1024,2.0,1
do
if downkey()=1
move camera -1
endif
if upkey()=1
move camera 1
endif
if rightkey()=1
turn camera right 1
endif
if leftkey()=1
turn camera left 1
endif
sync
loop
I cannot get the dark lights to lightmap this level. If I use .dbo file it works but if I save the terrain out to a .dbo file and load it back in it still dont work