Lecture outline. COMP30019 Graphics and Interaction Rendering pipeline & object modelling. Introduction to modelling

Similar documents
COMP30019 Graphics and Interaction Rendering pipeline & object modelling

Graphics and Interaction Rendering pipeline & object modelling

COMP30019 Graphics and Interaction Perspective & Polygonal Geometry

COMP30019 Graphics and Interaction Scan Converting Polygons and Lines

CHAPTER 1 Graphics Systems and Models 3

Rendering. Converting a 3D scene to a 2D image. Camera. Light. Rendering. View Plane

Computer Graphics I Lecture 11

Introduction to Computer Graphics

Course Title: Computer Graphics Course no: CSC209

CS230 : Computer Graphics Lecture 4. Tamar Shinar Computer Science & Engineering UC Riverside

CS452/552; EE465/505. Clipping & Scan Conversion

Triangle Rasterization

Pipeline Operations. CS 4620 Lecture 10

Rasterization Overview

2D rendering takes a photo of the 2D scene with a virtual camera that selects an axis aligned rectangle from the scene. The photograph is placed into

Pipeline Operations. CS 4620 Lecture Steve Marschner. Cornell CS4620 Spring 2018 Lecture 11

Computer Graphics. Shadows

Chapter 4. Chapter 4. Computer Graphics 2006/2007 Chapter 4. Introduction to 3D 1

CS4620/5620: Lecture 14 Pipeline

Computer Graphics. Instructor: Oren Kapah. Office Hours: T.B.A.

CS 381 Computer Graphics, Fall 2008 Midterm Exam Solutions. The Midterm Exam was given in class on Thursday, October 23, 2008.

Pipeline Operations. CS 4620 Lecture 14

Interactive Computer Graphics A TOP-DOWN APPROACH WITH SHADER-BASED OPENGL

CS 130 Final. Fall 2015

Graphics Hardware and Display Devices

FROM VERTICES TO FRAGMENTS. Lecture 5 Comp3080 Computer Graphics HKBU

Texture. Texture Mapping. Texture Mapping. CS 475 / CS 675 Computer Graphics. Lecture 11 : Texture

CS 475 / CS 675 Computer Graphics. Lecture 11 : Texture

Einführung in Visual Computing

CS337 INTRODUCTION TO COMPUTER GRAPHICS. Describing Shapes. Constructing Objects in Computer Graphics. Bin Sheng Representing Shape 9/20/16 1/15

Topics. From vertices to fragments

Graphics Pipeline 2D Geometric Transformations

Computer Graphics Introduction. Taku Komura

CSE 167: Introduction to Computer Graphics Lecture #4: Vertex Transformation

Computer Graphics Fundamentals. Jon Macey

Computer Graphics 10 - Shadows

1 Preview. Dr. Scott Gordon Computer Science Dept. CSUS. Virtual Cameras, Viewing Transformations: CSc-155 Advanced Computer Graphics

Module Contact: Dr Stephen Laycock, CMP Copyright of the University of East Anglia Version 1

CS123 INTRODUCTION TO COMPUTER GRAPHICS. Describing Shapes. Constructing Objects in Computer Graphics 1/15

SRM INSTITUTE OF SCIENCE AND TECHNOLOGY

CS2401 COMPUTER GRAPHICS ANNA UNIV QUESTION BANK

The Rendering Pipeline (1)

CS451Real-time Rendering Pipeline

COMPUTER GRAPHICS, MULTIMEDIA AND ANIMATION, Second Edition (with CD-ROM) Malay K. Pakhira

0. Introduction: What is Computer Graphics? 1. Basics of scan conversion (line drawing) 2. Representing 2D curves

COURSE DELIVERY PLAN - THEORY Page 1 of 6

Lecturer Athanasios Nikolaidis

GLOBAL EDITION. Interactive Computer Graphics. A Top-Down Approach with WebGL SEVENTH EDITION. Edward Angel Dave Shreiner

Chapter 5. Projections and Rendering

Overview. Pipeline implementation I. Overview. Required Tasks. Preliminaries Clipping. Hidden Surface removal

Welcome to CS 4/57101 Computer Graphics

Realtime 3D Computer Graphics Virtual Reality

Computergrafik. Matthias Zwicker. Herbst 2010

Lets assume each object has a defined colour. Hence our illumination model is looks unrealistic.

