Image Formation. CS418 Computer Graphics Eric Shaffer.

Similar documents
CS 418: Interactive Computer Graphics. Introduction. Eric Shaffer

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

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

Models and Architectures

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

Computer Graphics - Chapter 1 Graphics Systems and Models

Optics of Vision. MATERIAL TO READ Web: 1.

The Display pipeline. The fast forward version. The Display Pipeline The order may vary somewhat. The Graphics Pipeline. To draw images.

Game Programming. Bing-Yu Chen National Taiwan University

Representing the World

3D graphics, raster and colors CS312 Fall 2010

(0, 1, 1) (0, 1, 1) (0, 1, 0) What is light? What is color? Terminology

CIS 581 Interactive Computer Graphics

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

(A) Electromagnetic. B) Mechanical. (C) Longitudinal. (D) None of these.

Introduction to Computer Graphics with WebGL

CS4670: Computer Vision

Lenses: Focus and Defocus

Light. Properties of light. What is light? Today What is light? How do we measure it? How does light propagate? How does light interact with matter?

Ray Optics. Ray model Reflection Refraction, total internal reflection Color dispersion Lenses Image formation Magnification Spherical mirrors

Introduction to Computer Graphics with WebGL

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

ENGINEERING Electrical Engineering

Rasterization Overview

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

Pipeline Operations. CS 4620 Lecture 14

CSE4030 Introduction to Computer Graphics

The image is virtual and erect. When a mirror is rotated through a certain angle, the reflected ray is rotated through twice this angle.

CS451Real-time Rendering Pipeline

Computer Graphics and Visualization. What is computer graphics?

CS6670: Computer Vision

Modeling the top neuron layers of the human retina. Laurens Koppenol ( ) Universiteit Utrecht

CS5670: Computer Vision

Visual Perception. Basics

Computer Vision Course Lecture 02. Image Formation Light and Color. Ceyhun Burak Akgül, PhD cba-research.com. Spring 2015 Last updated 04/03/2015

Computer Graphics. Bing-Yu Chen National Taiwan University

Pipeline Operations. CS 4620 Lecture 10

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

Movie: For The Birds. Announcements. Ray Tracing 1. Programming 2 Recap. Programming 3 Info Test data for part 1 (Lines) is available

CS6670: Computer Vision

Visual areas in the brain. Image removed for copyright reasons.

COSC579: Scene Geometry. Jeremy Bolton, PhD Assistant Teaching Professor

Physics 9 Friday, September 28, 2018

Today. Rendering pipeline. Rendering pipeline. Object vs. Image order. Rendering engine Rendering engine (jtrt) Computergrafik. Rendering pipeline

Today. Rendering algorithms. Rendering algorithms. Images. Images. Rendering Algorithms. Course overview Organization Introduction to ray tracing

A Qualitative Analysis of 3D Display Technology

Computer Graphics Introduction. Taku Komura

CS380: Computer Graphics Introduction. Sung-Eui Yoon ( 윤성의 ) Course URL:

Graphics and Games. Penny Rheingans University of Maryland Baltimore County

Drawing in 3D (viewing, projection, and the rest of the pipeline)

CS 563 Advanced Topics in Computer Graphics Stereoscopy. by Sam Song

CPSC / Illumination and Shading

Movie: Geri s Game. Announcements. Ray Casting 2. Programming 2 Recap. Programming 3 Info Test data for part 1 (Lines) is available

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

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

9. RAY OPTICS AND OPTICAL INSTRUMENTS

Lecture 15: Shading-I. CITS3003 Graphics & Animation

Supplement to Lecture 16

CS354 Computer Graphics Ray Tracing. Qixing Huang Januray 24th 2017

Light. Computer Vision. James Hays

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

Comp/Phys/Apsc 715. Example Videos. Pop Quiz! 1/30/2014

CIS 581 Interactive Computer Graphics (slides based on Dr. Han-Wei Shen s slides) Requirements. Reference Books. Textbook

Realtime 3D Computer Graphics Virtual Reality

