Computer Graphics Software & Hardware. NBAY 6120 Lecture 6 Donald P. Greenberg March 16, 2016

Similar documents
Computer Graphics Software & Hardware. NBAY 6120 Lecture 6 Donald P. Greenberg March 16, 2017

Computer Graphics. Hardware Pipeline. Visual Imaging in the Electronic Age Prof. Donald P. Greenberg October 23, 2014 Lecture 16

Computer Graphics. Hardware Pipeline. Visual Imaging in the Electronic Age Prof. Donald P. Greenberg October 13, 2016 Lecture 15

What Next? Kevin Walsh CS 3410, Spring 2010 Computer Science Cornell University. * slides thanks to Kavita Bala & many others

CS 316: Multicore/GPUs

Prof. Hakim Weatherspoon CS 3410, Spring 2015 Computer Science Cornell University

Rendering Light Reflection Models

Rendering Light Reflection Models

Light Reflection Models

CS 316: Multicore/GPUs-II

What does the Future Hold? Hakim Weatherspoon CS 3410, Spring 2013 Computer Science Cornell University

Pipeline Operations. CS 4620 Lecture 10

Pipeline Operations. CS 4620 Lecture 14

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

Introduction to Computer Graphics with WebGL

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

History of computer graphics

CS348B: Image Synthesis

Models and Architectures

3D Rasterization II COS 426

The Traditional Graphics Pipeline

Introduction Rasterization Z-buffering Shading. Graphics 2012/2013, 4th quarter. Lecture 09: graphics pipeline (rasterization and shading)

Choosing the right course

Visualisatie BMT. Rendering. Arjan Kok

The Rasterization Pipeline

Standard Graphics Pipeline

CPSC / Illumination and Shading

CHAPTER 1 Graphics Systems and Models 3

Computer Graphics. Illumination and Shading

Illumination and Shading

Today. Global illumination. Shading. Interactive applications. Rendering pipeline. Computergrafik. Shading Introduction Local shading models

CSE 591/392: GPU Programming. Introduction. Klaus Mueller. Computer Science Department Stony Brook University

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

Today. Global illumination. Shading. Interactive applications. Rendering pipeline. Computergrafik. Shading Introduction Local shading models

Introduction to Visualization and Computer Graphics

Lecturer Athanasios Nikolaidis

CMSC427 Shading Intro. Credit: slides from Dr. Zwicker

03 RENDERING PART TWO

CS451Real-time Rendering Pipeline

Recollection. Models Pixels. Model transformation Viewport transformation Clipping Rasterization Texturing + Lights & shadows

Google Daydream

Programmable GPUS. Last Time? Reading for Today. Homework 4. Planar Shadows Projective Texture Shadows Shadow Maps Shadow Volumes

CSE 167: Lecture #5: Rasterization. Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2012

Computer Vision Systems. Viewing Systems Projections Illuminations Rendering Culling and Clipping Implementations

Graphics Hardware and Display Devices

Development of Computer Graphics. mid 1950s SAGE air defense system command & control CRT, light pens

CS GPU and GPGPU Programming Lecture 8+9: GPU Architecture 7+8. Markus Hadwiger, KAUST

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

The Viewing Pipeline Coordinate Systems

Graphics and Imaging Architectures

The Traditional Graphics Pipeline

Rasterization. MIT EECS Frédo Durand and Barb Cutler. MIT EECS 6.837, Cutler and Durand 1

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

CS427 Multicore Architecture and Parallel Computing

CSE 591: GPU Programming. Introduction. Entertainment Graphics: Virtual Realism for the Masses. Computer games need to have: Klaus Mueller

Instructor. Goals. Image Synthesis Examples. Applications. Foundations of Computer Graphics. Why Study 3D Computer Graphics?

graphics pipeline computer graphics graphics pipeline 2009 fabio pellacini 1

Development of Computer Graphics

graphics pipeline computer graphics graphics pipeline 2009 fabio pellacini 1

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

CS5620 Intro to Computer Graphics

FROM VERTICES TO FRAGMENTS. Lecture 5 Comp3080 Computer Graphics HKBU

TSBK 07! Computer Graphics! Ingemar Ragnemalm, ISY

Computer Graphics Introduction. Taku Komura

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

Local Illumination physics. Law of reflection and Snell s law of refraction