3D Rendering Pipeline

CSE 167: Introduction to Computer Graphics Lecture #10: View Frustum Culling

CS 381 Computer Graphics, Fall 2012 Midterm Exam Solutions. The Midterm Exam was given in class on Tuesday, October 16, 2012.

Real-Time Shadows. André Offringa Timo Laman

Graphics and Interaction Surface rendering and shading

Lecture outline Graphics and Interaction Surface rendering and shading. Shading techniques. Introduction. Surface rendering and shading

Introduction to Visualization and Computer Graphics

CHETTINAD COLLEGE OF ENGINEERING & TECHNOLOGY CS2401 COMPUTER GRAPHICS QUESTION BANK

graphics pipeline computer graphics graphics pipeline 2009 fabio pellacini 1

Wednesday, 26 January 2005, 14:OO - 17:OO h.

The Graphics Pipeline. Interactive Computer Graphics. The Graphics Pipeline. The Graphics Pipeline. The Graphics Pipeline: Clipping

Practical Linear Algebra: A Geometry Toolbox

Chapter 8: Implementation- Clipping and Rasterization

graphics pipeline computer graphics graphics pipeline 2009 fabio pellacini 1

From Vertices To Fragments-1

OXFORD ENGINEERING COLLEGE (NAAC Accredited with B Grade) DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING LIST OF QUESTIONS

Clipping and Scan Conversion

VISIBILITY & CULLING. Don t draw what you can t see. Thomas Larsson, Afshin Ameri DVA338, Spring 2018, MDH

Computer Graphics. Lecture 02 Graphics Pipeline. Edirlei Soares de Lima.

(a) rotating 45 0 about the origin and then translating in the direction of vector I by 4 units and (b) translating and then rotation.

CS 464 Review. Review of Computer Graphics for Final Exam

CSE528 Computer Graphics: Theory, Algorithms, and Applications

Graphics for VEs. Ruth Aylett

3/1/2010. Acceleration Techniques V1.2. Goals. Overview. Based on slides from Celine Loscos (v1.0)

Three Main Themes of Computer Graphics

COMP3421. Vector geometry, Clipping

EF432. Introduction to spagetti and meatballs

3D Rasterization II COS 426

Computer Graphics Shadow Algorithms

CS184 : Foundations of Computer Graphics Professor David Forsyth Final Examination

3D GRAPHICS. design. animate. render

CIS 581 Interactive Computer Graphics

Hidden surface removal. Computer Graphics

CS602- Computer Graphics Solved MCQS From Midterm Papers. MIDTERM EXAMINATION Spring 2013 CS602- Computer Graphics

Texture Mapping. Michael Kazhdan ( /467) HB Ch. 14.8,14.9 FvDFH Ch. 16.3, , 16.6

Topic 0. Introduction: What Is Computer Graphics? CSC 418/2504: Computer Graphics EF432. Today s Topics. What is Computer Graphics?

The Application Stage. The Game Loop, Resource Management and Renderer Design

CMSC427 Advanced shading getting global illumination by local methods. Credit: slides Prof. Zwicker

Computer Graphics: Programming, Problem Solving, and Visual Communication

HE COMPLETE OPENGL PROGI FOR WINDOW WIND

Volume Shadows Tutorial Nuclear / the Lab

CS 4620 Program 3: Pipeline

Complex Shading Algorithms

CS184 : Foundations of Computer Graphics Professor David Forsyth Final Examination (Total: 100 marks)

ME COMPUTER AIDED DESIGN COMPUTER AIDED DESIGN 2 MARKS Q&A

Computer Graphics and Visualization. What is computer graphics?

Transcription:

