Graphics and Games IS 101Y/CMSC 101 Computational Thinking and Design Carolyn Seaman University of Maryland Baltimore County.

Slides:



Advertisements
Similar presentations
Ray tracing. New Concepts The recursive ray tracing algorithm Generating eye rays Non Real-time rendering.
Advertisements

Graphics Pipeline.
Computer graphics & visualization Global Illumination Effects.
Week 10 - Monday.  What did we talk about last time?  Global illumination  Shadows  Projection shadows  Soft shadows.
3D Graphics Rendering and Terrain Modeling
CLASS 9 ADVANCE RENDERING RAY TRACING RADIOSITY LIGHT FIELD CS770/870.
1 Computer Graphics Chapter 9 Rendering. [9]-2RM Rendering Three dimensional object rendering is the set of collective processes which make the object.
Part I: Basics of Computer Graphics
Acquiring the Reflectance Field of a Human Face Paul Debevec, Tim Hawkins, Chris Tchou, Haarm-Pieter Duiker, Westley Sarokin, Mark Sagar Haarm-Pieter Duiker,
Ray Tracing & Radiosity Dr. Amy H. Zhang. Outline  Ray tracing  Radiosity.
 Engineering Graphics & Introductory Design 3D Graphics and Rendering REU Modeling Course – June 13 th 2014.
Light Issues in Computer Graphics Presented by Saleema Amershi.
ATEC Procedural Animation Introduction to Procedural Methods in 3D Computer Animation Dr. Midori Kitagawa.
1. What is Lighting? 2 Example 1. Find the cubic polynomial or that passes through the four points and satisfies 1.As a photon Metal Insulator.
Computer Graphics (Fall 2005) COMS 4160, Lecture 16: Illumination and Shading 1
Computer Graphics (Fall 2005) COMS 4160, Lecture 21: Ray Tracing
1 CSCE 641: Computer Graphics Lighting Jinxiang Chai.
7M836 Animation & Rendering
Graphics Systems I-Chen Lin’s CG slides, Doug James’s CG slides Angel, Interactive Computer Graphics, Chap 1 Introduction to Graphics Pipeline.
1 7M836 Animation & Rendering Global illumination, ray tracing Arjan Kok
1 Angel: Interactive Computer Graphics 4E © Addison-Wesley 2005 Models and Architectures Ed Angel Professor of Computer Science, Electrical and Computer.
Basic Ray Tracing CMSC 435/634. Visibility Problem Rendering: converting a model to an image Visibility: deciding which objects (or parts) will appear.
Animation Theory.
CSE 872 Dr. Charles B. Owen Advanced Computer Graphics1 Other Rendering Techniques Types of rendering – Wireframe techniques – Scan-line conversion – Reyes.
Animation is mainly used to produce cartoons, however, it is also used to produce special effects in commercials, live-action movies, video games, and.
Hidden Surface Removal
MULTIMEDIA TECHNOLOGY SMM 3001 MEDIA - GRAPHICS. In this chapter how the computer creates, stores, and displays graphic images how the computer creates,
Fundamentals of Computer Graphics Part 6 Shading prof.ing.Václav Skala, CSc. University of West Bohemia Plzeň, Czech Republic ©2002 Prepared with Angel,E.:
CS 445 / 645: Introductory Computer Graphics
1 Perception, Illusion and VR HNRS 299, Spring 2008 Lecture 19 Other Graphics Considerations Review.
1 Perception and VR MONT 104S, Spring 2008 Lecture 22 Other Graphics Considerations Review.
Technology and Historical Overview. Introduction to 3d Computer Graphics  3D computer graphics is the science, study, and method of projecting a mathematical.
Computer Visualization BIM Curriculum 03. Topics  History  Computer Visualization Methods  Visualization Workflow  Technology Background.
Today More raytracing stuff –Soft shadows and anti-aliasing More rendering methods –The text book is good on this –I’ll be using images from the CDROM.
MIT EECS 6.837, Durand and Cutler Graphics Pipeline: Projective Transformations.
Ray Tracing Chapter CAP4730: Computational Structures in Computer Graphics.
INTRODUCTION INTRODUCTION Computer Graphics: As objects: images generated and/or displayed by computers. As a subject: the science of studying how to generate.
CSC 461: Lecture 3 1 CSC461 Lecture 3: Models and Architectures  Objectives –Learn the basic design of a graphics system –Introduce pipeline architecture.
1 Dr. Scott Schaefer Ray Tracing. 2/42 Ray Tracing Provides rendering method with  Refraction/Transparent surfaces  Reflective surfaces  Shadows.
Rendering Overview CSE 3541 Matt Boggus. Rendering Algorithmically generating a 2D image from 3D models Raster graphics.
Basic Ray Tracing CMSC 435/634. Visibility Problem Rendering: converting a model to an image Visibility: deciding which objects (or parts) will appear.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
1Computer Graphics Lecture 4 - Models and Architectures John Shearer Culture Lab – space 2
COMPUTER GRAPHICS CSCI 375. What do I need to know?  Familiarity with  Trigonometry  Analytic geometry  Linear algebra  Data structures  OOP.
Global Illumination Models THE WHITTED IMAGE - BASIC RECURSIVE RAY TRACING Copyright © 1997 A. Watt and L. Cooper.
CS 325 Introduction to Computer Graphics 03 / 24 / 2010 Instructor: Michael Eckmann.
1 Perception and VR MONT 104S, Fall 2008 Lecture 21 More Graphics for VR.
Introduction to Radiosity Geometry Group Discussion Session Jiajian (John) Chen 9/10/2007.
Digital Media Dr. Jim Rowan ITEC 2110 Vector Graphics II.
Basic Ray Tracing CMSC 435/634.
Subject Name: Computer Graphics Subject Code: Textbook: “Computer Graphics”, C Version By Hearn and Baker Credits: 6 1.
Ray Tracing Fall, Introduction Simple idea  Forward Mapping  Natural phenomenon infinite number of rays from light source to object to viewer.
In the name of God Computer Graphics. Last Time Some techniques for modeling Today Global illumination and raytracing.
Graphics Lecture 17: Slide 1 Interactive Computer Graphics Lecture 17: Fire.
Nonphotorealistic rendering Computational Photography, Bill Freeman Fredo Durand May 9, 2006 Drawing from: NPR Siggraph 1999 course, Green et al.
1 CSCE 441: Computer Graphics Lighting Jinxiang Chai.
1. Ray Casting Surface intersection Visible surface detection Ray Tracing Bounce the ray Collecting intensity Technique for global reflection and transmission.
RENDERING : Global Illumination
1 CSCE 441: Computer Graphics Lighting Jinxiang Chai.
1 E. Angel and D. Shreiner: Interactive Computer Graphics 6E © Addison-Wesley 2012 Models and Architectures 靜宜大學 資訊工程系 蔡奇偉 副教授 2012.
CS552: Computer Graphics Lecture 33: Illumination and Shading.
1 CSCE 441: Computer Graphics Lighting Jinxiang Chai.
CS552: Computer Graphics Lecture 36: Ray Tracing.
Basic Ray Tracing CMSC 435/634.
3D Graphics Rendering PPT By Ricardo Veguilla.
Interactive Computer Graphics
© University of Wisconsin, CS559 Fall 2004
(c) 2002 University of Wisconsin
Lighting.
Introduction to spagetti and meatballs
Presentation transcript:

