COMP135/COMP535 Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 4 Lecture 4 - Vector Graphics.

Slides:



Advertisements
Similar presentations
30/9/2008Lecture 21 Computer Graphics Assistant Professor Dr. Sana’a Wafa Al-Sayegh 2 nd Semester ITGD3107 University of Palestine.
Advertisements

CHAPTER 20 CREATING SVG GRAPHICS. LEARNING OBJECTIVES How to embed a graphic stored within a.SVG file in an HTML page How to use the and tag pair to specify.
Concept of Modeling Model -- The representation of an object or a system Modeling -- The creation and manipulation of an object or a system representation.
03/16/2009Dinesh Manocha, COMP770 Texturing Surface’s texture: its look & feel Graphics: a process that takes a surface and modifies its appearance using.
3D Graphics Rendering and Terrain Modeling
Chapter 4 Vector Graphics Multimedia Systems. Key Points  Points can be identified by coordinates. Lines and shapes can be described by equations. 
18.1 Si31_2001 SI31 Advanced Computer Graphics AGR Lecture 18 Image-based Rendering Light Maps What We Did Not Cover Learning More...
Modelling. Outline  Modelling methods  Editing models – adding detail  Polygonal models  Representing curves  Patched surfaces.
Chapter 4 Digital Multimedia, 2nd edition Vector Graphics.
(conventional Cartesian reference system)
Graphics Output Primitives Pixel Addressing and Fill Area Dr. M. Al-Mulhem Feb. 1, 2008.
SWE 423: Multimedia Systems Chapter 4: Graphics and Images.
6.1 Vis_04 Data Visualization Lecture 6 - A Rough Guide to Rendering.
Introduction to Computer Graphics
Introduction to 3D Graphics John E. Laird. Basic Issues u Given a internal model of a 3D world, with textures and light sources how do you project it.
3-D Modeling Concepts V part 2.
Modeling and representation 1 – comparative review and polygon mesh models 2.1 Introduction 2.2 Polygonal representation of three-dimensional objects 2.3.
1 Perception, Illusion and VR HNRS 299, Spring 2008 Lecture 19 Other Graphics Considerations Review.
1 Computer Graphics Week13 –Shading Models. Shading Models Flat Shading Model: In this technique, each surface is assumed to have one normal vector (usually.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 10: Computer Graphics Computer Science: An Overview Tenth Edition.
COMPUTER GRAPHICS CS 482 – FALL 2014 AUGUST 27, 2014 FIXED-FUNCTION 3D GRAPHICS MESH SPECIFICATION LIGHTING SPECIFICATION REFLECTION SHADING HIERARCHICAL.
COMP 175: Computer Graphics March 24, 2015
Technology and Historical Overview. Introduction to 3d Computer Graphics  3D computer graphics is the science, study, and method of projecting a mathematical.
Lecture 4 - Introduction to Computer Graphics
Chapter 10: Computer Graphics
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 10: Computer Graphics Computer Science: An Overview Tenth Edition.
Computer Graphics. Requirements Prerequisites Prerequisites CS 255 : Data Structures CS 255 : Data Structures Math 253 Math 253 Experience with C Programming.
Digital Media Dr. Jim Rowan ITEC Vector Graphics Elegant way to construct digital images that –have a compact representation –are scalable –are.
Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 3 This presentation © 2004, MacAvon Media Productions Introduction to Computer Graphics.
Copyright © Curt Hill Visualization of 3D Worlds How are these images described?
Digital Media Lecture 8: Vector Graphics 3D Georgia Gwinnett College School of Science and Technology Dr. Jim Rowan.
Digital Media Dr. Jim Rowan ITEC 2110 Vector Graphics II.
1 Perception and VR MONT 104S, Fall 2008 Lecture 21 More Graphics for VR.
Vector Graphics Digital Multimedia Chap 이병희
Digital Media Dr. Jim Rowan ITEC So far… We have compared bitmapped graphics and vector graphics We have discussed bitmapped images, some file formats.
Computer Graphics Rendering 2D Geometry CO2409 Computer Graphics Week 2.
Course Introduction to virtual engineering Óbuda University John von Neumann Faculty of Informatics Institute of Applied Mathematics Lecture and laboratory.
Digital Media Dr. Jim Rowan ITEC 2110 Vector Graphics II.
CS 325 Introduction to Computer Graphics 03 / 29 / 2010 Instructor: Michael Eckmann.
Subject Name: Computer Graphics Subject Code: Textbook: “Computer Graphics”, C Version By Hearn and Baker Credits: 6 1.
Digital Media Dr. Jim Rowan ITEC 2110 Thursday, September 13.
In the name of God Computer Graphics Bastanfard. Curve Function(2) Other method is approximate it using a poly-line. Just locate a set of points along.
Handle By, S.JENILA AP/IT
Digital Media Dr. Jim Rowan ITEC Vector Graphics Elegant way to construct digital images that –have a compact representation –are scalable –are.
CS559: Computer Graphics Final Review Li Zhang Spring 2010.
Digital Media Lecture 5: Vector Graphics Georgia Gwinnett College School of Science and Technology Dr. Jim Rowan.
OUTPUT PRIMITIVES A.Aruna/Faculty of Information technology/SNSCE13/19/2016.
CS 376 Introduction to Computer Graphics 04 / 13 / 2007 Instructor: Michael Eckmann.
Mohammed AM Dwikat CIS Department Digital Image.
Computer – Aided Design Terminology You must have a generic understanding of commands and techniques which are used in a number of packages (YOU CANNOT.
Digital Media Dr. Jim Rowan ITEC 2110 Vector Graphics II.
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.
Main characteristics of Vector graphics  Vector graphics provide an elegant way of constructing digital images (diagrams, technical illustration and.
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.
Chapter 10: Computer Graphics
Lecture 5 Basic geometric objects
Computer Graphics.
CSI-447: Multimedia Systems
POLYGON MESH Advance Computer Graphics
Dr. Jim Rowan ITEC 2110 Wednesday, September 12
IMAGES.
3D Graphics Rendering PPT By Ricardo Veguilla.
Chapter 10: Computer Graphics
Chapter 14 Shading Models.
Digital Media Dr. Jim Rowan ITEC 2110.
Dr. Jim Rowan ITEC 2110 Vector Graphics II
Chapter 14 Shading Models.
Lecture 4 - Introduction to Computer Graphics
Dr. Jim Rowan ITEC 2110 Vector Graphics II
Presentation transcript:

COMP135/COMP535 Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 4 Lecture 4 - Vector Graphics

COMP135/COMP535 Compact Scalable Resolution-independent Hence attractive for networked multimedia, but nor widely used on WWW –SVG standard and Flash may lead to more vector Web graphics Vector Graphics

COMP135/COMP535 Rectangular array of pixels, each pixel may be identified by row and column numbers (r,c) Extend to Cartesian coordinates –Any point in the plane can be identified by its horizontal and vertical distance from the origin –P = (x, y) Coordinates

COMP135/COMP535 Specify a displacement by movements in x and y directions –Displacement is also a pair of numbers –P 2 - P 1 = (x 2 -x 1, y 2 -y 1 ), displacement (movement) from P 1 to P 2 –P 2 - P 1 ≠ P 1 - P 2 Vectors

COMP135/COMP535 Represent lines, curves, shapes,... by parameters of their defining equations –e.g. line y = mx + c, store m and c (or endpoints) Compute pixels which must be set in order to draw the line etc In general, result will exhibit 'jaggies' –Pixels' coordinates are integers, equations use real numbers Rendering

COMP135/COMP535 Rendering is sampling & reconstruction –Abstract continuous line &c must be approximated by discrete pixels of finite size Jaggies are instance of phenomenon of aliasing Mitigate effect by colouring pixels in shades of grey (for a black line), brightness varies according to extent of intersection with an idealized 1 pixel wide line Anti-aliasing

COMP135/COMP535 Drawing programs and vector graphics languages provide basic repertoire of shapes that can easily be represented mathematically –Rectangles and squares (may have rounded corners) –Ellipses and circles –Straight lines, polylines and polygons –Smooth (Bézier) curves Shapes

COMP135/COMP535 Smooth curves completely specified by four control points –2 endpoints (P 1, P 4 ) –2 direction points (P 2, P 3 ) Sweep of the curve is determined by length and direction of lines from endpoints to direction points Bézier Curves

COMP135/COMP535 Bézier curves can be easily combined to make elaborate smooth paths –Closed path joins up on itself, open path doesn't If two curves join at a point in such a way that their direction lines through that point form a single line extending the same distance in both directions, the join will be smooth –Pen tool in drawing programs lets you build up curves in this way by dragging at successive anchor points Paths

COMP135/COMP535 Apply stroke to make path visible (like tracing with ink) –Specify width and colour etc Apply fill to closed path or shape (like colouring it in) –Specify colour or a gradient or pattern –Gradients may be linear or radial; Illustrator also supports mesh gradients Stroke & Fill

COMP135/COMP535 Manipulate vector objects in certain ways by changing stored values that describe them –Translation (linear movement) –Scaling –Reflection –Rotation –Shearing (skewing) Perform transformations with direct manipulation (tools) or numerically (dialogue) Transformations

COMP135/COMP535 Conceptually simple extension of 2-D –Add z-axis at right angles to x- and y-axes –Point is defined by (x, y, z) coordinates, vector is triple of values, etc Practically complicated and difficult –Requires 3-D visualization skills –Complex tools are hard to master –Considerable processing power is needed 3-D Vector Graphics

COMP135/COMP535 Start with mathematical model of objects in 3-D space, need a 2-D picture, usually in perspective Need to define viewpoint (camera position) Must consider lighting –Can have different light sources – spots, diffuse,... –Surface characteristics of object (texture, shininess, etc) determine how it appears under different lighting conditions –Need a model based on physics of light 3-D Rendering

COMP135/COMP535 Build 3-D models out of a few primitive objects – cube, cylinder, sphere, pyramid,... –Apply distortions such as squashing or stretching Combine objects using spatial equivalents of set operations –Union, intersection, difference Constructive Solid Geometry

COMP135/COMP535 Use object's boundary surface to define it –cf. use of outline to define 2-D shape Construct surface as mesh of flat polygons –Use triangles for fast rendering (games) Can generalize Bézier curves to 3-D surfaces Generate objects by sweeping 2-D cross section along a path –Extrusion and lathing Free Form Modelling

COMP135/COMP535 Define an object by giving algorithm for constructing it Fractals –Exhibit same structure at all levels of detail –Model landscape features, clouds etc Metaballs –Coalescing fields around spheres –Model soft objects Particle systems Procedural Modelling

COMP135/COMP535 Wire frame –Simple mathematical projection of 3-D model –Useful for previews Hidden surface removal –Non-trivial, but well understood –Can colour surfaces arbitrarily, sufficient for removing visual ambiguity of wire frame 3-D Rendering

COMP135/COMP535 Interpolate colour across each polygon to disguise discontinuities –Gouraud and Phong shading Phong shading takes account of specular reflection Take account of interaction between objects –Ray tracing and radiosity Shading Algorithms