How do i exsample get a terrain made whit Magic world into Darkbasic as grund??
Please show me what to write in this script:
REM SET UP SYNC
sync on
sync rate 30
Backdrop on
hide mouse
Fog on
Fog distance 3000
Fog color RGB(128,128,128)
Color Backdrop RGB(128,128,128)
REM LOAD IMAGES
load image "grass09.bmp",1
REM CREATE MATRIX
make matrix 1,10000,10000,150,150
prepare matrix texture 1,1,2,2
randomize matrix 1,10
REM PLACE THE TEXTURE TILES ONTO THE MATRIX
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
REM UPDATE CHANGES TO THE MATRIX
update matrix 1
rem Load object
Load object "house.3ds",2
Loop object 2
position object 2,5000,Get Ground Height(1,5000,5500),5500
Rem Main loop
Do
set cursor 0,0
print X#
print Y#
print Z#
Rem Store Object angle
CameraAngleY# = Camera angle Y()
REM MAIN LOOP////////////////////////////////////////////////////////
Do
CamX# = Camera position X()
CamZ# = Camera position Z()
CamY# = Camera position Y()
OldCamAngleY# = CameraAngleY#
OldCamAngleX# = CameraAngleX#
CameraAngleY# = WrapValue(CameraAngleY#+MousemoveX()*0.2)
CameraAngleX# = WrapValue(CameraAngleX#+MousemoveY()*0.2)
REM CONTROL INPUT FOR CAMERA
If Upkey()=1
XTest# = Newxvalue(X#,CameraAngleY#,10)
ZTest# = Newzvalue(Z#,CameraAngleY#,10)
If XTest#>0 and XTest#0 and ZTest#0 and XTest#0 and ZTest#0 and XTest#0 and ZTest#0 and XTest#0 and ZTest#