Here's what a sample code might look like for Advanced Terrain:
Land=1:Detail=2
load image "TEXTURE IMAGE",Land `<- LARGE TEXTURE=BETTER DETAIL
load image "DETAIL IMAGE",Detail `<- BEST TO HAVE A SEAMLESS IMAGE HERE
SizeX#=40
SizeY#=9
SizeZ#=40
make object terrain 1 `MAKE TERRAIN
set terrain heightmap 1, "HEIGHTMAP IMAGE" `HEIGHTMAP
set terrain scale 1,SizeX#,SizeY#,SizeZ# `SCALE TERRAIN
set terrain light 1,0,0,0,1.0,1.0,1.0,1.0 `TERRAIN LIGHT (xdir, ydir, zdir, red, green, blue, intensity)
set terrain split 1,16 `TERRAIN SPLIT (Number of limbs for culling)
set terrain tiling 1,10 `DETAIL MAP TILING
set terrain texture 1, Land, Detail `TEXTURE TERRAIN (1=BASE, 2=DETAIL)
build terrain 1
set object collision off 1
sync on:sync rate 25
set camera range 1,10000
Yoffset=100
Speed=10
position camera SizeX#/2,0,SizeZ#/2
do
control camera using arrowkeys 0,Speed,5
x#=camera position x():z#=camera position z()
y#=get terrain ground height(1,x#,z#,)+Yoffset
position camera x#,y#,z#
sync
Loop
Be sure your
heightmap width and height are
equal, and a
multiple of 2 (e.g., 128x128,) else your texture image may not be centered correctly. (I think I learned that from a post by GG himself.)
Keep in mind that Advanced Terrain objects do not react well to hardware lighting or hardware shadows. A Matrix object works great, but you're limited to one texture with no detailing.

666GO†O666
