Game Development Community

Chapter 3, coordinate systems & translation

by Andre Poston · in Torque Game Engine · 02/03/2005 (1:39 pm) · 3 replies

A couple questions.

Figure 3.4. Isn't what "handed-ness" a coordinate system is generally determined by the positive direction of the X axis? So wouldn't this be a left handed system and not a right handed system like the caption states?

Pg 97, the first line states "Translation is the simplest of the transformations and the first that is applied to the object when transforming from object to world space". Arent transformations applied scale, rotation, translation?

Also on page 97 near the end of translation section the book states "...and the Z direction would be down". This is for a transformation of (3,9,7), so wouldn't it be translated 7 up?

#1
02/04/2005 (7:30 am)
Q1 :
At the end of this thread there is a discussion about the "handed-ness" of the pictures in the book. As you will see, the pictures are correct.

Q2 :
Translation is often made before rotation cause rotation is done according to the center of the coordinate system. If you rotate first, you'll actually be moving your shape from one point to the other X degrees around the desired axis. So what you do is : trasnlate to origin, apply scale ( in the axis you want ), then rotate, then translate it back to the desired location.

Q3 :
No, because the Z axis points down.
#2
02/04/2005 (8:09 am)
Q1: Thanks, I see how the "handed-ness" works out now

Q2: I understand what you are saying. The books states under the "full transformation" section on pg. 97 that "the transformations applied are scale...followed by rotation...and then finally translation". It then follows up with the caption for figure 3.17 "In the great majority of cases, the correct order is scaling, rotation, then transformation".

I understand that order is important and you can get different results based on order. So I am basically wondering if the book is incorrect when it says translation is applied first? Is the book incorrect when it says the correct order is scaling, rotation, then translation? Is the book just incorrect when it says the majority of cases go scale, rotation, translate?

It seems that the book says two mutually exclusive things and I am just trying to sort it out :)

Q3: I don't understand how the Z points down. Figure 3.4 shows it pointing up. Also on page 91 when describing the orientation of the system within Torque the author states "Don't forget that positive Z would be up, and negative Z would be down."
#3
02/05/2005 (1:00 pm)
Q3: It points down in one of the right-hand example. In Torque it points up :-)