Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / [LOCKED] matrix help

Author
Message
Blobby 101
18
Years of Service
User Offline
Joined: 17th Jun 2006
Location: England, UK
Posted: 30th Jun 2006 20:26
this is probbebly a stupid question but iv'e only had dbp for a few days and i was wondering how to control the shape of a matrix. to me it's just a load of numbers!
thanks if anyone can help.

perfection is not achived, it is earned.
Wandering Swordsman
18
Years of Service
User Offline
Joined: 14th Jun 2006
Location:
Posted: 30th Jun 2006 21:24 Edited at: 30th Jun 2006 21:49
blobby 101 you've double topic posted.

DarkBASIC Pro Manual:
Quote: "Make Matrix:
This command will create a matrix to given wdith and depth segmented into grid square of a specified arrangement. A matrix can be thought of as a grid landscape with individual tiles that can be textured, raised and lowered to create a wide variety of surfaces. The matrix number and segment values should be integer values. The width and depth should be real numbers.

SYNTAX
MAKE MATRIX Matrix Number,Width,Height,XSegments,ZSegments"

Alright, I'm currantly working in DBC and still learning mostly. But I may be able to help.

- MAKE MATRIX <-- Command

- Matrix Number <-- The Number in this variable belongs to this Matrix, it allows you to have more than one Matrix and refer to a different Matrix. (Example: Matrix 1 is the floor Matrix 2 is the sky.)

Width <-- Width of the matrix, this controls how many grid squares are in each row. (It's the Grid's X value)

Height <-- Height controls how long the grid is column wise. (It's the Grid's Y value)

XSegments,ZSegments <-- I don't know what either of these are yet...


I'm still learning, and I maybe wrong.

I don’t know if DBP has this... DBC came with an interesting demonstration program called ‘Cave Runner’. It displayed the function of a Matrix pretty well.

When I dream,
I carry a sword in one hand,
a gun in the other...

Login to post a reply

Server time is: 2024-11-27 15:39:45
Your offset time is: 2024-11-27 15:39:45