Skip to main content
gamedev.net
🔒 Locked

d3d matrix

Started by Trugath 0 replies 400+ views
Original Post
Trugath
Trugath
Ive been having big problems getting my scene and object matrix''s set up. i create the scene fine but when i blit the surface the objects arn''t there. i beleave i have mis oriented the camera and/or habe the objects in the scene placed wrongly. is there anyplace i can get good information on matrix''s becouse all the ones i have read allready are vary vauge and dont explain what each value in the matrix does apart from _43. ta, sorry im a bit of a newbie at this. ---------- ---Trugath
3dModelMan
3dModelMan
If you '#define D3D_OVERLOADS' right at the beginning of your code you will be able to address matrices in M(row, col) fashion.

A Direct3d matrix is a 4x4 matrix thus:

| Xvector.X, Xvector.Y, Xvector.Z, 0 |
| Yvector.X, Yvector.Y, Yvector.Z, 0 |
| Zvector.X, Zvector.Y, Zvector.Z, 0 |
| Xposition, Yposition, Zposition, 1 |

The three vectors describe the direction of each axis.

Cheers

Matt





Edited by - 3dmodelman on October 18, 2000 2:47:15 PM

Topic Locked

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

Sign in to reply to this topic.