@ Lost In Thought - Not exactly the problem i was pointing out, try:
sync on : sync rate 0
make object cube 1, 10
loopnum = 0
do
if loopnum = 0
gosub load_image
loopnum = 1
endif
rem dirty_terrain is for UPDATING the terrain, changing it.
gosub dirty_terrain
sync
loop
load_image:
load image "texture.bmp", 1
load image "detail.tga", 2
return
dirty_terrain:
delete object 1
make object terrain 1 ` create the terrain object
set terrain heightmap 1, "map.bmp" ` set the heightmap
set terrain scale 1, 3, 0.6, 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, 0.5, 0.39, 0.01 ` light - xdir, ydir, zdir, red, green, blue, intensity
set terrain texture 1, 1, 2 ` base and detail texture
build terrain 1
return
Sparring - Loved by many, Pefected by few.
"I'm going to live forever, or DIE IN THE ATTEMPT!!!"