Models and Architectures. Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and Media Arts University of New Mexico

Similar documents
Introduction to Computer Graphics with WebGL

Models and Architectures

OUTLINE. Learn the basic design of a graphics system Introduce pipeline architecture Examine software components for a graphics system

CSE4030 Introduction to Computer Graphics

CIS 441/541: Introduction to Computer Graphics Lecture 14: OpenGL Basics

Computer Graphics and Visualization. Graphics Systems and Models

INTRODUCTION. Slides modified from Angel book 6e

CS450/550. Pipeline Architecture. Adapted From: Angel and Shreiner: Interactive Computer Graphics6E Addison-Wesley 2012

Image Formation. Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and Media Arts University of New Mexico

Models and Architectures. Angel and Shreiner: Interactive Computer Graphics 7E Addison-Wesley 2015

Introduction to OpenGL Week 1

Objectives. Image Formation Revisited. Physical Approaches. The Programmer s Interface. Practical Approach. Introduction to OpenGL Week 1

Introduction to Computer Graphics with WebGL

3D graphics, raster and colors CS312 Fall 2010

VTU QUESTION PAPER SOLUTION UNIT -1 INTRODUCTION

CHAPTER 1 Graphics Systems and Models 3

Graphics Systems and Models

Today s Agenda. Basic design of a graphics system. Introduction to OpenGL

Pipeline Operations. CS 4620 Lecture 10

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

Introduction to OpenGL

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

Rasterization Overview

Pipeline Operations. CS 4620 Lecture 14

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

Advanced Computer Graphics (CS & SE )

Ulf Assarsson Department of Computer Engineering Chalmers University of Technology

Computer Graphics - Chapter 1 Graphics Systems and Models

Survey in Computer Graphics Computer Graphics and Visualization

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

Ulf Assarsson Department of Computer Engineering Chalmers University of Technology

3D Polygon Rendering. Many applications use rendering of 3D polygons with direct illumination

CS452/552; EE465/505. Image Formation

Computer Graphics: Programming, Problem Solving, and Visual Communication

Orthogonal Projection Matrices. Angel and Shreiner: Interactive Computer Graphics 7E Addison-Wesley 2015

The Viewing Pipeline Coordinate Systems

CS 591B Lecture 9: The OpenGL Rendering Pipeline

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

CS451Real-time Rendering Pipeline

Overview: Ray Tracing & The Perspective Projection Pipeline

03 RENDERING PART TWO

Surface Graphics. 200 polys 1,000 polys 15,000 polys. an empty foot. - a mesh of spline patches:

Lecture 1. Computer Graphics and Systems. Tuesday, January 15, 13

Global Rendering. Ingela Nyström 1. Effects needed for realism. The Rendering Equation. Local vs global rendering. Light-material interaction

The Traditional Graphics Pipeline

Visualisatie BMT. Rendering. Arjan Kok

Computer Graphics. Lecture 9 Environment mapping, Mirroring

CS 4620 Program 3: Pipeline

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

The Traditional Graphics Pipeline

Graphics Hardware. Instructor Stephen J. Guy

Chapter 2 A top-down approach - How to make shaded images?

Computer Graphics I Lecture 11

Real-Time Rendering (Echtzeitgraphik) Michael Wimmer

Principles of Computer Graphics. Lecture 3 1

Introduction to Computer Graphics 7. Shading

Computer Graphics. Bing-Yu Chen National Taiwan University

Three Main Themes of Computer Graphics

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

CS452/552; EE465/505. Intro to Lighting

Graphics Hardware and OpenGL

CS 498 VR. Lecture 18-4/4/18. go.illinois.edu/vrlect18

One or more objects A viewer with a projection surface Projectors that go from the object(s) to the projection surface

Lecturer Athanasios Nikolaidis

Real-Time Shadows. Last Time? Today. Why are Shadows Important? Shadows as a Depth Cue. For Intuition about Scene Lighting

The Traditional Graphics Pipeline

Real-Time Shadows. Last Time? Schedule. Questions? Today. Why are Shadows Important?

Supplement to Lecture 16

Projections and Hardware Rendering. Brian Curless CSE 557 Fall 2014

