Skip to main content
gamedev.net
🔒 Locked

Matrix representation?

Started by Seriema 6 replies 750+ views
Original Post
Seriema
Seriema
Hi there!! In OGL it''s row mayor. right? How does that make the translation matrix look like? 1 0 0 x 0 1 0 y 0 0 1 z 0 0 0 1 or 1 0 0 0 x 1 0 0 y 0 1 0 z 0 0 1 ? "No lies of sugar can sweeten the sournes of reality" }+TITANIUM+{ A.K.A. DXnewbie[onMIRC]
[ ThumbView: Adds thumbnail support for DDS, PCX, TGA and 16 other imagetypes for Windows XP Explorer. ] [ Chocolate peanuts: Brazilian recipe for home made c
Blivvy
Blivvy
The first one.
Seriema
Seriema
OpenGL expects the matrix as a float*

so how does
1 0 0 x
0 1 0 y
0 0 1 z
0 0 0 1

look like in an 1D array?

1 0 0 0 0 1 0 0 0 0 1 0 x y z 1

or what?

(because I''m having problem with that)

"No lies of sugar can sweeten the sournes of reality"

}+TITANIUM+{ A.K.A. DXnewbie[onMIRC]
[ ThumbView: Adds thumbnail support for DDS, PCX, TGA and 16 other imagetypes for Windows XP Explorer. ] [ Chocolate peanuts: Brazilian recipe for home made c
q2guy
q2guy
the opengl translation matrix is:

[ 1 0 0 Tx ] [ x ]
[ 0 1 0 Ty ] [ y ]
[ 0 0 1 Tz ] * [ z ] = (x+Tx, y+Ty, z+Tz, 1)
[ 0 0 0 1 ] [ 1 ]
q2guy
q2guy
uuu, bad ascii draw xD
Seriema
Seriema
eh... what?

how does it look in an array?

"No lies of sugar can sweeten the sournes of reality"

}+TITANIUM+{ A.K.A. DXnewbie[onMIRC]
[ ThumbView: Adds thumbnail support for DDS, PCX, TGA and 16 other imagetypes for Windows XP Explorer. ] [ Chocolate peanuts: Brazilian recipe for home made c
Tybalt
Tybalt
quote:
Original post by Seriema
OpenGL expects the matrix as a float*

so how does
1 0 0 x
0 1 0 y
0 0 1 z
0 0 0 1

look like in an 1D array?

1 0 0 0 0 1 0 0 0 0 1 0 x y z 1

or what?



that''s it.
Seriema
Seriema
thanx!!

"No lies of sugar can sweeten the sournes of reality"

}+TITANIUM+{ A.K.A. DXnewbie[onMIRC]
[ ThumbView: Adds thumbnail support for DDS, PCX, TGA and 16 other imagetypes for Windows XP Explorer. ] [ Chocolate peanuts: Brazilian recipe for home made c

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.