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 / 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:52
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, maybe playing around with it could help?

When I dream,
I carry a sword in one hand,
a gun in the other...
Blobby 101
18
Years of Service
User Offline
Joined: 17th Jun 2006
Location: England, UK
Posted: 30th Jun 2006 22:05
thanks, sorry i didn't realise i had double posted and yeah i know cave runner, iv'e got dbc as well and am always playing around with the textures!

perfection is not achived, it is earned.
Cabe
18
Years of Service
User Offline
Joined: 30th Jun 2006
Location: Glasgow, Scotland
Posted: 30th Jun 2006 23:22
Quote: "XSegments,ZSegments <-- I don't know what either of these are yet..."


Thats how many rows or cells the matrix is made up of

ie, make matrix 100,100,2,2 will make a matrix 100 wide by 100 high and split into 4 50x50 boxes

make matrix 100,100,4,4 will have 16 boxes in the 100x100 matrix and so on

Login to post a reply

Server time is: 2024-11-26 17:44:05
Your offset time is: 2024-11-26 17:44:05