Beruflich Dokumente
Kultur Dokumente
Computer Graphics involves display, manipulation, storage of pictures and experimental data for proper visualization using a computer. Typical graphics system comprises of a host computer with support of fast processor, large memory, frame buffer and
- Display devices (color monitors) - I/P devices (mouse, keyboard, touch panels, joystick, trackball, etc) -O/P devices (LCD panels, laser printers, color printers,etc) - Interfacing devices.
Application Model
Application Program
Graphics System
Monitor
Keyboard
Continue ...
CG Systems could be Active and Passive In both cases, the I/p to the system is the scene description and O/p is a static or animated scene to be displayed In case of Active system, the user controls the display with the help of GUI, using I/P device.
Various components are Menus, icons, cursors, dialog boxes, scroll bars, buttons, sketching, 3D interface
Plotting in business, science & technology Office automation Web/business/commercial publishing & advertisement. CAD/CAM design (VLSI, Construction, Circuits) Scientific Visualization Entertainment
Continue ...
Continue ...
Computer Aided Design (CAD)
Continue ...
Continue ...
Presentation Graphics :
Continue ...
Computer Art :
Continue ...
Continue ...
Entertainment :
Continue ...
Continue ...
Visualization :
Continue ...
Education and Training :
Continue ...
Image Processing :
Core Graphics GKS (Graphical Kernel System) by ISO, ANSI SRGP (Simple Raster Graphics Package) PHIGS (Programmers Hierarchical Interactive Graphics System), SPHIGS OpenGL X11 based systems
Output Primitives
4 basic O/P primitives for drawing pictures:
Display System Transformation: Affine(2D and 3D), Viewing Scan Conversion and Clipping Hidden Surface Removal Shading and illumination Curves and Surfaces Solid Modeling Animation, Pipeline & parallel architectures, hybrid architectures
References
CG using OpenGL; F.S. Hill Jr., Pearson Education CG C version; D. Hearn & M.P . Baker, Pearson Education OpenGL Guide, Red Book
OpenGL Program
void mydisplay(void) { glClear(GL_COLOR_BUFFER_BIT);//clear screen glBegin(GL_POINTS); //draw points glVertex2i(100,50); glVertex2i(100,130); glVertex2i(150,130); glEnd(); glFlush();//send all output to display }
OpenGL Program
void main(int argc, char **argv) { glutInit(&argc,argv); //initialize the toolkit glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB); //display mode glutInitWindowSize(640,480); //window size glutInitWindowPosition(100,150); //window position on screen glutCreateWindow("My First OpenGL Program");//open the screen glutDisplayFunc(mydisplay);//register the redraw function glClearColor(0.0,0.0,0.0,0.0);//background color, black glColor3f(1.0f,1.0f,1.0f);//drawing color gluOrtho2D(0.0,640.0,0.0,480.0); glutMainLoop();// go into a perpetual loop }
Drawbacks of DVST
Modifying any part of the image requires redrawing
the entire modified image Change in the image requires to generate a new charge distribution in the DVST Slow process of drawing typically a few seconds are necessary for a complex picture Erasing takes about 0.5 seconds. All lines and characters must be erased. No animation possible with DVST DVBST (Direct View Bistable Storage Tube) Another version is "dark trace" CRT also known as the Skiatron
Continue ...
Electron Gun
Deflection Systems
One pair of plates is mounted horizontally to control the vertical deflection, and the other pair is mounted vertically to control horizontal deflection.
Host CPU
Display Buffer
Display Controller
CRT
Picture Processor
Continue ...
Refresh Buffer memory space allocated to store the display list or display program for the display processor to draw the picture Picture definition is now stored as a line-drawing commands an area of memory referred to as refresh display file. The display processor interprets the commands in the refresh buffer for plotting. The display processor must cycle through the display list to refresh the phosphor. The display program has commands for point, line, and character plotting. The display must be refreshed at regular intervals minimum of 30 Hz (fps) for flicker-free display.
Continue ...
The display processor sends digital and point coordinate values to a vector generator The vector generator converts the digital coordinate values to analog voltages for the beam-deflection circuits The beam-deflection circuits displace the electron beam for writing on the CRTs phosphor coating Refresh rate depends on the number of lines to be displayed. Recommended refresh rate is 40 50 Hz. Random scan displays are designed for line-drawing applications and can not display realistic shaded scenes. Random scan displays have higher resolution than raster systems.
Continue ...
Refresh buffer can be visualized as a set of horizontal raster lines or a row of individual pixels Each point is an addressable point in screen and memory Line cannot be drawn directly from one point to another This causes the effect of aliasing, jaggies or staircase effect Raster is stored as a matrix of pixels representing the entire screen area Entire image is scanned out sequentially by the video controller (one raster line at a time)
Continue ...
In a raster scan system, the electron beam is swept across the screen, one row at a time from top to bottom. As the electron beam moves across each row, the beam intensity is turned on and off to create a pattern of illuminated spots. The intensity of the beam decides the brightness of the pixel Refreshing on raster scan displays is carried out at the rate 60 to 80 frame per second.
Continue ...
Continue ...
On some raster systems , each frame is displays in two passes using an interlaced refresh procedure. On an older, 30 frame per-second, noninterlaced display, some flicker is noticeable. The quality of a raster image is determined by the total number pixels (resolution), and the amount of information in each pixel (color depth).