UNIT VI OPTICS ALL THE POSSIBLE FORMULAE

Image Formation. Camera trial #1. Pinhole camera. What is an Image? Light and the EM spectrum The H.V.S. and Color Perception

Introduction to Image Processing

Three Main Themes of Computer Graphics

Neurophysical Model by Barten and Its Development

The Rendering Pipeline

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

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

Global Illumination. Frank Dellaert Some slides by Jim Rehg, Philip Dutre

Welcome to COMP 770 (236) Introduction. Prerequisites. Prerequisites

The Graphics Pipeline and OpenGL I: Transformations!

Functional Characteristics of Lenses

Computer Graphics. Illumination and Shading

INTRODUCTION. Slides modified from Angel book 6e

Color and Shading. Color. Shapiro and Stockman, Chapter 6. Color and Machine Vision. Color and Perception

AP Physics: Curved Mirrors and Lenses

Drawing in 3D (viewing, projection, and the rest of the pipeline)

Modeling Light. On Simulating the Visual Experience

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

An introduction to 3D image reconstruction and understanding concepts and ideas

I have a meeting with Peter Lee and Bob Cosgrove on Wednesday to discuss the future of the cluster. Computer Graphics

Announcements. Light. Properties of light. Light. Project status reports on Wednesday. Readings. Today. Readings Szeliski, 2.2, 2.3.

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

CS 418: Interactive Computer Graphics. Projection

CS 563 Advanced Topics in Computer Graphics Camera Models. by Kevin Kardian

Computational Perception. Visual Coding 3

Volume Rendering. Computer Animation and Visualisation Lecture 9. Taku Komura. Institute for Perception, Action & Behaviour School of Informatics

Virtual Reality for Human Computer Interaction

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

Computer Graphics Fundamentals. Jon Macey

Today. Rendering algorithms. Rendering algorithms. Images. Images. Rendering Algorithms. Course overview Organization Introduction to ray tracing

03 RENDERING PART TWO

Overview: Ray Tracing & The Perspective Projection Pipeline

Survey in Computer Graphics Computer Graphics and Visualization

Recap: Refraction. Amount of bending depends on: - angle of incidence - refractive index of medium. (n 2 > n 1 ) n 2

Homework 1: Getting Started with WebGL and Transformations EE267 Virtual Reality 2018

Transcription:

Image Formation CS418 Computer Graphics Eric Shaffer http://graphics.cs.illinois.edu/cs418/fa14

Some stuff about the class Grades probably on usual scale: 97 to 93: A 93 to 90: A- 90 to 87: B+ 87 to 83: B 83 to 80: B- etc. won t be any tighter Write the MPs individually unless otherwise instructed Help people on Piazza especially with platform-specific coding questions Book will be posted PDFs

Great Moments in Computer Graphics John Hart asked me to show you this:

Great Moments in Computer Graphics Guardians of the Galaxy Rocket Racoon Academy Award for Physcially-Based Rendering

What drives CG technology Movie Industry Production rendering non-interactive

What drives CG technology Video Game Industry Higher revenue than movies ($13B vs $12.9B in 2013)

What drives CG technology Medical Imaging and Scientific Visualization Imaging one of the biggest advances in medicine Sci Vis allows people to see previously hidden phenomena

What drives CG technology Computer Aided Design Engineering, Architecture, the Maker movement

Computer Vision and Computer Graphics are Inverse Problems Computer Vision Seeks to create digital model of real objects through analyzing images very hard Computer Graphics Seeks to generate images from digital models

World s simplest Ray-tracer Figure from Ray Tracing from the Ground Up by Kevin Suffern

What sub-tasks happened Image processing Rendering Geometric Modeling Animation well, we didn t animate, but we could

Our lighting was not good Any suggested hacks? CG is replete with hacks/clever tricks that mimic principled physical modeling And the way to more realistically light would be

A word about OpenGL Open standard for graphics programming Developed by Silicon Graphics in 1992 Available on most platforms Bindings available for lots of languages It s low level We ll use it in this class.. Windowing typically requires another library e.g. GLUT You can use any programming language or platform you want unless we specify otherwise Discussion sections will go into depth on coding Our examples will usually use C and GLUT

