You'll have to divide the width and height of the heightmap up since matrices can only be so big.
some pseudo code:,1
create matrix xsize,ysize
xskip=image_width/xsize
yskip=image_height/ysize
dim Matrix(xsize,ysize)
multiplier=1
xloc=0
yloc=0
load bitmap "heightmap.bmp",1
for x=0 to image_width step xskip
for y=0 to image_height step yskip
Matrix(xloc,yloc)=point(x,y)
y=y+1
next y
x=x+1
next x
for x=0 to xsize
for y=0 to ysize
set matrix height 1,x,y,Matrix(x,y)*multiplier
next y
next x
Somethin like that.
Crazy Donut Productions, Current Project: Project Starbuks
Sony stole our name!
