This is a tutorial on making a simple matrix.
This was written for for dbc but it might work on pro.
First you have to hide the mouse,so enter:
Hide Mouse
Next you need to put
Backdrop On
so you can color,texture,use,etc... the backdrop
Next you need to turn the fog on so put this in your code:
Fog On
To color the backdrop and fog put
Fog color RGB(120,120,120)
Color Backdrop RGB(128,128,128)
you can change the color values to the way you like them.
Now to make the matrix:
Make matrix 1,10000,10000,20,20
the most important number there is the first one it sets the number for the matrix which we will call it by.
change the other values to see what they are used for.
Now we load the image of grass that we will use to texture the matix:
Load image "grass.bmp",1
the number after the name is what we will call the image by.
Before texturing the matrix we have to select the texture:
Prepare matrix texture 1,1,1,1
the most important number there is the first one it selects which image to use.
Change the other numbers to see what they are used for.
Now to texture the matrix enter:
Fill matrix 1,0,1
The first number says which matrix to texture
Lastly to randomize the matrix height enter:
randomize matrix 1,100
The first number says which matrix to randomize
The second number says for much.
Now the code you should have is:
Hide mouse
Backdrop on
Fog on
Fog distance 4000
Fog color RGB(120,120,120)
Color Backdrop RGB(128,128,128)
Rem make matrix
Make matrix 1,10000,10000,20,20
rem loads image
Load image "grass.bmp",1
rem prepare matrix
Prepare matrix texture 1,1,1,1
rem fills the matrix with image 1 and sets hight to 0
Fill matrix 1,0,1
rem Randomize the matrix
randomize matrix 1,125
The End
Please post comments and suggestions