Using this code:
MatXWidth = 5000
MatZWidth = 5000
MatSegX = 50
MatSegZ = 50
WorldRadius = 10000
centerx = matxwidth/2
centery = -1*worldradius
centerz = matzwidth/2
Make Matrix 1, MatXWidth, MatZWidth, MatSegX, MatSegZ
Set Matrix Wireframe on 1
position camera matxwidth, 350, matzwidth
point camera 0,0,0
for x = 0 to MatSegX
for z = 0 to MatSegZ
matnodex=(x)*(matxwidth/matsegx)
matnodez=(z)*(matzwidth/matsegz)
centdist = sqrt(abs(matnodex-centerx)^2+abs(centery)^2+abs(matnodez-centerz)^2)
adj=(abs(centdist)-worldradius)*-1
set matrix height 1, x, z, adj
Next z
Next x
update matrix 1
do
sync
loop
I generated the attached screenshot of a rounded matrix.
Intel Pentium 4, 3.4GHz, 1280MB RAM, NVidia Quadro FX3000/256MB, 240GB HD, XP Pro