Professional Documents
Culture Documents
1
1
Introduction
Introduction
Computer Graphics : It involves display manipulation and storage of pictures and experimental data for proper visualization using a computer. Typically graphics system comprises of the host computers with support of
1/13/2011
fast processor, large memory, frame buffer display devices, input devices, output devices interface devices.
Gaurav Raj, Lovely Professional University, Punjab 2
Application Model
Application Program
Graphics System
Output devices
1/13/2011
1/13/2011
Menus Icons Cursors Dialog Boxes Scroll Bars Buttons Valuators Grids 3-D Interfaces
Gaurav Raj, Lovely Professional University, Punjab 5
Application Packages
Various application package and standards available
Core Graphics GKS SRGP PHIGS, SPHIGS and PEX 3D OpenGL(With ActiveX and Direct3D) X11 Based Systems
1/13/2011 Gaurav Raj, Lovely Professional University, Punjab 6
SRGP- Simple Raster Graphics Package PHIGS- Programmers Hierarchical Intaractive Graphics Systems
Various tools and utilities available for web based design include JAVA, XML, VRML and GIF Animators Certain compilers with their own graphics libraries, API support and help for programming 2D/3D graphics.
1/13/2011 Gaurav Raj, Lovely Professional University, Punjab 7
Display
A graphics display is a drawing area comprised of an array of fine points called pixels (picture elements).
1/13/2011
1/13/2011
Primitive models or simply primitives stand for some simple shapes (such as points, lines, and polygons)
OpenGL is a graphics library; DirectX includes a graphics library Direct3D
1/13/2011
10
Brief History
1963 Evan Sutherlands seminal doctoral work Sketchpad: a manmachine graphical communication system 1977 3D Core Graphics System by ACM SIGGRAPH Committee 1980s, hardware expensive & graphics app. programs were few 1985 GKS (the Graphical Kernel System), 2D 1987 MITs X lib for windows under UNIX OS 1988 GKS-3D, PHIGS (ANSI and ISO standard); SGIs GL; 1993 OpenGL (Open standard from SGI) Since then, OpenGL supported on PC, MAC, Sun work-stations, SGI work-stations, special purpose image generators (ESIG) Since then, Evolution of advanced GUIs and graphics environments; Software from low-level, device dependent packages to higher-level device-independent packages 2003 JOGL Java for OpenGL from Sunmicrosystem
1/13/2011
11
1/13/2011
12
1/13/2011
13
Color CRT
1/13/2011
14
1/13/2011
15
1/13/2011
16
1/13/2011
17
1/13/2011
18
1/13/2011
19
DVST- Drawbacks
Modifying any part of the image requires redrawing the entire image. Change in the image requires to generate new charge distribution in the DVST. Slow process of drawing- typically a few seconds are necessary for a complex image. Erasing takes approx. 0.5 second. All lines and character must be erased.
1/13/2011
20
Display program has the commands for point, line and character plotting.
1/13/2011 Gaurav Raj, Lovely Professional University, Punjab 22
1/13/2011
23
1/13/2011
24
The vector generator converts the digital coordinate values to analog voltages for the beam deflection circuits.
The Beam deflection circuits displays the electron beam for writing on the CRTs phosphor coating. Recommended refresh rate is 40 -50 Hz. Scope of animation with segmentation mixture of static and dynamic parts of the picture.
1/13/2011 Gaurav Raj, Lovely Professional University, Punjab 25
RASTER DISPLAYS
Store the primitives in a famebuffer, or refresh buffer which is RAM with 1024*1280, or V*H addressable pixels. Bitmap array of 1/0 (pixels) Pixmap- array of gray-scale pixels Monocrome Bi-level Gray Scale multiple level(1-15) Color (R,G,B) Scan-Conversion(rasterization ) Objects are converted into discrete pixels in frame buffer. Aliasing Jagging or Stair casing of lines/ edges Anti-Aliasing - Dealing with aliasing Resolution - # of distingushable lines per inch
1/13/2011 Gaurav Raj, Lovely Professional University, Punjab 26
1/13/2011
27
Frame Buffer(Bit Planes) : RAM with the generated pixmap and attribute ready to display. Video Controller : refresh the display.
1/13/2011
30