Lecture outline COMP30019 Graphics and Interaction Rendering pipeline & object modelling Department of Computer Science and Software Engineering The Introduction to Modelling Polygonal geometry The rendering pipeline High Performance Visible Surface Detection How are objects modelled in computer graphics? Aim: understanding polygonal geometry and the basics of the rendering pipeline. Reading: Foley Section 9.1.1 Representing polygon meshes. Foley Sections 14.4 Shadows, 14.9 The rendering pipeline and 14.3 Surface detail. Additional Reading: Section 23.3 Level of detail in Computer graphics and virtual environments: from realism to real-time by Mel Slater, Anthony Steed and Yiorgos Crysanthou, Addison Wesley 2002 ISBN: 0201624206. Introduction to modelling The first problem in modelling geometric objects and their motion is to formulate a suitable mathematical model (does it have a solution? is the solution unique?. A model based on general theories and laws of particular discipline (e.g. luminosity model of a 3D surface or physical model of a soccer ball. You may need to simplify the model and approximate to ensure tractability (use polyhedra model of soccer ball instead of parametric surface. There will be a balance between what to include for completeness, and what to remove for tractability (don t model the effect of wind on the soccer ball.

Polygonal geometry In general, a polygon is any plane figure bounded by straight line segments and but can comprise these forms polygonal arcs (polylines polygonal boundaries (closed polylines and filled polygons Polygons are very useful, both in themselves and as building blocks for approximating arbitrary curved arcs and regions. Representation Either as a set of line segments, or an ordered sequence of vertices using absolute or relative coordinates, Walking order convention often applies, e.g. anti-clockwise for outer and clockwise for inner Polygon mesh: vertex list Polygon mesh: edge list V = (V 1, V 3, V 4 = ((x 1, y 1, z 1,, (x 4, y 4, z 4 V 1 V 2 P 2 V 3 V 4 V 1 E 1 V 2 E 2 P 2 E 4 V 3 E 1 = (V 1, E 2 = (V 2, V 3 E 3 = (V 3, V 4 E 4 =(V 4, V =(V 1, V 3, V 4 =((x 1, y 1, z 1,...,(x 4, y 4, z 4 E 5 E 3 V 4 E 5 = (V 4, V 1, = (E 1, E 4, E 5 =(1, 2, 4 P 2 = (E 2, E 3, E 4 P 2 =(4, 2, 3 Polygons represented as line segments (edges makes polygon clipping and scan-line filling operations easier (we will see later.

Polygon types Polygon Properties Convex Non-simple In a convex polygon no internal angle is greater than 180 degrees Star In a concave polygon there are internal angles that can be greater than 180 degrees Concave Multiple-boundary Concave polygons can be represented as a conjunction of convex polygons, sometimes desired as convex polygons have certain properties that simplify some geometric operations and tesselations. the multiple boundary polygons would need some classification of region (like Tasmania connected to the mainland of Australia. The Rendering pipeline Double buffering db traversal Modeling Trivial accept/reject Lighting Viewing The problem: animation and motion can cause the display to flicker. Clipping Divide by W, map to 3D viewport (Foley Figure 14.41 Rasterization Display The solution: double buffering can be used to reduce the effect of flickering, by sending all drawing commands to an off-screen buffer, then swapping buffers before redrawing. In addition, only those pixels recently drawn are selectively erased at each step in the off-screen buffer.

Rendering pipeline for z-buffer (revisited db traversal Clipping Modeling Divide by W, map to 3D viewport (Foley Figure 14.41 Trivial accept/reject Rasterization Lighting Display Viewing Rendering pipeline - the steps See page 521 of Foley: db traversal & modelling transform all (relatively defined polygons or polygonal meshes to their correct location. Trivial accept/reject: Entirely outside & back face culling Lighting: calculate intensity (for vertices only: need to do in 3D before perspective projection Viewing : perspective (e.g. perspective foreshortening. Clipping: clip to viewport (involves creation of new vertices on border. Map to viewport: Change of coordinate systems (Divide by W: based on homogeneous coordinate system. Rasterisation: scan-line drawing polygons (including z-buffering & shading interpolation Level of detail Example from Stanford University Computer Graphics Lab Varying quality with distance - programmer provides several different versions of an object for viewing at different distances. Despite the difference in the number of used to model the figures (on the left, at a distance (on the right they appear very similar (Figure from Slater text.

Vertex spit method Example of levels of detail (Figure from Slater text Texture and bump mapping Summary A texture map is used to scale one or more of the surfaces material properties, such as diffuse colour (RGB components. A bump map is an array of displacements, each which perturbs the surface normal before it is used in the illumination model. Polygons are one of the most widely used models in computer graphics and are useful for representing both two-dimensional shapes and three-dimensional objects. The Rendering pipeline is the basis of OpenGL. The rendering pipeline facilitates the systematic modelling, transfmation and rendering of polygons. Various techniques exist for achieving high performance, including level-of-detail, texture and bump mapping.