ホーム 暮らし Introduction to 3D Coordinate Systems - XYZ Axes and Right-Handed/Left-Handed Systems

Introduction to 3D Coordinate Systems - XYZ Axes and Right-Handed/Left-Handed Systems

三浦 拓海 三浦 拓海 • 更新: • 公開: • 読了約 8 分
目次

I have summarized 3D coordinate systems.

1. Introduction

n9d3bb1216705

In 3D software, game engines, and robot development environments, position and orientation are represented by three axes: X, Y, and Z.

However, the usage of these axes varies depending on the environment.

If you convert models or poses without considering these differences, they may end up facing sideways, or be flipped vertically or horizontally.

In this article, I will organize the conditions that determine a coordinate system and the differences between major 3D environment coordinate systems.

2. Information needed to determine a 3D coordinate system

2-1. Forward, Up, and Handedness

To organize the orientation and handedness of a 3D coordinate system, the following three pieces of information are required.

Once the two directions of forward and up are determined, the remaining axis becomes the left-right direction. Whether the positive direction of that axis is right or left is determined by the right-handed or left-handed system.


A "right-handed system" and a "left-handed system" are rules that define how the three axes are combined. The two coordinate systems are mirror images of each other; if you keep the forward and up directions the same, the direction of the remaining left-right axis will be reversed.

For example, if +Z is forward and +Y is up, the remaining X-axis will be as follows:

The left and right referred to here are left and right as seen by a person standing at the origin and facing the forward direction.

2-2. Position

Specifying forward, up, and handedness determines the orientation of the 3D coordinate system's axes. However, it does not determine where it is placed in 3D space. To determine the
position as well, an origin that serves as a reference point is also necessary.

To place the position and orientation of a coordinate system within 3D space, the following four pieces of information are required.

2-3. Rotation

Each axis has not only a positive direction but also a "positive rotation direction".

The direction of rotation appears opposite depending on which side of the axis you view it from. Here, we assume viewing the positive direction of the axis from the origin side.

In a right-handed system, point your right thumb in the positive direction of the axis. The direction your fingers curl is the positive rotation direction. If you look from the origin in the same direction as your thumb, it will be clockwise.
In a left-handed system, because you use your left hand, it becomes counter-clockwise.

3. Coordinate Systems of Major 3D Environments

Here, we define "front" as the direction pointing from the model or object toward the front side.

Here, we have standardized the direction pointing from the model or object toward the front side as "front." However, the front direction is not always fixed across the entire software and varies depending on the camera, model, and view. In particular, the Three.js camera is -Z, and the general forward direction in Godot is also -Z. The front for Maya, Blender, FreeCAD, and Fusion is organized based on the model and the front view.



同じカテゴリの記事

三浦 拓海
コンテンツディレクター 三浦 拓海
プロフィールを見る →

映画と連続ドラマの公開情報を追う担当。配給会社のプレスシートと公式サイトの発表日を確認したうえで執筆します。

おすすめの関連記事