Local vs. Global Illumination & Radiosity

Tutorial on GPU Programming #2. Joong-Youn Lee Supercomputing Center, KISTI

Topic 12: Texture Mapping. Motivation Sources of texture Texture coordinates Bump mapping, mip-mapping & env mapping

Final projects. Rasterization. The Graphics Pipeline. Illumination (Shading) (Lighting) Viewing Transformation. Rest of semester. This week, with TAs

CSE 167: Lecture #7: Color and Shading. Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2011

Topic 11: Texture Mapping 11/13/2017. Texture sources: Solid textures. Texture sources: Synthesized

RASTERISED RENDERING

frame buffer depth buffer stencil buffer

Graphics for VEs. Ruth Aylett

Real-Time Graphics Architecture

Computer Graphics. Bing-Yu Chen National Taiwan University

3D Computer Games Technology and History. Markus Hadwiger VRVis Research Center

Current Trends in Computer Graphics Hardware

Global Illumination CS334. Daniel G. Aliaga Department of Computer Science Purdue University

NVIDIA Case Studies:

Graphics and Interaction Surface rendering and shading

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

Topic 11: Texture Mapping 10/21/2015. Photographs. Solid textures. Procedural

Reading. 18. Projections and Z-buffers. Required: Watt, Section , 6.3, 6.6 (esp. intro and subsections 1, 4, and 8 10), Further reading:

Game Technology. Lecture Physically Based Rendering. Dipl-Inform. Robert Konrad Polona Caserman, M.Sc.

Programming Graphics Hardware

The Traditional Graphics Pipeline

Rendering. Illumination Model. Wireframe rendering simple, ambiguous Color filling flat without any 3D information

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

CSE328 Fundamentals of Computer Graphics: Concepts, Theory, Algorithms, and Applications

Computer graphics and visualization

CS 130 Final. Fall 2015

Graphics Hardware. Instructor Stephen J. Guy

Spring 2009 Prof. Hyesoon Kim

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

Rendering and Radiosity. Introduction to Design Media Lecture 4 John Lee

Evolution of Imaging Technology in Computer Graphics. Related Areas

Institutionen för systemteknik

Computer Graphics. Chapter 1 (Related to Introduction to Computer Graphics Using Java 2D and 3D)

Transcription:

Computer Graphics Software & Hardware NBAY 6120 Lecture 6 Donald P. Greenberg March 16, 2016

Recommended Readings for Lecture 6 Mike Seymour. The State of Rendering, Part 1, fxguide.com, July 15, 2013. FXGuide. Mike Seymour. The State of Rendering, Part 2, fxguide.com, July 17, 2013. FXGuide.

Why Is It Important? % of our information intake is pictorial through our eyes Educational Modules Entertainment Games Advertising Medical Computer Aided Design Data Visualization

Ivan Sutherland 163

Program of Computer Graphics, Cornell University General Electric - 167

Program of Computer Graphics, Cornell University DPG - 167

Cornell in Perspective Film 172 Program of Computer Graphics, Cornell University

Gouraud Flat Polygon Shading 172 Each polygon is shaded based on a single normal. Gouraud Thesis

Gouraud Smooth Shading 172 Each pixel is shaded by interpolating intensities computed in each of the polygon s vertices. Gouraud Thesis

Phong Shading 174

Environment Model Geometry & topology Material properties >Color, reflectance, textures >(Cost, strength, thermal properties) Lighting Geometry & position Intensity, spectral distribution Direction, spatial distribution Model Camera Perspective Raster Operations Image Storage Display

Camera Model Viewer Position Viewer direction Field of view Wide angle Telephoto Depth of focus Near Far Camera Perspective Raster Operations Image Storage Display

Perspective Model Transformation Perspective transformation Matrix multiplication (4 x 4) Clipping objects outside of the field of view Camera Perspective Raster Operations Image Storage Culling back-facing surfaces Display

Hidden Line Algorithm

Hidden Line Algorithm

Raster Operations Model Conversion from polygons to pixels Color computation Hidden surface removal (z-buffer) Camera Perspective Raster Operations Image Storage Display

Image Storage Model Typical frame buffer 1280 x 1024 pixels 3 channels (red, green, blue) 1 byte/channel Total memory 3 3/4 megabytes - single buffer 7 1/2 megabytes - double buffer Camera Perspective Raster Operations Image Storage Display

