well i found the matrix smoothing one i use in my editor from red eye. Ill see if i can find tdboys matrix draper now.
Rem Smooth Matrix function
rem By ReD_eYe
sync on
sync rate 50
remstart Smooth_matrix function!
matnum=matrix number you want to smooth
tilex=number of tiles on x axis on that matrix(can be used to only smooth a small area
tilez=see above but for the z axis
times=the number of time you want to smooth the matrix(a value of 0 causes no smoothing)
remend
make matrix 1,1000,1000,100,100
randomize matrix 1,200
update matrix 1
do
center text 320,0,"Press Spacebar to Smooth Matrix"
center text 320,20,"This Matrix has been smoothed> "+str$(t)+" times"
control camera using arrowkeys 0,10,2
position camera camera position x(),250,camera position z()
if spacekey()=1 and press=0 then smooth_matrix(1,100,100,1) : press=1 : inc t
if spacekey()=0 then press=0
sync
loop
function smooth_matrix(matnum,tilex,tilez,times)
for multiple=1 to times
for x=1 to tilex-1
for z=1 to tilez-1
a=get matrix height(matnum,x-1,z+1)
b=get matrix height(matnum,x,z+1)
c=get matrix height(matnum,x+1,z+1)
d=get matrix height(matnum,x+1,z)
e=get matrix height(matnum,x+1,z-1)
f=get matrix height(matnum,x,z-1)
g=get matrix height(matnum,x-1,z-1)
h=get matrix height(matnum,x-1,z)
total=a+b+c+d+e+f+g+h
av#=total/8
set matrix height matnum,x,z,av#
next z
next x
next multiple
for x=0 to tilex
set matrix height matnum,x,0,get matrix height(matnum,x,1)
next x
for x=0 to tilex
set matrix height matnum,x,tilez,get matrix height(matnum,x,tilez-1)
next x
for z=0 to tilez
set matrix height matnum,0,z,get matrix height(matnum,1,z)
next z
for z=0 to tilez
set matrix height matnum,tilex,z,get matrix height(matnum,tilex-1,z)
next z
update matrix matnum
endfunction