the holy matrix4

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
roxaz
Posts: 575
Joined: Tue Jan 23, 2007 8:35 pm
Location: LT

the holy matrix4

Post by roxaz »

I would like to ask what a heck is that matrix4? Basicly i know what is it (at least i think so) but i dont know its structure.

lets say we have

Code: Select all

matrix4 mat;
mat.M;
what is that M thingie? what it does? what actual data it holds?

matrix is 4x4 array, what does it hold? lets say mat[0][0] or mat[3][1] or whatever, what those element hold? i gues they hold vectors (i read somewhere), but what vectors?

Too bad that irrWiki and api reference dont have detail description of matrix4, its a bit confusing while not much info is provided :)
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

The API has all documentation you need. The matrix fields are floats. And access to M is not allowed anymore.
roxaz
Posts: 575
Joined: Tue Jan 23, 2007 8:35 pm
Location: LT

Post by roxaz »

i know that M can not be accessed any more but that doesnt mean i dont want to know what is this thing. i figured out that matrix holds simply numbers just a minute ago (thx wikipedia). And finaly - yes, holy api rocks with its very detailed description:
Detailed Description
4x4 matrix. Mostly used as transformation matrix for 3d calculations.
Try to gues, am i familar with matrix stored data now? You are right, answer is no :)
I simply want to know what represents those numbers in matrix
jeffm2501
Posts: 9
Joined: Sat Sep 23, 2006 4:07 pm
Location: California, US
Contact:

Post by jeffm2501 »

a matrix is a mathematical structure that is used to apply various transformations to number sets, and is heavily used in 3d graphics.

you may want to read the wikipedia articles on them
http://en.wikipedia.org/wiki/Matrix_(mathematics)
JeffM2501
Saturn
Posts: 418
Joined: Mon Sep 25, 2006 5:58 pm

Post by Saturn »

roxaz, just grab yourself a good 3d computer graphics book, like this one. Matrices are a basic concept, it is futile to use a 3d engine without understanding them. And it is futile to explain them in a forum post, with better and more thorough explainations available.

If you've got a specific question, you can ask it here of course, but this is too broad a topic, really.
roxaz
Posts: 575
Joined: Tue Jan 23, 2007 8:35 pm
Location: LT

Post by roxaz »

jeffm2501 wrote:a matrix is a mathematical structure that is used to apply various transformations to number sets, and is heavily used in 3d graphics.

you may want to read the wikipedia articles on them
http://en.wikipedia.org/wiki/Matrix_(mathematics)
i know basicly what is the matrix, i read wiki about matrix before :P
Saturn wrote:roxaz, just grab yourself a good 3d computer graphics book, like this one. Matrices are a basic concept, it is futile to use a 3d engine without understanding them. And it is futile to explain them in a forum post, with better and more thorough explainations available.

If you've got a specific question, you can ask it here of course, but this is too broad a topic, really.
i like books, thanks :wink:
Post Reply