Chapter 4 Digital Multimedia, 2nd edition Vector Graphics.

Slides:



Advertisements
Similar presentations
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.
Advertisements

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. 
Modelling. Outline  Modelling methods  Editing models – adding detail  Polygonal models  Representing curves  Patched surfaces.
(conventional Cartesian reference system)
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.
MULTIMEDIA TECHNOLOGY SMM 3001 MEDIA - GRAPHICS. In this chapter how the computer creates, stores, and displays graphic images how the computer creates,
Modeling and representation 1 – comparative review and polygon mesh models 2.1 Introduction 2.2 Polygonal representation of three-dimensional objects 2.3.
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.
Virtual reality. Tasks 3D digital model from planes 3D digital model of existing objects Office work Field observations Solid modeling Photogrammetry.
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.
C O M P U T E R G R A P H I C S Guoying Zhao 1 / 14 C O M P U T E R G R A P H I C S Guoying Zhao 1 / 14 Going-through.
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.
Review on Graphics Basics. Outline Polygon rendering pipeline Affine transformations Projective transformations Lighting and shading From vertices to.
COMP135/COMP535 Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 4 Lecture 4 - Vector Graphics.
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.
Computer Graphics Ken-Yi Lee National Taiwan University (the slides are adapted from Bing-Yi Chen and Yung-Yu Chuang)
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.
ITEC2110, Digital Media Chapter 2 Fundamentals of Digital Imaging 1 GGC -- ITEC Digital Media.
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.
Introduction to Computer Graphics
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:

Chapter 4 Digital Multimedia, 2nd edition Vector Graphics

4 Compact Scalable Resolution-independent Hence attractive for networked multimedia Vector Graphics 86

4 Vector Graphics Not widely used on WWW until the arrival of Flash SVG is an open standard supported by many web browsers, but few people use this format. SVG format: Example: Flash is proprietary (well, for now…)

4 Proprietary vs. Open What is the difference between standard open file formats and proprietary formats?

4 Any point in the plane can be identified by its horizontal and vertical distance from the origin P = (x, y) Coordinates 87

4 Specify a displacement by movements in x and y directions (not Euclidean distance) 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 88

4 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 Rendering 88–89

4 Rendering In general, rendering will exhibit 'jaggies' Pixels' coordinates are integers, equations use real numbers

4 Rendering is sampling & reconstruction Abstract continuous line must be approximated by discrete pixels of finite size Jaggies are instance of phenomenon of aliasing Aliasing 89–91

4 Anti-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

4 Anti-aliasing

4 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 91–92

4 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 92–94

4 Bézier curves can be easily combined to make elaborate smooth paths Closed path joins up on itself, open path doesn't Paths 94–96

4 Paths Good “Drawing” programs let you create smooth natural curves. Let me show you an example

4 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 96–99

4 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 101–102

4 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 3-D Vector Graphics 103–104

4 3-D Vector Graphics Practically complicated and difficult Requires 3-D visualization skills Complex tools are hard to master Considerable processing power is needed

4 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 105

4 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 106

4 Use object's boundary surface to define it 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 106–108

4 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 108–111

4 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 111–112

4 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 113–114