Questions tagged [matrix]

A 2D array of numbers, symbols or expressions, arranged in rows and columns. Each row must have the same number of columns. The numbers, symbols or expressions themselves are called elements or entries.

A 2D array of numbers, symbols or expressions, arranged in rows and columns. Each row must have the same number of columns. The numbers, symbols or expressions themselves are called elements or entries.

603 questions
74
votes
3 answers

What is the correct order to multiply scale, rotation and translation matrices for a proper world matrix?

Assume DirectX as the platform, if that is important. (Pretty sure it isn't) Assuming I have a proper scale, rotation and translation matrix, in what order do I multiply them to result in a proper world matrix and why? By "proper", I mean "I could…
Narf the Mouse
  • 935
  • 2
  • 8
  • 8
29
votes
1 answer

Transform Matrix multiplication order

I am experiencing difficulties trying to figure out the correct multiplication order for a final transform matrix. I always get either strange movement or distorted geometry. My current model is explained below: For a single node my multiplication…
Colin Dumitru
  • 393
  • 1
  • 3
  • 5
8
votes
3 answers

Should I use a world matrix?

Image reference for the question: (image from the CG tutorial) The D3D9 API got us used to world matrices. However, if you use world matrices, then you have to do an extra matrix multiply in the shader (which ends up being the same for a whole lot…
bobobobo
  • 17,074
  • 10
  • 63
  • 96
1
vote
2 answers

Copying rotation between matrices

I have a transformed Matrix A and an another transformed Matrix B. How can I COPY the rotation of Matrix B to Matrix A?
user41711
1
vote
1 answer

How to Convert a Z Up Matrix to a Y Up Matrix?

My 3D program exports my vertex data and instancing matrixes in Z+ up format. I want to store them in my own data format as Y+ up. If given a Matrix4 describing a position with Z+ being up. How can I convert that to a Y+ up Matrix4? I know you can…
Alex
  • 155
  • 1
  • 7
0
votes
0 answers

Relationship between matrix storage order and matrix notation?

This is how I (possibly mistakenly) understand it. Please correct me if I am wrong. Assuming a 4x4 matrix composed of vectors v0 through v3 is stored in a one-dimensional array with indices [00] through [15]... Arranged by vector: { v0.x, v0.y,…