What You'll See Today
What You'll See Today
1 1
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.
2
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+
Cross platform
In computing cross-platform software is computer software that is
implemented on multiple computing platforms.
3
History
OpenGL is managed by the non-profit organization,
Khronos Group.
44
OpenGL Geometric Primitives
All geometric primitives are specified by vertices
GL_LINES
GL_POLYGON
GL_LINE_STRIP GL_LINE_LOOP
GL_POINTS
GL_TRIANGLES
GL_QUADS
GL_QUAD_STRIP
GL_TRIANGLE_STRIP GL_TRIANGLE_FAN
55
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.
6
Working of OpenGL
"Plate 2" shows a depth−cued version of the same wireframe
scene.
7
Working of OpenGL
"Plate 3" shows an Antialiased version of the wireframe scene.
Antialiasing is a technique for reducing the jagged edges.
8
Aliased vs Anti-aliased
9
Working of OpenGL
"Plate 4" shows a flat−shaded, unlit version of the scene. The
objects in the scene are now shown as solid.
10
Working of OpenGL
"Plate 5" shows a lit, smooth−shaded version of the scene.
11
Working of OpenGL
"Plate 6" adds shadows to the previous version of the scene.
12
Working of OpenGL
"Plate 8" A close-up shot - the scene from a different viewpoint.
13
Working of OpenGL
"Plate 7" shows a motion−blurred object in the scene.
14
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.
15
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.
16
Thank you
17