Hi
i have been working on a project but now i have a problem i cant figure out how to fix i have tried everything but just wont do it.
The problem is that when i have loaded a bitmap for the matrix texture it also does textures the matrix the problem is that it also show the bitmap on the screen.
and i dunno how to fix it.
here is the code:
rem make the sync setup
sync on
sync rate 30
rem make matrix
make matrix 1,10000,10000,20,20
fog on
fog distance 230
fog color RGB(0,0,0)
rem texture matrix
load image "media/textures/Rocky_cliff_T.bmp", 1
prepare matrix texture 1,1,2,2
rem randomize matrix
randomize matrix 1,250
for x = 0 to 19
for z = 0 to 19
t= rnd(3)+1
set matrix tile 1,x,z,t
next z
next x
update matrix 1
rem the loop
do
rem object angle
cameraangley# = camera angle y()
rem make the camera control input
if upkey()=1 then move camera 10
if leftkey()=1 then yrotate camera wrapvalue(cameraangley#-5)
if rightkey()=1 then yrotate camera wrapvalue(cameraangley#+5)
if spacekey()=1
fill matrix 1,rnd(50),rnd(3)+1
randomize matrix 1,250
endif
x# = camera position x()
z# = camera position z()
position camera x#,250,z#
sync
loop
The Nerd