Display Digital to analog conversion 1280 x 1024 resolution 60 frames per second Total data rate 1 1/4 million pixels x 3 bytes/pixel x 60 frames/second = 225 megabytes/second = 1.8 gigabits/second Model Camera Perspective Raster Operations Image Storage Display

Direct Model Illumination User Input Camera Perspective Raster Operations Image Storage Display

Phong Model: Variations of Specular Exponent Roy Hall

Reflectance Three Approximate Components Ideal diffuse (Lambertian) Ideal specular Directional diffuse

Cook-Torrance Renderings 17

The geometry of scattering from a layered surface acm Computer Graphics, Siggraph 13 p. 166

Henrik Wann Jensen, Stephen R. Marschner, Marc Levoy, Pat Hanrahan. A Practical Model for Subsurface Light Transport, ACM Siggraph 2001, August 2001, Los Angeles, CA, pp. 511-518.

7 6 6 7 3 3 3 14 1 1 1 7 7 7 7 5 5 7 5 5 5 7 5 5 5 7 6 6 7 7 6 6 7 3 3 3 14 1 1 1 7 7 7 7 5 5 7 5 5 5 7 5 5 5 7 6 6 7 Direct Lighting and Indirect Lighting Direct Indirect Direct

Direct Lighting Only

Global Illumination

Ray Tracing Eric Haines 185

Radiosity 184

Radiosity Eric Chen 186

Radiosity 10s

Rendering Framework 17

Example: Automobile Pipeline Automobile takes 8 minutes to make, but the assembly line makes a car every two minutes. Build frame Add engine Add windows Paint body 2 minutes 2 minutes 2 minutes 2 minutes Stage 1 Stage 2 Stage 3 Stage 4 A B C D E A B C D A B C A B Time (minutes) 0 2 4 6 8 10 Donald P. Greenberg - Cornell Program of Computer Graphics

Graphics Hardware circa 170 Model P-xform Clipping Lighting Rasterize System Memory (16 scanlines) Film Recorder CPU System used to generate Phong goblet

Graphics Hardware circa 180 Model P-xform Clipping Lighting Rasterize Frame Buffer Display CPU Graphics Hardware Cost of Memory was Prohibitive 512x480x8 bit frame buffer cost $80,000! No z-buffer (at 24 or 32 bits/pixel, it requires even more memory than FB) Only single frame buffer All work done in CPU until frame buffer(slow!)

Graphics Hardware circa 186 Model Lighting P-xform Clipping Rasterize Z-Buffer Frame Frame Buffer Buffer Display CPU Graphics Hardware Added Z-Buffer Added Double Frame Buffer Rasterization and visible surface computations performed in hardware

Graphics Hardware 1 Model P-xform Texture Frame Lighting Rasterize Z-Buffer Clipping Frame Mapping Buffer Display Buffer CPU Graphics Hardware Addition of texture mapping units With texturing, high resolution detail is possible with relatively simple geometry

Multipass Example: Light Maps Two separate textures, one for the material s composition, one for the lighting X = J.L.Mitchell, M. Tatro, and I. Bullard

Castle s Geometry Agata & Andrzej Wojaczek, Advanced Graphics Applications Inc.

Reflection Example - Castle Agata & Andrzej Wojaczek, Advanced Graphics Applications Inc.

Graphics Hardware 2000 Model Vertex Buffer Lighting P-xform Clipping Texture Mapping CPU Rasterize Z-Buffer Graphics Hardware Frame Frame Buffer Buffer Display Vertex buffer (model data) added to reduce bandwidth requirements between CPU and graphics board

Graphics Pipeline - 180 s M L P S D V M Model L Lighting P Perspective/Clipping S Scan Conversion/Z-buffer D Display Storage V Video Donald P. Greenberg - Cornell Program of Computer Graphics

Graphics Pipeline - 2000 + M L P T S D V M Model L Lighting P Perspective/Clipping T Texturing S Scan Conversion/Z-buffer D Display Storage V Video Donald P. Greenberg - Cornell Program of Computer Graphics

Graphics Hardware 2003 Model Vertex Buffer Lighting Vertex Operations P-xform Clipping Texture Mapping CPU Rasterize Z-Buffer Pixel Operations Frame Frame Buffer Buffer Display Early GPU s performed lighting and clipping operations on locally stored model

