O'Reilly logo

Away3D 3.6 Cookbook by Michael Ivanov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using Quaternion camera transformations for advanced image gallery viewing

Quaternion, in 3D graphics, is an alternative approach to transformations. Although they are harder to grasp than Axis or Euler angles and Matrix transformation, there are obvious advantages in using them in certain scenarios. We will not dive into any mathematical explanation of how Quaternion works as it is quite a complicated topic. Simply put, Quaternion allows us to interpolate from one transformation state into another in a smoother and shorter way using the spherical linear interpolation method (SLERP). Another advantage of Quaternions is low memory consumption. Matrix uses nine numbers to represent orientation, whereas the Quaternion needs only four.

Although the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required