Alright, here are a bunch of commands you may find useful for 3D. It gets easier once you get the hang of it
X Axis= Width
Y Axis=Height
Z Axis=Depth
Quote: "load, use, manipulate, deform, and control 3D objects."
For object loading from a .x or .dbo or other supported file formats:
LOAD OBJECT
FIX OBJECT PIVOT <-- Useful if your model doesn't load in facing the right way... you can rotate it and then use this to make it face that way when rotated at 0,0,0... It's NOT a loading command.
and, some common and simple native DB object creation commands:
MAKE OBJECT BOX
MAKE OBJECT CUBE
MAKE OBJECT SPHERE
MAKE OBJECT CYLINDER
MAKE OBJECT PLAIN <-- that object actually has no depth
POSITION OBJECT
XROTATE OBJECT
YROTATE OBJECT
ZROTATE OBJECT
ROTATE OBJECT
MOVE OBJECT
TURN OBJECT LEFT
TURN OBJECT RIGHT
SCALE OBJECT
TEXTURE OBJECT <--- Use LOAD IMAGE, then you can put that image on your object.
And here's a simple example using some of those commands:
` Here, the program is set up.
Sync On
Sync Rate 60
` Autocam off stops the camera from jumping to a new object whenever
` you make one. You may be asking "Why turn that off?" now, but you'll
` be glad it's off later.
Autocam Off
`Make a cube of size 10. Since all sides of a cube are equal,
`there's no need to specify width, height, and depth.
`Also, ALL OBJECTS NEED A NUMBER! That way they can be told
`apart. This cube's number is #1. No two objects can have the same
`number.
Make Object Cube 1,10
`Put the cube at 0,0,0. It's put there by default,
`but I'll put it there using the POSITION OBJECT
`command for learning purposes.
`Put the camera high above the cube
POSITION CAMERA 0,500,0
`Make the camera look down at the cube
XRotate Camera 90
`Begin Loop
Do
`Some controls. Negative MOVE OBJECT makes the object move
`backwards by the specified amount (in this case 2)
if upkey() then MOVE OBJECT 1,2
if downkey() then MOVE OBJECT 1,-2
`Allow the object to turn by 3 units right or left
`depending on which key is pressed
if Leftkey() then turn object left 1,3
if Rightkey() then turn object right 1,3
`Refresh the screen!
Sync
`End Loop.
Loop
And little quote from something I wrote a while back titled "A Few Tips For Newcomers- Getting Started" to help understand the concept of the CAMERA used in 3D.
Quote: "
-The next thing you must understand is the camera. The user of the program only sees what the camera can see. so, you need to place the camera accordingly to where you want the user to be able to see. Say you wanted to make a cube spin. Well, you would first need to create this cube. Next, you want to make it spin, right? WRONG! What's the point of making a spinning cube if we can't see it? Yup. No point. So, you would now put the camera where it can see the cube, and then you would make something called a "loop". A loop is when you tell the program to do whatever is inside it OVER and OVER again. This can save LOADS of time. And in this loop, we would tell it to turn! That's it for our cube.
Commands needed to do the above
>Make Object Cube
>Position Camera
>Do
>One of these, any of them will do. The "Turn" ones are easiest:
Turn object left
Turn object right
Yrotate object
rotate object
>Loop
NOTE: Do and loop are related.
"
^ You can try and do that if you like
Quote: " I also need to learn how to randomize a matrix so that there are slight peaks "
MAKE MATRIX
PREPARE MATRIX TEXTURE <--- this one can seem tricky. The first # is the matrix number. The second # is the image to put on it. The third & fourth #'s denote the number of tiles that the image has on it. If you wanted to have some parts of the matrix be grass and others be dirt, you would need an image with different tiles on it.
RANDOMIZE MATRIX
UPDATE MATRIX
*******************************************************************
Feel free to post back with any questions, and don't forget to look at this:
http://forum.thegamecreators.com/?m=forum_view&t=115633&b=7