PDA

View Full Version : Matrix representation



Erakis
11-12-2005, 10:22 AM
Hi,

Here is an OpenGL matrix representation (From OpenGL 1.2 Mason Woo):

[1, 0, 0, 0] <- X Components of Vectors
[0, 1, 0, 0] <- Y Components of Vectors
[0, 0, 1, 0] <- Z Components of Vectors
[0, 0, 0, 1] <- Perspective Vector ***
| | | |-- Translation Vector ***
| | |----- Z Axis Vector
| |-------- Y Axis Vector
|----------- X Axis VectorWhy some math Web sites interprete Translation vector as :


[1, 0, 0, 0] <- X Components of Vectors
[0, 1, 0, 0] <- Y Components of Vectors
[0, 0, 1, 0] <- Z Components of Vectors
[0, 0, 0, 1] <- Translation Vector ****
| | | |-- Perspective Vector ***
| | |----- Z Axis Vector
| |-------- Y Axis Vector
|----------- X Axis VectorIs there any difference between these two matrix ?

Thanks for you help.

11-13-2005, 01:14 AM
isnt one of them interpretations for the model matrix and another for the perspective matrix? you have 2 matrixes afaik

but just a wild guess im a noob sorry

Erakis
11-13-2005, 05:43 PM
isnt one of them interpretations for the model matrix and another for the perspective matrix?Really don't know ? This is my question ;)