Graphics and Games IS 101Y/CMSC 101 Computational Thinking and Design Carolyn Seaman University of Maryland Baltimore County

Quiz Individual quiz: 5 minutes Team quiz: 5 minutes

Games What things are important for developing compelling/successful computer games? What background/skills would someone need to work in the field?

Game Development Simulation and modeling (physics and effects of players’ actions) Graphics (simulating the visual appearance of the “game world” visually) is a huge part Game design (basic concept, levels of play, strategies and skill) I/O (joystick control, haptic interface, Kinect, pressure sensors...) Networking and communication (especially in MMOGs) Game AI (smart opponents/bots)

Computer Graphics Using computer to generate simulated scenes or worlds Can require tricking the eye into believing that a 2D collection of pixels is really a continuous 3D world Coding-intensive applications with strong basis in creativity and human perception Five key problems to be solved: What shape is it? What do you see? What does it look like? How does it move? Why does it have to look like a photograph?

What shape is it?

Modeling Approaches Modeling problem Define shape, color, and other visual properties Modeling solutions Manual primitive creation Scans from physical object Functional descriptions Grammar-based generation Biologically inspired simulations

Scanning

Functional Descriptions Define visual attributes with function, defined over space Shape Density Color

Grammar-based Generation Use (mostly) context-free grammars (CFG) to specify structural change over generations A CFG G=(V,T,S,P) with V is a set of non-terminals T is a set of terminals S is the start symbol P is a set of productions (rules) of the form: A  x, where A  V, x  (V  T)*

Biological Simulations Mimic developmental process: cellular automata reaction diffusion

What do you see?

Painter’s Algorithm Basic approach Draw polygons, from farthest to closest Given List of polygons {P 1, P 2, …. P n ) An array of Intensity [x,y] Begin Sort polygon list on minimum Z (largest z value comes first in sorted list) For each polygon P in selected list do For each pixel (x,y) that intersects P do Intensity[x,y] = intensity of P at (x,y) Display Intensity array

Z-Buffer Basic approach Draw polygons, remembering depth of stuff drawn so far Given List of polygons {P 1, P 2, …., P n } An array x-buffer[x,y] initialized to +infinity An array Intensity[x,y] Begin For each polygon P in selected list do For each pixel (x,y) that intersects P do Calculate z-depth of P at (x,y) If z-depth < z-buffer[x,y] then Intensity[x,y] = intensity of P at (x,y) Z-buffer[x,y] = z-depth Display Intensity array

Raytracing Basic approach Cast ray from viewpoint through pixels into scene Given List of polygons { P 1, P 2,..., P n } An array of intensity [ x, y ] { For each pixel (x, y) { form a ray R in object space through the camera position C and the pixel (x, y) Intensity [ x, y ] = trace ( R ) } Display array Intensity }

What does it look like?

Illumination Approaches Illumination problem Model how objects interact with light Modeling solutions Simple physics/optics More realistic physics Surface physics Surface microstructure Subsurface scattering Shadows Light transport

Simple Optics: Diffuse Reflection Lambert’s Law: the radiant energy from any small surface area dA in any direction  relative to the surface normal is proportional to cos  I diff = k d I l cos  = k d I l (NL)

Surface Physics Conductor (like metal) Dielectric (like glass) Composite (like plastic)

Surface Microstructure Stam ‘99

Subsurface Scattering Jensen et al, ‘01

Shadows Laine et al., SIGGRAPH ‘05

How does it move?

Motion Dynamics Approaches Motion dynamics problem Define geometric movements and deformations of objections under motion Dynamics solutions Simulate physics of simple objects Model structure and constraints Capture motion from reality Simulate group dynamics Use your imagination

Simulate Physics

Motion Capture

Why does it have to look like a photograph? (It doesn’t!)

Artistic Rendering Approaches Artistic rendering problem (NPR) Produce images from geometric models that are more expressive or mimic alternative media Artistic rendering solutions Mimic characteristics of media Physically simulate media Break rules Learn styles

Mimic media

Physical Media Simulation

Break the Rules