SlideShare a Scribd company logo
5
Most read
9
Most read
10
Most read
Graphics Libraries
Presented By:
Prachi Mishra
Contents
Overview
Common Graphics Libraries
PHIGS
Features of PHIGS
OpenGL
OpenGL Pipeline
Commands
Direct3D
How’s Direct3D Different?
Conclusion
References
03
04
05
06
07
08
09
14
15
16
17
Overview
• Today 3D graphics tools provide new methods in engineering,
medicine, entertainment and technology
• These are selected from exhaustive online research
• Incorrect selection can lead to undesired results
• A graphics library is a software interface to graphics hardware
commonly called the APIs
• It provides a set of graphics commands and functions which can
specify primitive geometric models and their attributes to digitize
and display
Common Graphics Libraries
A graphics programmer is should be able to program in at least one of
the following:
• OpenGL
• Direct3D
• PHIGS (Programmer's Hierarchical Interactive Graphics System)
• GKS (Graphics Kernel System)
PHIGS (Programmer's Hierarchical Interactive
Graphics System)
• An API standard for rendering 3D computer graphics through 1980s
• Available as a standalone implementation like IBM’s GraPHIGS or
Sun’s SunPHIGS
• Became a standard by 1990s ( ANSI and ISO)
• Supports only the most basic 3D graphics, including basic geometry
and meshes
• A combination of features of PHIGS and power led to the rise
of OpenGL
Features of PHIGS
• Included a scene graph which is a data structure for storing logical
sequences
• Had a CSS (Centralized Structure Store) i.e. a database for storing
primitives and their attributes
• CSSes were shared under workstations to give views
• Simple working:
Model built into CSS Workstation created and opened  Model
connected
OpenGL (Open Graphics Library)
• Most widely adopted graphics API
• Easy to use, well documented
• Cross platform and cross language
• Everything is primitive (can accept only simple shapes and sizes)
• Largely built on C but can be used in most programming languages
OpenGL Graphics Pipeline
void display(void)
{
int x, y;
//a. generate a random point
x = rand() %Width;
y = rand() % Height;
//b. specify a drawing color: red
glColor3f(1, 0, 0);
//c. specify to draw a point
glBegin(GL_POINTS);
glVertex2i (x,y);
glEnd();
//d. start drawing
glFlush();
}
Basic Commands for Drawing and Shape
void drawtriangle(float *v1, float *v2, float *v3)
{
glBegin(GL_TRIANGLES);
glVertex3fv(v1);
glVertex3fv(v2);
glVertex3fv(v3);
glEnd();
}
Commands for Transformation
glPushMatrix();
glLoadIdentity ();
glRotatef (alpha, 0.0, 0.0, 1.0);
drawArm (O, A);
glTranslatef (A[0], A[1], 0.0);
glRotatef (beta, 0.0, 0.0, 1.0);
glTranslatef (-A[0], -A[1], 0.0);
drawArm (A, B);
glPopMatrix();
Viewing
static void
reshape(int w, int h)
{
//a.specify modeling
coordinates
glMatrixMode
(GL_PROJECTION);
glLoadIdentity ();
glOrtho(left, right,
bottom, top, new,
far);
}
Color and Lighting
• Different colors for different vertices of the model can be
specified
• Light sources can be put to give different colors at different
positions in the environment, so the model can have overall
brightness, dull reflections, and/or shiny spots
• Lighting can be achieved by calculating the color of a pixel
• The normal of the pixel, the position of the viewer, and the
colors and positions of the light sources inherently decide
the lighting
Transparency
▪ Used for transparent objects by implementing transmission
coefficients for overlapping objects
▪ A final pixel’s R,G or B value depends on the blending of the
corresponding R, G, or B values of the pixels in the
overlapping objects through the transmission coefficients:
Iλ = a1Iλ1 + a2 Iλ2, where λ is R, G, or B; Iλ the blended color
component, a1 the transmission coefficient of the pixel in
the first object, and Iλ1 the color of the first object.
Direct3D
• Graphics API for Microsoft Windows
• Used to render 3D applications where performance is important
like gaming environments
• Implemented onWindows family of operating systems
• Also on embedded versions of Xbox family of video game
consoles
How’s Direct3D Different?
▪ Portability – OpenGL is cross platform while Direct3D is Windows
centric
▪ User Functionality – Direct3D is 3D hardware interface while
OpenGL is 3D rendering system that could be hardware accelerated
▪ Performance – Direct3D is more suitable when performance is
considered because of lighter codes
▪ Users/Applications – OpenGL has always seen more number of
users. Direct3D is mostly used for computer games
Graphics Libraries
References
▪ http://www.opengl.org
▪ http://mohammadshakergtr.wordpress.com/
▪ http://graphics.wikia.com/wiki/Direct3D_vs._OpenGL
▪ http://slideshare.net/OpenGL_Basics
▪ https://ilias.fhv.at/goto_ilias_fhv_at_file_225344_download
.html

More Related Content

PDF
Wearable Computing and Human Computer Interfaces
PPTX
Android architecture
PPTX
Bluetooth Chat Application.pptx
PPTX
5G Technology
PPTX
ppt based on android technology with great animations
PDF
Android history
PPTX
Introduction to IoT (Internet of Things)
PPT
Introduction to Android
Wearable Computing and Human Computer Interfaces
Android architecture
Bluetooth Chat Application.pptx
5G Technology
ppt based on android technology with great animations
Android history
Introduction to IoT (Internet of Things)
Introduction to Android

What's hot (20)

PPTX
ppt project pk.pptx
PDF
Digital Disruption in the Water Utility Value Chain
PPTX
User account (Windows)
PPT
Windows V/S Linux OS - Comparison
PPTX
Basic android-ppt
PPTX
Intro to software development
PDF
The internet of things.pptx
PPTX
Presentation on modern smart watch
PPTX
Mobile operating system
PPTX
Computer Programming Overview
PPTX
Enterprise, Architecture and IoT
PPTX
Emerging trends in computer science and related technologies
PPT
Raspberrypi best ppt
PPT
Internet of Things.
PPTX
Internet of things (iot)
PPTX
Android vs iOS
PPTX
Mesh IoT Networks Explained
PPT
Gui Layout Presentation
PPTX
Digital jewellery
PPT
Gi fi Technology
ppt project pk.pptx
Digital Disruption in the Water Utility Value Chain
User account (Windows)
Windows V/S Linux OS - Comparison
Basic android-ppt
Intro to software development
The internet of things.pptx
Presentation on modern smart watch
Mobile operating system
Computer Programming Overview
Enterprise, Architecture and IoT
Emerging trends in computer science and related technologies
Raspberrypi best ppt
Internet of Things.
Internet of things (iot)
Android vs iOS
Mesh IoT Networks Explained
Gui Layout Presentation
Digital jewellery
Gi fi Technology
Ad

Viewers also liked (20)

KEY
Core Graphics & Core Animation
PDF
Drawing with Quartz on iOS
PDF
Starting Core Animation
PDF
Creating Container View Controllers
PDF
Core Animation
PDF
Building Modern Audio Apps with AVAudioEngine
PDF
Mastering Media with AV Foundation
PPT
If then vb2010
PPT
Rocking slideshow
PPTX
Basketball
PPTX
Jocelyn power point
PDF
احترف صيانة الكمبيوتر
PPT
الإنترنت في خدمة الباحثين
PDF
Master Video with AV Foundation
PPT
تصميم مواقع
PDF
Composing and Editing Media with AV Foundation
KEY
Animation in iOS
PPTX
20 iOS developer interview questions
PPTX
iOS Developer Interview Questions
PDF
كتاب تعلم Html5 css3
Core Graphics & Core Animation
Drawing with Quartz on iOS
Starting Core Animation
Creating Container View Controllers
Core Animation
Building Modern Audio Apps with AVAudioEngine
Mastering Media with AV Foundation
If then vb2010
Rocking slideshow
Basketball
Jocelyn power point
احترف صيانة الكمبيوتر
الإنترنت في خدمة الباحثين
Master Video with AV Foundation
تصميم مواقع
Composing and Editing Media with AV Foundation
Animation in iOS
20 iOS developer interview questions
iOS Developer Interview Questions
كتاب تعلم Html5 css3
Ad

Similar to Graphics Libraries (20)

PPTX
Slideshare
PPTX
Cgp lecture2 graphics_standard, opengl
PDF
Bouncing ball content management system project report.pdf
PDF
CG3_ch3+ch4computergraphicsbreesenhan.pdf
PPTX
2D graphics
DOC
Data structures graphics library in computer graphics.
PDF
1 introduction computer graphics
DOCX
Computer graphics workbook
PDF
Open gl
PPT
CS 354 Introduction
PDF
Opengl basics
PPT
Programming with OpenGL
PPT
Advanced Graphics Workshop - GFX2011
PPT
01 first
PPTX
PDF
PPTX
3 CG_U1_P2_PPT_3 OpenGL.pptx
PPT
SIGGRAPH Asia 2008 Modern OpenGL
PDF
Tictactoe game management system project report.pdf
PPTX
What is OpenGL ?
Slideshare
Cgp lecture2 graphics_standard, opengl
Bouncing ball content management system project report.pdf
CG3_ch3+ch4computergraphicsbreesenhan.pdf
2D graphics
Data structures graphics library in computer graphics.
1 introduction computer graphics
Computer graphics workbook
Open gl
CS 354 Introduction
Opengl basics
Programming with OpenGL
Advanced Graphics Workshop - GFX2011
01 first
3 CG_U1_P2_PPT_3 OpenGL.pptx
SIGGRAPH Asia 2008 Modern OpenGL
Tictactoe game management system project report.pdf
What is OpenGL ?

Recently uploaded (20)

PDF
Benefits_of_Cast_Aluminium_Doors_Presentation.pdf
PPTX
Special finishes, classification and types, explanation
PPTX
12. Community Pharmacy and How to organize it
PDF
Design Thinking - Module 1 - Introduction To Design Thinking - Dr. Rohan Dasg...
PPT
UNIT I- Yarn, types, explanation, process
PDF
Trusted Executive Protection Services in Ontario — Discreet & Professional.pdf
PDF
Key Trends in Website Development 2025 | B3AITS - Bow & 3 Arrows IT Solutions
PPTX
artificialintelligencedata driven analytics23.pptx
PPT
Package Design Design Kit 20100009 PWM IC by Bee Technologies
PPTX
6- Architecture design complete (1).pptx
PPT
pump pump is a mechanism that is used to transfer a liquid from one place to ...
DOCX
actividad 20% informatica microsoft project
PDF
Interior Structure and Construction A1 NGYANQI
PPTX
AC-Unit1.pptx CRYPTOGRAPHIC NNNNFOR ALL
PPTX
DOC-20250430-WA0014._20250714_235747_0000.pptx
PDF
SEVA- Fashion designing-Presentation.pdf
PDF
Africa 2025 - Prospects and Challenges first edition.pdf
DOCX
The story of the first moon landing.docx
PPTX
building Planning Overview for step wise design.pptx
PDF
Urban Design Final Project-Site Analysis
Benefits_of_Cast_Aluminium_Doors_Presentation.pdf
Special finishes, classification and types, explanation
12. Community Pharmacy and How to organize it
Design Thinking - Module 1 - Introduction To Design Thinking - Dr. Rohan Dasg...
UNIT I- Yarn, types, explanation, process
Trusted Executive Protection Services in Ontario — Discreet & Professional.pdf
Key Trends in Website Development 2025 | B3AITS - Bow & 3 Arrows IT Solutions
artificialintelligencedata driven analytics23.pptx
Package Design Design Kit 20100009 PWM IC by Bee Technologies
6- Architecture design complete (1).pptx
pump pump is a mechanism that is used to transfer a liquid from one place to ...
actividad 20% informatica microsoft project
Interior Structure and Construction A1 NGYANQI
AC-Unit1.pptx CRYPTOGRAPHIC NNNNFOR ALL
DOC-20250430-WA0014._20250714_235747_0000.pptx
SEVA- Fashion designing-Presentation.pdf
Africa 2025 - Prospects and Challenges first edition.pdf
The story of the first moon landing.docx
building Planning Overview for step wise design.pptx
Urban Design Final Project-Site Analysis

Graphics Libraries

  • 2. Contents Overview Common Graphics Libraries PHIGS Features of PHIGS OpenGL OpenGL Pipeline Commands Direct3D How’s Direct3D Different? Conclusion References 03 04 05 06 07 08 09 14 15 16 17
  • 3. Overview • Today 3D graphics tools provide new methods in engineering, medicine, entertainment and technology • These are selected from exhaustive online research • Incorrect selection can lead to undesired results • A graphics library is a software interface to graphics hardware commonly called the APIs • It provides a set of graphics commands and functions which can specify primitive geometric models and their attributes to digitize and display
  • 4. Common Graphics Libraries A graphics programmer is should be able to program in at least one of the following: • OpenGL • Direct3D • PHIGS (Programmer's Hierarchical Interactive Graphics System) • GKS (Graphics Kernel System)
  • 5. PHIGS (Programmer's Hierarchical Interactive Graphics System) • An API standard for rendering 3D computer graphics through 1980s • Available as a standalone implementation like IBM’s GraPHIGS or Sun’s SunPHIGS • Became a standard by 1990s ( ANSI and ISO) • Supports only the most basic 3D graphics, including basic geometry and meshes • A combination of features of PHIGS and power led to the rise of OpenGL
  • 6. Features of PHIGS • Included a scene graph which is a data structure for storing logical sequences • Had a CSS (Centralized Structure Store) i.e. a database for storing primitives and their attributes • CSSes were shared under workstations to give views • Simple working: Model built into CSS Workstation created and opened  Model connected
  • 7. OpenGL (Open Graphics Library) • Most widely adopted graphics API • Easy to use, well documented • Cross platform and cross language • Everything is primitive (can accept only simple shapes and sizes) • Largely built on C but can be used in most programming languages
  • 9. void display(void) { int x, y; //a. generate a random point x = rand() %Width; y = rand() % Height; //b. specify a drawing color: red glColor3f(1, 0, 0); //c. specify to draw a point glBegin(GL_POINTS); glVertex2i (x,y); glEnd(); //d. start drawing glFlush(); } Basic Commands for Drawing and Shape void drawtriangle(float *v1, float *v2, float *v3) { glBegin(GL_TRIANGLES); glVertex3fv(v1); glVertex3fv(v2); glVertex3fv(v3); glEnd(); }
  • 10. Commands for Transformation glPushMatrix(); glLoadIdentity (); glRotatef (alpha, 0.0, 0.0, 1.0); drawArm (O, A); glTranslatef (A[0], A[1], 0.0); glRotatef (beta, 0.0, 0.0, 1.0); glTranslatef (-A[0], -A[1], 0.0); drawArm (A, B); glPopMatrix();
  • 11. Viewing static void reshape(int w, int h) { //a.specify modeling coordinates glMatrixMode (GL_PROJECTION); glLoadIdentity (); glOrtho(left, right, bottom, top, new, far); }
  • 12. Color and Lighting • Different colors for different vertices of the model can be specified • Light sources can be put to give different colors at different positions in the environment, so the model can have overall brightness, dull reflections, and/or shiny spots • Lighting can be achieved by calculating the color of a pixel • The normal of the pixel, the position of the viewer, and the colors and positions of the light sources inherently decide the lighting
  • 13. Transparency ▪ Used for transparent objects by implementing transmission coefficients for overlapping objects ▪ A final pixel’s R,G or B value depends on the blending of the corresponding R, G, or B values of the pixels in the overlapping objects through the transmission coefficients: Iλ = a1Iλ1 + a2 Iλ2, where λ is R, G, or B; Iλ the blended color component, a1 the transmission coefficient of the pixel in the first object, and Iλ1 the color of the first object.
  • 14. Direct3D • Graphics API for Microsoft Windows • Used to render 3D applications where performance is important like gaming environments • Implemented onWindows family of operating systems • Also on embedded versions of Xbox family of video game consoles
  • 15. How’s Direct3D Different? ▪ Portability – OpenGL is cross platform while Direct3D is Windows centric ▪ User Functionality – Direct3D is 3D hardware interface while OpenGL is 3D rendering system that could be hardware accelerated ▪ Performance – Direct3D is more suitable when performance is considered because of lighter codes ▪ Users/Applications – OpenGL has always seen more number of users. Direct3D is mostly used for computer games
  • 17. References ▪ http://www.opengl.org ▪ http://mohammadshakergtr.wordpress.com/ ▪ http://graphics.wikia.com/wiki/Direct3D_vs._OpenGL ▪ http://slideshare.net/OpenGL_Basics ▪ https://ilias.fhv.at/goto_ilias_fhv_at_file_225344_download .html