M
M
Max Suprunenko2015-12-22 19:22:48
C++ / C#
Max Suprunenko, 2015-12-22 19:22:48

Why are matrices needed in Direct3D?

Why are matrices needed in Direct3D? Can they be replaced with arrays?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Marat, 2015-12-22
@msuprunenko

Number, vector and matrix are all arrays. Just the dimensions are different. A matrix can essentially be represented as a two-dimensional vector (two-dimensional array). Finite matrices can naturally be replaced by vectors (one-dimensional arrays) - for example, a 3x3 matrix is ​​​​replaced by a vector of 9 elements. But over time, you will get used to operating with matrices and they will be clearer for you.
And using a finite number of operations with matrices, you can perform rotation, scaling and other operations with shapes.
I recommend you read more about matrices. For many actions with them, the knowledge of high school is enough.
For example, habrahabr.ru/post/131931

K
kezel, 2015-12-23
@kezel

how then without matrices to calculate the perspective and position of the bones of the animation of the mesh? to sort through each vertex manually?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question