Real-Time Shadows. Last Time? Textures can Alias. Schedule. Questions? Quiz 1: Tuesday October 26 th, in class (1 week from today!

Computer Graphics. Shadows

RASTERISED RENDERING

Real-Time Shadows. MIT EECS 6.837, Durand and Cutler

CSE528 Computer Graphics: Theory, Algorithms, and Applications

Line Drawing. Foundations of Computer Graphics Torsten Möller

CSC Graphics Programming. Budditha Hettige Department of Statistics and Computer Science

Computer Graphics. Illumination and Shading

OpenGL: Open Graphics Library. Introduction to OpenGL Part II. How do I render a geometric primitive? What is OpenGL

Viewing with Computers (OpenGL)

Programming with OpenGL Part 1: Background

CPSC / Illumination and Shading

Graphics Pipeline & APIs

Computer Graphics 10 - Shadows

Graphics Pipeline & APIs

Computer Graphics Shadow Algorithms

CS Computer Graphics: Hidden Surface Removal

Illumination and Shading

Computer Graphics and Visualization. What is computer graphics?

Graphics for VEs. Ruth Aylett

CSE 690: GPGPU. Lecture 2: Understanding the Fabric - Intro to Graphics. Klaus Mueller Stony Brook University Computer Science Department

QUESTION BANK 10CS65 : COMPUTER GRAPHICS AND VISUALIZATION

Virtual Reality for Human Computer Interaction

Advanced Rendering Techniques

CS4620/5620: Lecture 14 Pipeline

Graphics Pipeline. CS535 Fall Daniel G. Aliaga Department of Computer Science Purdue University

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

Local Illumination. CMPT 361 Introduction to Computer Graphics Torsten Möller. Machiraju/Zhang/Möller

Image Formation. Introduction to Computer Graphics. Machiraju/Zhang/Möller/Klaffenböck

Computer Graphics 1. Chapter 7 (June 17th, 2010, 2-4pm): Shading and rendering. LMU München Medieninformatik Andreas Butz Computergraphik 1 SS2010

Computer Graphics. Bing-Yu Chen National Taiwan University The University of Tokyo

Transcription:

Models and Architectures Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and Media Arts University of New Mexico 1

Objectives Learn the basic design of a graphics system Introduce pipeline architecture Examine software components for an interactive graphics system 2

Image Formation Revisited Can we mimic the synthetic camera model to design graphics hardware software? Application Programmer Interface (API) - Need only specify Objects Materials Viewer Lights But how is the API implemented? 3

Physical Approaches Ray tracing: follow rays of light from center of projection until they either are absorbed by objects or go off to infinity - Can handle global effects Multiple reflections Translucent objects - Slow - Must have whole data base available at all times Radiosity: Energy based approach - Very slow 4

Practical Approach Process objects one at a time in the order they are generated by the application - Can consider only local lighting Pipeline architecture application program All steps can be implemented in hardware on the graphics card display 5

Vertex Processing Much of the work in the pipeline is in converting object representations from one coordinate system to another - Object coordinates - Camera (eye) coordinates - Screen coordinates Every change of coordinates is equivalent to a matrix transformation Vertex processor also computes vertex colors 6

Projection Projection is the process that combines the 3D viewer with the 3D objects to produce the 2D image - Perspective projections: all projectors meet at the center of projection - Parallel projection: projectors are parallel, center of projection is replaced by a direction of projection 7

Primitive Assembly Vertices must be collected into geometric objects before clipping and rasterization can take place - Line segments - Polygons - Curves and surfaces 8

Clipping Just as a real camera cannot see the whole world, the virtual camera can only see part of the world or object space - Objects that are not within this volume are said to be clipped out of the scene 9

Rasterization If an object is not clipped out, the appropriate pixels in the frame buffer must be assigned colors Rasterizer produces a set of fragments for each object Fragments are potential pixels - Have a location in frame bufffer - Color and depth attributes Vertex attributes are interpolated over objects by the rasterizer 10

Fragment Processing Fragments are processed to determine the color of the corresponding pixel in the frame buffer Colors can be determined by texture mapping or interpolation of vertex colors Fragments may be blocked by other fragments closer to the camera - Hidden-surface removal 11

The Programmer s Interface Programmer sees the graphics system through a software interface: the Application Programmer Interface (API) 12

API Contents Functions that specify what we need to form an image - Objects - Viewer - Light Source(s) - Materials Other information - Input from devices such as mouse and keyboard - Capabilities of system 13

Object Specification Most APIs support a limited set of primitives including - Points (0D object) - Line segments (1D objects) - Polygons (2D objects) - Some curves and surfaces Quadrics Parametric polynomials All are defined through locations in space or vertices 14

Example type of object glbegin(gl_polygon) glvertex3f(0.0, 0.0, 0.0); glvertex3f(0.0, 1.0, 0.0); glvertex3f(0.0, 0.0, 1.0); glend( ); location of vertex end of object definition 15

Camera Specification Six degrees of freedom - Position of center of lens - Orientation Lens Film size Orientation of film plane 16

Lights and Materials Types of lights - Point sources vs distributed sources - Spot lights - Near and far sources - Color properties Material properties - Absorption: color properties - Scattering Diffuse Specular 17