Ok. Now that we have that settled. is there any way to get rid of the seams such as the seams in this picture circled in red when i use set matrix trim, smooth out the matrix, and control the X, Y, and Z size of the matrix, with a variable?
New code:
autocam off
sync on
hide mouse
x#=1191
z#=198
Load image "heightmap.bmp",1
load image "terrain.jpg",2
make matrix 1,1500,1500,100,100
prepare matrix texture 1,2,100,100
paste image 1,0,0
for x=0 to 100
for y=0 to 100
PixelBrightness#=rgbr(point(x,y))
set matrix height 1,x,y,PixelBrightness#
next x
next y
Rem Whole Matrix Texture
tc=1
for z=99 to 0 step -1
x=0
while x<=99
set matrix tile 1,x,z,tc
inc tc : inc x
endwhile
next z
set matrix trim 1, 2, 2
Update matrix 1
do
set cursor 0,0
print screen fps()
if upkey()=1 THEN x#=NEWXVALUE(x#,a#,0.3):z#=NEWZVALUE(z#,a#,0.3)
if downkey()=1 THEN x#=NEWXVALUE(x#,a#,-0.3):z#=NEWZVALUE(z#,a#,-0.3)
a#=wrapvalue(a#+mousemovex()/2)
cam#=wrapvalue(cam#+mousemovey()/2)
rotate camera cam#,a#,0
y#=get ground height(1,x#,z#)
position camera x#,y#+5,z#
sync
loop
CHECK OUT SOME MUSIC FROM MY NEW TECHNO CD! TECHNOKINESIS
http://www.youtube.com/watch?v=4a8KedfgVv0
ALSO, CHECK OUT MY NEW TECHNO CD AT Amazon.com!