Adding local and relative transformations

Transformation can be divided into two types:

  • Local transformation: This type of transformation is only applicable to an object; it does not affect its child objects. For example, if two objects are in a parent-child relationship, then applying the local scale transformation will not scale the child object.
  • Relative transformation: This type of transformation is applied with respect to the parent of the object. Here, the transformation of the parent is propagated to the children, thereby affecting the geometrical vertex positions in the 3D space. For example, in this case, the scaling transformation to the parent object will scale all its children and their children.


    If an object does not have a parent ...

Get OpenGL ES 3.0 Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.