O'Reilly logo

OpenGL ES 3.0 Cookbook by Parminder Singh

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

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.

    Note

    If an object does not have a parent ...

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