OUTPUT PRIMITIVES A.Aruna/Faculty of Information technology/SNSCE13/19/2016.

Slides:



Advertisements
Similar presentations
Computer Graphics- SCC 342
Advertisements

CS 4731: Computer Graphics Lecture 20: Raster Graphics Part 1 Emmanuel Agu.
2006 by Jim X. Chen: 1.1. Review –Graphics commands specify straight lines or other geometric primitives that are scan-converted.
Line Drawing Algorithms. Rasterization-Process of determining which pixels give the best approximation to a desired line on the screen. Scan Conversion-Digitizing.
30/9/2008Lecture 21 Computer Graphics Assistant Professor Dr. Sana’a Wafa Al-Sayegh 2 nd Semester ITGD3107 University of Palestine.
OUTPUT PRIMITIVES Screen vs. World coordinate systems ● Objects positions are specified in a Cartesian coordinate system called World Coordinate.
Graphics Pipeline.
In the name of God Computer Graphics Bastanfard.
MR.E.S.AGRAWAL SGGSIE&T, NANDED CAD Software and Hardware.
Raster conversion algorithms for line and circle
Output Primitives Computer Graphics.
1 Lecture 2 Main components of graphical systems Graphical devices.
Graphics Output Primitives Pixel Addressing and Fill Area Dr. M. Al-Mulhem Feb. 1, 2008.
Course Website: Computer Graphics 5: Line Drawing Algorithms.
1 King ABDUL AZIZ University Faculty Of Computing and Information Technology CS 454 Computer graphicsIntroduction Dr. Eng. Farag Elnagahy
Line Drawing by Algorithm. Line Drawing Algorithms Line drawn as pixels Graphics system –Projects the endpoints to their pixel locations in the frame.
CS123 | INTRODUCTION TO COMPUTER GRAPHICS Andries van Dam © Scan Conversion CS123 1 of 44Scan Conversion - 10/14/2014.
1.Introduction to Computer Graphics GMR lab. What is computer garphics? The generation of graphical output using a computer Refers to creation, Storage.
Chapter 3 Graphics Output Primitives
March Shape Drawing Algorithms Shmuel Wimer Bar Ilan Univ., Engineering Faculty.
CGMB214: Introduction to Computer Graphics
Dr. S.M. Malaek Assistant: M. Younesi
Jehee Lee Seoul National University
WHERE TO DRAW A LINE?? Line drawing is accomplished by calculating intermediate positions along the line path between specified end points. Precise definition.
Scan Conversion Line and Circle
CGMB214: Introduction to Computer Graphics
Part 6: Graphics Output Primitives (4) 1.  Another useful construct,besides points, straight line segments, and curves for describing components of a.
Objectives Differentiate between raster scan display and random scan display.
1 Introduction Line attribute Color and gray scale Area filled attribute Anti-aliasing.
Introduction Computer Graphics & Its application Types of computer graphics Graphic display : random Scan & Raster Scan display Frame buffer and video.
Graphics Output Primitives
CGMB214: Introduction to Computer Graphics
2D Output Primitives Points Lines Circles Ellipses Other curves Filling areas Text Patterns Polymarkers.
Introduction to Graphical Hardware Display Technologies
Computer Graphics Chapter 6 Andreas Savva. 2 Interactive Graphics Graphics provides one of the most natural means of communicating with a computer. Interactive.
Image Synthesis Rabie A. Ramadan, PhD 7. 2 Image Rasterization.
Vector Graphics Digital Multimedia Chap 이병희
1 CSCE 441 Lecture 2: Scan Conversion of Lines Jinxiang Chai.
GEOMETRY AND LINE GENERATION Geometry and Line Generation Chapter 2.
In the name of God Computer Graphics. Today Introduction Sampling Graphic Output Primitives 1.Line 2.Circle 3.Curve 4.polygon.
Computer Graphics & Multimedia
2D Output Primitives Points Lines Circles Ellipses Other curves Filling areas Text Patterns Polymarkers.
Lecture 15: Raster Graphics and Scan Conversion
Lecture 13: Raster Graphics and Scan Conversion
1 Teaching Innovation - Entrepreneurial - Global The Centre for Technology enabled Teaching & Learning, N Y S S, India DTEL DTEL (Department for Technology.
CS552: Computer Graphics Lecture 17: Scan Conversion (Special Cases)
Lecture 2: 19/4/1435 Graphical algorithms Lecturer/ Kawther Abas CS- 375 Graphics and Human Computer Interaction.
Rasterization Overview Raster Display Device. Scan Conversion / Rasterization: converting vector graphics into raster graphics (determining pixels in.
1.  The primary output device in a graphics system is a video monitor. These monitors are based on Cathode Ray Tube (CRT) design.  CRT is a vacuum tube/electron.
Computer Graphics Lecture 08 Taqdees A. Siddiqi Computer Graphics Filled Area Primitives I Lecture 08 Taqdees A. Siddiqi
Computer Graphics CC416 Lecture 02: Overview of Graphics Systems: Raster & Random Displays – Chapter 2 Dr. Manal Helal – Fall 2014.
Computer Graphics CC416 Lecture 04: Bresenham Line Algorithm & Mid-point circle algorithm Dr. Manal Helal – Fall 2014.
Write Bresenham’s algorithm for generation of line also indicate which raster locations would be chosen by Bresenham’s algorithm when scan converting.
IS502:M ULTIMEDIA D ESIGN FOR I NFORMATION S YSTEM D IGITAL S TILL I MAGES Presenter Name: Mahmood A.Moneim Supervised By: Prof. Hesham A.Hefny Winter.
Computer Graphics Inf4/MSc Computer Graphics Lecture 4 Line & Circle Drawing.
Chun-Yuan Lin Coordinate Reference Frames 2016/6/22 1 CG.
10/10/2006TCSS458A Isabelle Bichindaritz1 Line and Circle Drawing Algorithms.
Computer Graphics : output primitives.. 2 of 32 T1 – pp. 103–123, 137–145, 147–150, 164–171 Points and LinesPoints Line Drawing AlgorithmsLine Mid–Point.
Objectives Understand Bresenhams line drawing algorithm. Apply the algorithm to plot a line with the end points specified.
Elements of Pictures Output primitives:
Computer Graphics Lecture 3 Computer Graphics Hardware
CS 4731: Computer Graphics Lecture 20: Raster Graphics Part 1
Lecture 8 Shear and Line Drawing Algorithms
Chapter Three Part I Output Primitives CS 380.
o عَلَّمَهُ الْبَيَانَ
Graphics Systems SUBJECT: COMPUTER GRAPHICS LECTURE NO: 02 BATCH: 16BS(INFORMATION TECHNOLOGY) 1/4/
Graphics Systems Lecture-2
Chapter 3 Graphics Output Primitives
Primitive Drawing Algorithm
Primitive Drawing Algorithm
Presentation transcript:

OUTPUT PRIMITIVES A.Aruna/Faculty of Information technology/SNSCE13/19/2016

PICTURE DESCRIPTIONS Raster  Completely specified by the set of intensities for the pixels positions in the display.  Shapes and colors are described with pixel arrays.  Scene displayed by loading pixels array into the frame buffer. Vector  Set of complex objects positioned at specified coordinates locations within the scene.  Shapes and colors are described with sets of basic geometric structures.  Scene is displayed by scan converting the geometric-structure specifications into pixel patterns. 3/19/20162 A.Aruna/Faculty of Information technology/SNSCE

3 OUTPUT PRIMITIVES Graphics programming packages provide functions to describe a scene in terms of basic geometric structures referred to as output primitives.  Points, Straight lines, Circles, Splines curves and surfaces, Polygon color areas, Character string Output Primitives is specified  input coordinate data  other information about the way that object is to be displayed. Construct the vector picture. A.Aruna/Faculty of Information technology/SNSCE3/19/2016

IMPLEMENTING APPLICATION PROGRAMS Description of objects in terms of primitives and attributes and converts them to the pixels on the screen. what Primitives – what is to be generated how Attributes – how primitives are to be generated A.Aruna/Faculty of Information technology/SNSCE43/19/2016

INTRODUCTION In digital representation:  Display screen is divided into scan lines and columns.  Pixels positions are referenced according to scan line number and column number (columns across scan lines).  Scan lines start from 0 at screen bottom, and columns start from 0 at the screen left side.  Screen locations (or pixels) are referenced with integer values.  The frame buffer stores the intensities temporarily.  Video controller reads from the frame buffer and plots the screen pixels. 3/19/20165 A.Aruna/Faculty of Information technology/SNSCE

6 Points The electron beam is turned on to illuminate the phosphor at the selected location (x, y) where 0 ≤ x ≤ maxx 0 ≤ y ≤ maxy setpixel(x, y, intensity) – loads an intensity value into the frame-buffer at (x, y). getpixel(x, y) – retrieves the current frame-buffer intensity setting at position (x, y). (0,0) (maxx,maxy) CRT

7 Lines Analog devises, such as a random-scan display or a vector plotter, display a straight line smoothly from one endpoint to another. Linearly varying horizontal and vertical deflection voltages are generated that are proportional to the required changes in the x and y directions to produce the smooth line.

8 Digital devices display a straight line by plotting discrete coordinate points along the line path which are calculated from the equation of the line. Screen locations are referenced with integer values, so plotted positions may only approximate actual line positions between two specific endpoints. A computed line position of (10.48, 20.51) will be converted to pixel position (10, 21). This rounding of coordinate values to integers causes lines to be displayed with a stairstep appearance (the “jaggies”). Particularly noticeable on systems with low resolution. To smooth raster lines, pixel intensities along the line paths must be adjusted.

9 Line Drawing Algorithms Cartesian equation: y = mx + c where m – slope c – y-intercept x1x1 y1y1 x2x2 y2y2 Value of y at the point where the line crosses the y axis

10 Slope if |m| = 1  = 45° 45° +ve-ve °° °° °° °° if |m|  1 -45° <  < 45° if |m|  1 45° <  < 90° or -90° <  < -45°

y = x m = 1 c = 0 y x xy |m| = 1

y = ½ x + 1 m = ½ c = 1 y x xyround(y) |m|  1

13 |m|  y = 3x - 2 m = 3 c = -2 y x xyround(y) outside

LINE CONCLUSION For Line m=1 ∆x = ∆y, Horizontal and Vertical deflection Voltage is Equal. Smooth line with slope m is generated between two end points A.Aruna/Faculty of Information technology/SNSCE143/19/2016