OpenGL in Industry

OpenGL in Industry

OpenGL in Industry

WebGL is not exactly OpenGL Figure from WebGL Programming Guide: Interactive 3D Graphics Programming with WebGL by Matsuda and Lea

WebGL Application Structure Figure from WebGL Programming Guide: Interactive 3D Graphics Programming with WebGL by Matsuda and Lea Your application will generally just have HTML and JavaScript files

WebGL WebGL relatively new (2011) 3D graphics support for web WebGL advantages runs in browser naturally cross-platform don t need to obtain/build other libraries gives you windowing for free easy to publish/share your stuff Disadvantages Depends on how you feel about JavaScript Performance can be tricky

Rayleigh Scattering

Chlorophyll

The Human Eye We perceive the world around us largely through images Pupil controls aperature Varifocal lens controls focus Image projected onto retina

Acuity Angular resolution of retina Snellen ratio: 20/X means you distinguish at 20 feet what the average person distinguishes at X feet. 20/20 = distinguish two points 1 arc minute apart nodal point (optical center) θ = 1 2tan ( h/ 2 d) h d

Focus Simple lens Focal length: f Power: 1/f diopters When d = f = r = 17mm 1m/f = 59 diopters 1 1 1 = + f d r nodal point (optical center) Compound lens cornea: 40 diopters lens: 12 diopters (kids) lose ~ 0.2 diopters/year lens rigid by age 60 1 1 1 = + f f f r =17mm 1 2 d

Chromatic Aberration Refractive index of lens material varies by wavelength Resulting dispersion causes focal plane to vary by color Need 1.5 diopters to focus red and blue to the same depth Never use pure blue (add a bit of red or green to aid in focusing on edges) Warm colors close, cool colors far

Most people see the red, Closer than the blue. Others see the opposite. How about you?

The Human Eye Rods measure brightness whereas cones measure color What we perceive is a heavily processed version of what we physically sense Perceptual nerves process edges and motion before the signal even gets to the brain

The Human Eye Cornea, lens focus light onto Retina from Gray s Anatomy Photoreceptors rods - brightness cones color (red, green, blue) Ganglions nerve cells (X-cells) detect pattern (Y-cells) detect movement

Lateral Inhibition Rods accentuates and exaggerates differences in space and time Eye s internal real-time edge and motion detector Used to detect predators like tigers in the bushes Middle squares same shade of gray -1-1 -1-1 8-1 -1-1 -1

Rods & Cones Blind spot (optic nerve, no rods or cones) rods only Fovea ~0.5º (cones only) Rods measure intensity 80 million Denser away from fovea Astronomers learn to glance off to the side of what they are studying sensitive, shut down in daylight R,G and B cones 5 million total 100K 325K cones/mm 2 in fovea 150 hues Combined 7 million shades Deering s Photon Accurate Model of the Human Retina from SIGGRAPH 2005 rods & cones

The Human Eye

Cone Response 1.0 0.8 log human cone response (normalized) 0.6 0.4 0.2 0 400 450 500 550 600 650 700 wavelength Stockman, MacLeod & Johnson (1993) J. Optical Society of America A, 10, 2491-2521, via Wikipedia

Color Perception L = 31% R + 59% G + 10% B 10% of males are color blind Pay attention to contrast! 400 500 600 700 Eye color space L, R + G B, R G Color space is blackó white, yellowó blue, redó green

Color in Context

Color in Context

The Camera

The Image Plane

Polygonal Models

Pixel Discretization

Raster Rendering For each polygon: Compute illumination Project to image plane Fill in pixels

From Mesh to Pixels Model Coords Model Xform World Coords Viewing Xform Viewing Coords Perspective Distortion Homogeneous Divide Still Clip Coords Clipping Clip Coords Window Coordinates Window to Viewport Viewport Coordinates Setup & Rasterization Pixels Culling Fragments Frag Shading Fragments