We are independent & ad-supported. We may earn a commission for purchases made through our links.

Advertiser Disclosure

Our website is an independent, advertising-supported platform. We provide our content free of charge to our readers, and to keep it that way, we rely on revenue generated through advertisements and affiliate partnerships. This means that when you click on certain links on our site and make a purchase, we may earn a commission. Learn more.

How We Make Money

We sustain our operations through affiliate commissions and advertising. If you click on an affiliate link and make a purchase, we may receive a commission from the merchant at no additional cost to you. We also display advertisements on our website, which help generate revenue to support our work and keep our content free for readers. Our editorial team operates independently from our advertising and affiliate partnerships to ensure that our content remains unbiased and focused on providing you with the best information and recommendations based on thorough research and honest evaluations. To remain transparent, we’ve provided a list of our current affiliate partners here.

What Is an OpenGL® Projection?

By Eugene P.
Updated Feb 05, 2024
Our promise to you
WiseGeek is dedicated to creating trustworthy, high-quality content that always prioritizes transparency, integrity, and inclusivity above all else. Our ensure that our content creation and review process includes rigorous fact-checking, evidence-based, and continual updates to ensure accuracy and reliability.

Our Promise to you

Founded in 2002, our company has been a trusted resource for readers seeking informative and engaging content. Our dedication to quality remains unwavering—and will never change. We follow a strict editorial policy, ensuring that our content is authored by highly qualified professionals and edited by subject matter experts. This guarantees that everything we publish is objective, accurate, and trustworthy.

Over the years, we've refined our approach to cover a wide range of topics, providing readers with reliable and practical advice to enhance their knowledge and skills. That's why millions of readers turn to us each year. Join us in celebrating the joy of learning, guided by standards you can trust.

Editorial Standards

At WiseGeek, we are committed to creating content that you can trust. Our editorial process is designed to ensure that every piece of content we publish is accurate, reliable, and informative.

Our team of experienced writers and editors follows a strict set of guidelines to ensure the highest quality content. We conduct thorough research, fact-check all information, and rely on credible sources to back up our claims. Our content is reviewed by subject matter experts to ensure accuracy and clarity.

We believe in transparency and maintain editorial independence from our advertisers. Our team does not receive direct compensation from advertisers, allowing us to create unbiased content that prioritizes your interests.

An OpenGL® projection is the process and image resulting from the translation of three-dimensional (3D) objects to an aligned two-dimensional (2D) image that can be displayed on a screen. The word "projection" in computer graphics programming refers to the fact that 3D objects within a scene need to be mathematically moved, or projected, onto a virtual 2D surface so it can be shown on a flat display on a device. Although the entire sequence of events that take a 3D object and render it to a 2D surface can be called projection, the term also is more narrowly applied to the specific set of geometric transformations in the graphics pipeline that occurs as a step between other sets of transformations. The two specific types of OpenGL® projection modes that are available to programmers are perspective and orthographic.

The challenge of creating an OpenGL® projection is to take the data that comprise all the objects in a given scene and adjust it so that, when shown on a screen, the objects are consistent with the projection mode, viewing volume and virtual camera settings. The viewing volume is the visible area of a scene from the location of the viewer within the scene, or the eye position. Six numbers define the viewing volume, including the right, left, top and bottom distances from a virtual center of the viewing frame. Additionally, two values known as the near and far planes define the depth of the viewing volume. This volume defines what objects will be projected, while all other objects outside the volume will be ignored, or clipped so the non-visible portions are not evaluated.

The first mode of OpenGL® projection that can be employed is known as orthographic projection. In this mode, the coordinates of the objects within a scene are not adjusted for their distance from the viewer, or perspective. This means all objects are drawn in the same size no matter the distance from the viewer. This OpenGL® projection mode is most often used in 3D modeling programs, engineering design programs and applications that use 3D polygons to create 2D composite images and do not require accurate perspective.

The more commonly used OpenGL® projection mode is known as perspective projection. In perspective projection mode, the objects in a scene are scaled and positioned according to their distance from the viewer. This means objects that are more distant appear smaller. It also means that objects in the scene are adjusted so they slowly converge at a point on the viewing horizon known as the vanishing point. Perspective projection closely models how the real world appears and is used to create realistic renderings as opposed to technical ones.

WiseGeek is dedicated to providing accurate and trustworthy information. We carefully select reputable sources and employ a rigorous fact-checking process to maintain the highest standards. To learn more about our commitment to accuracy, read our editorial process.

Discussion Comments

WiseGeek, in your inbox

Our latest articles, guides, and more, delivered daily.

WiseGeek, in your inbox

Our latest articles, guides, and more, delivered daily.