fortuneanna.blogg.se

Transformation math
Transformation math





transformation math

The directions for the treasure map thus contains 3 vectors. You can think of vectors like directions on a treasure map: 'go left 10 steps, now go north 3 steps and go right 5 steps' here 'left' is the direction and '10 steps' is the magnitude of the vector. A vector has a direction and a magnitude (also known as its strength or length). In its most basic definition, vectors are directions and nothing more. If the subjects are difficult, try to understand them as much as you can and come back to this chapter later to review the concepts whenever you need them. The focus of this chapter is to give you a basic mathematical background in topics we will require later on. However, to fully understand transformations we first have to delve a bit deeper into vectors before discussing matrices. When discussing matrices, we'll have to make a small dive into some mathematics and for the more mathematically inclined readers I'll post additional resources for further reading. Matrices are very powerful mathematical constructs that seem scary at first, but once you'll grow accustomed to them they'll prove extremely useful. This doesn't mean we're going to talk about Kung Fu and a large digital artificial world.

transformation math

There are much better ways to transform an object and that's by using (multiple) matrix objects.

transformation math

We could try and make them move by changing their vertices and re-configuring their buffers each frame, but that's cumbersome and costs quite some processing power.

#Transformation math how to#

We now know how to create objects, color them and/or give them a detailed appearance using textures, but they're still not that interesting since they're all static objects. Transformations Getting-started/Transformations







Transformation math