Graphics Hardware 200 CPU Model Graphics Processing Unit GPU Rasterize Z-Buffer CPU Model Graphics Processing Unit GPU Rasterize Z-Buffer CPU Model Graphics Processing Unit GPU Rasterize Z-Buffer Frame Buffer Display CPU Model Graphics Processing Unit GPU Rasterize Z-Buffer

Faster than Moore s Law 10 One-pixel polygons (~10M polygons @ 30Hz) nvidia G70 10 Peak Performance ( 's/sec) 10 8 10 7 10 6 10 5 UNC Pxpl4 HP CRX 10 4 Flat shading SGI Iris HP VRX SGI GT Slope ~2.4x/year (Moore's Law ~ 1.7x/year) UNC Pxpl5 SGI SkyWriter SGI VGX HP TVRX Stellar GS1000 Gouraud shading SGI RE1 E&S F300 86 88 0 2 4 6 8 00 Year SGI RE2 Antialiasing UNC/HP PixelFlow Division Pxpl6 Textures SGI IR Accel/VSIS Megatek E&S Freedom Division VPX E&S Harmony Voodoo Graph courtesy of Professor John Poulton (from Eric Haines) SGI R-Monster Nvidia TNT GeForce 3DLabs SGI Glint Cobalt PC Graphics ATI Radeon 256 10 8 10 7 10 6 10 5 10 4

nvidia s Kepler Chip 2012

NVIDIA s new Maxwell Chip 2014 6144 processor cores (rumor) 20 nm Q4 2014

Moore s Law GPU Transistor Counts Processor Transistor count Date of introduction Manufacturer Process Area R520 321,000,000 2005 AMD 0 nm 288 mm² R580 384,000,000 2006 AMD 0 nm 352 mm² G80 681,000,000 2006 NVIDIA 0 nm 480 mm² R600 Pele 700,000,000 2007 AMD 80 nm 420 mm² G2 754,000,000 2007 NVIDIA 65 nm 324 mm² RV70XT Spartan 5,000,000 2008 AMD 55 nm 282 mm² GT200 Tesla 1,400,000,000 2008 NVIDIA 65 nm 576 mm² Cypress RV870 2,154,000,000 200 AMD 40 nm 334 mm² Cayman RV70 2,640,000,000 2010 AMD 40 nm 38 mm² GF100 Fermi 3,200,000,000 Mar 2010 NVIDIA 40 nm 526 mm² GF110 Fermi 3,000,000,000 Nov 2010 NVIDIA 40 nm 520 mm² GK104 Kepler 3,540,000,000 2012 NVIDIA 28 nm 24 mm² Tahiti RV1070 4,312,711,873 2011 AMD 28 nm 365 mm² GK110 Kepler 7,080,000,000 2012 NVIDIA 28 nm 561 mm² RV100 Hawaii 6,300,000,000 2013 AMD 28 nm 438 mm² GM204 Maxwell 5,200,000,000 2014 NVIDIA 28 nm 38 mm² GM200 Maxwell 8,100,000,000 2015 NVIDIA 28 nm 601 mm² Fiji 8,00,000,000 2015 AMD 28 nm 56 mm² http://en.wikipedia.org/wiki/transistor_count

nvidia iray 2012 nvidia has designed a series of rackable Tesla servers for very fast computation using parallel sets of their GPU hardware They developed a novel programming language (CUDA) to take advantage of their unique hardware architectures. This can be used for many other disciplines They now offer a product called Iray which computes photorealistic imagery on a cloud

Intel Integrated Graphics 2013

AMD Integrated Graphics 2013

AMD Integrated Graphics 2014 Kaveri 28 nm 47% GPU 47% GPU

Mobile GPU market share 2013 All GPU Suppliers All GPU IP Suppliers NVIDIA 3% Qualcomm 33% ZiiLabs 0.10% Takumi 2.70% Broadcom 0.20% Vivante 4.80% Takumi 4.30% Vivante ARM 4.20% 7.50% DMP 5.20% Imagination 50.10% Imagination 78.80% ARM 2.60% DMP 3.30% Source: Imagination Technologies, via http://technewspedia.com/imagination-technologies-nvidia-we-do-not-compete-against-our-customers/

End...