# Camera and Matrices

This topic is 4356 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

-Newbee- Im trying to code a camera to move through a basic 3d world. Do i have to learn about "Matrices" to be able to rotate, etc..? Ive look at a few sites about Matrices and it seems very complicated.

##### Share on other sites
Wouldn't hurt to learn them considering 3D gfx are based on matrices. But you don't have to is you use the built in functions in GL. With DX you have to do a bit more Matrix math for moving, rotating, scaling. GL used functions you call with x,y,z mainly, where DX you have to have a matrix to send the data to and use x,y,z and then multiply the matrices together and make sure you know the order that they are to be done in or you will end up with a incorrect value... Just depends on what you are comfortable with. HTH

##### Share on other sites
To do just about ANYTHING in a 3D world, even to simply draw it with a static camera view you need to know Matrices and vectors. They're really not that complicated, its simple math, just more of it. Matrix based camera solutions do have some limitations (ie- Gimbal-lock) though, so more than likely you'll want to base your camera system (and possibly animation) on Quaternions eventualy.

##### Share on other sites
Quote:
 Original post by RavyneMatrix based camera solutions do have some limitations (ie- Gimbal-lock) though, so more than likely you'll want to base your camera system (and possibly animation) on Quaternions eventualy.
Although a common misconception, the above statement is false. It is Euler angles that impose these limitations, not matrices.

For the most part, matrix- and quaternion-based cameras are functionally equivalent.

1. 1
2. 2
Rutin
24
3. 3
4. 4
JoeJ
18
5. 5

• 14
• 22
• 11
• 11
• 9
• ### Forum Statistics

• Total Topics
631766
• Total Posts
3002221
×