You are on page 1of 18

OPEN GRAPHICS LIBRARY

Anas Abdullah
OPENGL INTRODUCTION
 The OpenGL is a software interface to graphics
hardware. (The GL stands for Graphics Library.) It
allows you to create interactive programs that
produce color images of moving three−dimensional
objects.

 With OpenGL, you can control computer−graphics


technology to produce realistic pictures in
imaginative ways.
WHAT IS OPENGL?
 It is a software interface consists of about 150
distinct commands that you use to specify the
objects and operations needed to produce
interactive three−dimensional applications.

 OpenGL doesn’t provide high−level commands for


describing models of three−dimensional objects.
WHAT IS OPENGL?
 OpenGL is a Cross Language, Cross platform
Application Programming Interface(Api)

 Cross Language
 Open Graphic Library execute on any programming
language like C++, C, Java, CSharp, JavaScript etc.

 Cross platform
 In computing cross-platform software is computer
software that is implemented on multiple computing
platforms.
HISTORY
 Silicon Graphics Inc. Started developing in 1991
and released, First version January 1992

 Extensively used in the Field of

Computer-aided design(CAD), Virtual reality,


Scientific visualization, Information visualization,
Flight simulation and video games
HISTORY
 OpenGL is managed by the non-
profit organization, Khronos Group.

 it is designed to be implemented mostly or


entirely in hardware.

 The CPU (central processing unit) & GPU (graphics


processing unit)

 Used for 2D and 3D Vector graphics.


OPENGL API
 Open Graphics Library (OpenGL) is a cross-
language, cross-platform application
programming interface(API) for rendering 2D and
3D vector graphics.

 The API is typically used to interact with a graphics


processing unit (GPU), to achieve hardware-
accelerated rendering.
WORKING OF OPENGL
 Let’s take a look at the color plates they illustrate typical
uses of OpenGL.
 The following list describes in general terms how these
pictures were made.

"Plate 1" shows the entire scene displayed as a


wireframe model.
WORKING OF OPENGL

 "Plate 2" shows a depth−cued version of the same


wireframe scene.
WORKING OF OPENGL

"Plate 3" shows an Antialiased version of the wireframe scene.


Antialiasing is a technique for reducing the jagged edges.
ALIASED VS ANTI-ALIASED
WORKING OF OPENGL

"Plate 4" shows a flat−shaded, unlit version of the scene. The


objects in the scene are now shown as solid.
WORKING OF OPENGL

"Plate 5" shows a lit, smooth−shaded version of the scene.


WORKING OF OPENGL

"Plate 6" adds shadows to the previous version of the scene.


WORKING OF OPENGL

"Plate 7" shows a motion−blurred object in the scene.


WORKING OF OPENGL

"Plate 8" A close-up shot - the scene from a different viewpoint.


WORKING OF OPENGL

"Plate 9" brings back the use of fog, which was seen in "Plate
2," to show the presence of smoke particles in the air.
WORKING OF OPENGL

 "Plate 10" shows the depth−of−field effect, which simulates


the inability of a camera lens to maintain all objects in a
photographed scene in focus.

You might also like