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

Understanding the projection system in GLPI

In this recipe, we will understand two types of projection systems that are very commonly used in 3D graphics: perspective projection system and orthographic projection system:

  • Perspective projection system: This type of projection system creates a view that is similar to how our eyes view the objects. This means that the objects that are near to us will appear bigger when compared to the far off objects. This type of projection system uses a frustum-clipping region, as shown on the left-hand side of the next figure.

    In the GLPI framework, the Transform::TransformSetPerspective() function can be used to create a perspective view.

    • Syntax:
      void Transform::TransformSetPerspective( float fovy, float aspect_ratio, ...

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