Blender For Dummies. Jason van Gumster
Чтение книги онлайн.
Читать онлайн книгу Blender For Dummies - Jason van Gumster страница 31
FIGURE 3-1: The Transform Orientations menu from the 3D Viewport’s header (left) and when invoked as a pie menu by pressing the Comma (,) hotkey.
As Figure 3-1 shows, you can choose from six orientations: Global, Local, Normal, Gimbal, View, and Cursor. Working in any of these coordinate systems gives you absolute control of how your object lives in 3D space. Depending on how you’d like to transform your object, one orientation may be more appropriate than the others. Blender also gives you the ability to create custom orientations. That topic is slightly more advanced than I have room to cover in this book, but after you create a custom orientation, it also becomes available on the Transform Orientations menu.
This list describes details of the six possible orientations:
Global: You see this orientation of Blender’s base grid in the 3D Viewport. In many ways, the Global orientation is the primary orientation to which everything else relates, and it’s the base coordinate system described at the beginning of this section. The Z-axis, marked in blue, runs vertically in the space. The Y-axis is marked in green, moving along the front-to-back line, and the X-axis is in red, along the side-to-side line. The origin is located directly at the center of the grid.
Local: In addition to the Global orientation, each 3D object in Blender has a local coordinate system. The base of this system isn’t the same as the Global coordinate system’s base. Instead, this coordinate system is relative to the center point, or origin, of your object. The object origin is represented by the orange dot that’s usually located at the center of your 3D object. By default, when you first add a new object in Blender, its Local coordinate system is aligned to the Global axis, but after you start moving your object around, its Local coordinate system can differ greatly from the Global orientation.
Normal: The Normal orientation is a set of axes that’s perpendicular to some arbitrary plane. When working with just objects, this description doesn’t really apply, so the Normal orientation is exactly the same as the Local orientation. When you begin editing meshes, though, Normal orientation makes more sense because you have normals (imaginary lines that extend perpendicular to the surface of a triangle or plane) to work with. Blender also uses the Normal orientation for the local coordinate system of bones when working with armatures for animation. A nice way to think about the Normal orientation is the “more local than local” orientation. Chapter 4 covers editing meshes in more detail, and Chapter 12 covers working with armatures in depth.
Gimbal: When you rotate an object about its X-, Y-, and Z-axes, the angles about those axes are known as Euler (pronounced like oiler) angles. Unfortunately, a side effect of using Euler angles is that you have the possibility of running into gimbal lock. You run into this problem when one of your rotation axes matches another one. For example, if you rotate your object 90 degrees about its X-axis, then rotating around its Y-axis is the same as rotating about its Z-axis; mathematically speaking, they’re locked together, which can be a problem, especially when animating. This orientation mode in Blender helps you visualize where the axes are, so you can avoid gimbal lock.
View: The View orientation appears relative to how you’re looking at the 3D Viewport. Regardless of how you move around in a scene, you’re always looking down the Z-axis of the View coordinate system. The Y-axis is always vertical, and the X-axis is always horizontal in this orientation.
Cursor: In Chapter 2, I cover the use of Blender’s 3D cursor for adding objects and using it as a reference when modeling. You can also use the 3D cursor’s orientation as a reference to transform orientation by selecting this option from the Transform Orientations menu.
All these coordinate-system explanations can be (please forgive the pun) disorienting. An easy way to visualize this concept is to imagine that your body represents the Global coordinate system, and this book is a 3D object oriented in space. If you hold the book out in front of you and straighten your arms, you move the book away from you. It’s moving in the positive Y direction, both globally and locally. Now, if you twist the book to the right a few degrees and do the same thing, it still moves in the positive Y direction globally. However, in its local orientation, the book is moving in both a positive Y direction and a negative X direction. To move it in just the positive local Y direction, you move the book in the direction in which its spine is pointing.
To relate this concept to the View orientation, assume that your eyes are the View axis. If you look straight ahead and move the book up and down, you’re translating it along the View orientation’s Y-axis. Gimbal orientation would be if you rotate the book 90 degrees toward you, rotating about its X-axis. Then its Y- and Z-axes are locked together. For a clear reference, the 3D manipulator in Figure 3-2 shows the difference between the coordinate systems.
FIGURE 3-2: The Global, Local, Normal, Gimbal, View, and Cursor coordinate orientations.
The last object you select is the active object. If you’re using the Local, Gimbal, or Normal orientations and select multiple objects, the transform operations happen relative to the active object’s orientation.
You can quickly change the coordinate system you’re using by using the Comma (,) hotkey to invoke a Transform Orientation pie menu.
Transforming an Object by Using Object Gizmos
In Blender’s default configuration, there doesn’t appear to be a clear way to grab, scale, or rotate whatever you have selected. In other 3D applications, there are object gizmos, widgets, or manipulators that give you onscreen controls for transforming objects. Blender has them as well.
In all transform orientations under Blender, red represents the X-axis, green the Y, and blue the Z. If you think about the primary colors for light, a handy way to think of this is XYZ = RGB.Activating object gizmos
Figure