Sorry I didn't test that. Here's the working code...
sync on
sync rate 30
land_w = 9
land_d = 9
dim height_map(land_w,land_d)
make matrix 1,10,10,land_w,land_d
rem height map data
data 4,4,4,4,4,4,5,6,7,7
data 4,4,4,4,4,4,5,6,7,7
data 6,4,4,5,4,4,5,6,7,7
data 6,4,4,4,4,4,4,4,7,7
data 5,4,4,4,4,4,4,4,7,7
data 5,5,5,5,5,5,4,4,6,7
data 6,7,7,7,7,5,4,4,6,7
data 6,7,7,7,7,5,4,4,6,6
data 6,7,7,7,7,5,4,4,6,6
data 6,6,6,6,6,5,4,4,6,6
for z = 0 to land_w
for x = 0 to land_d
read height_map(x,z)
set matrix height 1,x,z,height_map(x,z)
next x
next z
update matrix 1
Do
n = wrapvalue(n+1)
position camera sin(n)*20,20,cos(n)*20
point camera 5,0,5
sync
Loop
OBese87 - bringing you the world of today, tomorrow.