Hello

I have an advanced terrain problem. If you look at the attached pic, the terrain repeats itself 4 times. I haven't a clue why! I load up a heightmap from the newton demos and it works fine.
Code:
sync on:sync rate 60
autocam off
hide mouse
create_terrain( 1, "media\maps\map001.bmp", "media\maps\texture001.jpg", "media\maps\detail.tga" )
do
camera( 20.0, 50.0 )
update terrain
sync
loop
function camera( spd#, sens# )
if upkey()
move camera spd#
endif
if downkey()
move camera -spd#
endif
yrotate camera (camera angle y() + ( ( sens#/ 60.0 ) * mousemovex() ) )
xrotate camera (camera angle x() + ( ( sens#/ 60.0 ) * mousemovey() ) )
endfunction
function create_terrain( id, file$, base$, detail$ )
make object terrain id
set terrain heightmap id, file$
set terrain scale id, 3, 0.6, 3
set terrain split id, 8
set terrain tiling id, 4
base = free_image()
load image base$, base
detail = free_image()
load image detail$, detail
set terrain texture id, base, detail
build terrain id
endfunction
function free_image()
for i = 1 to 20000
if image exist( i ) = 0
col = i
exit
endif
next i
endfunction col
If anybody can help out that would be great! And i know... my texturing is horrid
Thanks
Windows 7 32-Bit Home Premium Intel Pentium Dual-Core @ 1.46Ghz 2038mb RAM
