Output Primitives Computer Graphics.

Slides:



Advertisements
Similar presentations
Graphics Primitives: line
Advertisements

Computer Graphics- SCC 342
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.
Basic Raster Graphics Algorithms for Drawing 2D Primitives
1 King ABDUL AZIZ University Faculty Of Computing and Information Technology CS 454 Computer graphics Drawing Elementary Figures Dr. Eng. Farag Elnagahy.
+ CPCS 391 Computer Graphics 1 Instructor: Dr. Sahar Shabanah Lecture 3.
Scan conversion of Line , circle & ellipse
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.
Advanced Manufacturing Laboratory Department of Industrial Engineering Sharif University of Technology Session # 6.
Computer Graphics Tz-Huan Huang National Taiwan University (Slides are based on Prof. Chen’s)
OUTPUT PRIMITIVES Screen vs. World coordinate systems ● Objects positions are specified in a Cartesian coordinate system called World Coordinate.
CS 352: Computer Graphics Chapter 7: The Rendering Pipeline.
In the name of God Computer Graphics Bastanfard.
Raster conversion algorithms for line and circle
Course Website: Computer Graphics 5: Line Drawing Algorithms.
CAP4730: Computational Structures in Computer Graphics Chapter 3 Hearn & Baker Portions obtained from Leonard McMillan’s COMP136 Notes:
March Shape Drawing Algorithms Shmuel Wimer Bar Ilan Univ., Engineering Faculty.
CGMB214: Introduction to Computer Graphics
1/1/20001 Topic >>>> Scan Conversion CSE Computer Graphics.
Dr. S.M. Malaek Assistant: M. Younesi
Jehee Lee Seoul National University
Graphics Primitives: line. Pixel Position
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
Objectives Differentiate between raster scan display and random scan display.
Graphics Systems and OpenGL. Business of Generating Images Images are made up of pixels.
Character Generation.
Graphics Output Primitives
CGMB214: Introduction to Computer Graphics
INT 840E Computer graphics Introduction & Graphic’s Architecture.
Week One Raster & Vector Formats. 2 Computer Graphics Vector Graphics Pictures are produced via a series of ‘draw commands’ These commands will draw short.
Computer Graphics Chapter 6 Andreas Savva. 2 Interactive Graphics Graphics provides one of the most natural means of communicating with a computer. Interactive.
Quiz # 1 Chapters 1,2, & 3.
COMPUTER GRAPHICS. Can refer to the number of pixels in a bitmapped image Can refer to the number of pixels in a bitmapped image The amount of space it.
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 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.
OUTPUT PRIMITIVES A.Aruna/Faculty of Information technology/SNSCE13/19/2016.
Lecture 2: 19/4/1435 Graphical algorithms Lecturer/ Kawther Abas CS- 375 Graphics and Human Computer Interaction.
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.
Computer Graphics Inf4/MSc Computer Graphics Lecture 4 Line & Circle Drawing.
10/10/2006TCSS458A Isabelle Bichindaritz1 Line and Circle Drawing Algorithms.
Rasterization CENG 477 Introduction to Computer Graphics Slides from Steve Marschner, CS4620, 2008 Cornell University.
Scan Conversion of Line Segments. What is Scan conversion? Final step of rasterization (the process of taking geometric shapes and converting them into.
OUTPUT PRIMITIVES CEng 477 Computer Graphics METU, 2004.
Objectives Understand Bresenhams line drawing algorithm. Apply the algorithm to plot a line with the end points specified.
Primitive graphic objects
Line Drawing Algorithms
CSCE 441 Lecture 2: Scan Conversion of Lines
Computer Graphics Lecture 3 Computer Graphics Hardware
Computer Graphics CC416 Week 13 Clipping.
Lecture 8 Shear and Line Drawing Algorithms
Chapter Three Part I Output Primitives CS 380.
Computer Graphics 5: Line Drawing Algorithms
Computer Graphics 5: Line Drawing Algorithms
CSCE 441 Lecture 2: Scan Conversion of Lines
3D Rendering Pipeline Hidden Surface Removal 3D Primitives
Introduction to Computer Graphics
Computer Graphics 5: Line Drawing Algorithms
Rasterization and Antialiasing
Chapter 3 Graphics Output Primitives
Primitive Drawing Algorithm
Primitive Drawing Algorithm
Presentation transcript:

Output Primitives Computer Graphics

Output Primitives Output Primitives: Basic geometric structures used to describe scenes. (points, straight line segment, circles and other conic sections, quadric surfaces, spline curve and surfaces, polygon color areas, and character strings) These picture components are often defined in a continuous space.

Output Primitives In order to draw the primitive objects, one has to first scan convert the object. Scan convert: Refers to the operation of finding out the location of pixels to be intensified and then setting the values of corresponding bits, in the graphic memory, to the desired intensity code.

Scan Converting A Point A random-scan (vector) system stores point-plotting instructions in the display list, and coordinate values in these instructions are converted to deflection voltages that position the electron beam at the screen locations to be plotted during each refresh cycle.

Scan Converting A Point

Scan Converting A Point A mathematical point P(x,y) needs to be scan converted to a pixel. If the coordinate values of point P are (3.3, 7.3) then the floor function of x’=3 and y’=7, is plotted.

Point Drawing (Raster display) x

Scan Converting A Point (In vector display) x´=Floor(x) and y´=Floor(y) All points that satisfy: are mapped to pixel (x´,y´)

Scan Converting A Line

Scan Converting A Line The Cartesian slope- intercept equation for a straight line is:

Scan Converting A Line These equation form the basic for determining deflection voltage in analog devices. |m|>1 |m|<1

Line Drawing Algorithms y2 y1 x1 x2 Line Drawing Algorithms

Scan Converting A Line On raster system, lines are plotted with pixels, and step size (horizontal & vertical direction) are constrained by pixel separation.

Scan Converting A Line We must sample a line at discrete positions and determine the nearest pixel to the line at each sampled position.

Digital Differential Analyzer (DDA Algorithm)

DDA Algorithm Algorithm is an incremental scan conversion method. Based on calculating either or If |m|<1,

DDA Algorithm If |m|>1, If

Circle Generation Algorithms

Circle Generation Algorithms The equation of a circle: We could solve for y in terms of x

Circle Generation Algorithms The spacing between plotted pixel positions is not uniform.

Circle Generation Algorithms Computation can be reduced by considering the symmetry of circles Circle Generation Algorithms

Character Generation

Character Generation Letters, numbers, and other character can be displayed in a variety of size and styles.

Character Generation Attributes of characters

Character Generation There are three basic methods to generate characters, Hardware based: Logic is built into the graphics terminal and drawn quickly. Bitmap based: utilizes pixels and copies appropriate portion from frame buffer to display Vector based: provides with unlimited possibilities with character style, size, shape