Animation & Rendering

Similar documents
MODELING AND HIERARCHY

CHAPTER 1 Graphics Systems and Models 3

Introduction to Computer Graphics. Knowledge basic concepts 2D and 3D computer graphics

Computer Graphics Introduction. Taku Komura

CS451Real-time Rendering Pipeline

Computer Graphics Fundamentals. Jon Macey

Visualisatie BMT. Rendering. Arjan Kok

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

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

Lecturer Athanasios Nikolaidis

3D graphics, raster and colors CS312 Fall 2010

Computer Graphics and Visualization. What is computer graphics?

Some Resources. What won t I learn? What will I learn? Topics

Computer Graphics 1. Chapter 2 (May 19th, 2011, 2-4pm): 3D Modeling. LMU München Medieninformatik Andreas Butz Computergraphik 1 SS2011

CSE528 Computer Graphics: Theory, Algorithms, and Applications

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

CIS 581 Interactive Computer Graphics

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

Development of Computer Graphics

Computer Graphics. Bing-Yu Chen National Taiwan University

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

3D GRAPHICS. design. animate. render

Graphics Hardware and Display Devices

Course Title: Computer Graphics Course no: CSC209

EF432. Introduction to spagetti and meatballs

Game Programming. Bing-Yu Chen National Taiwan University

CHETTINAD COLLEGE OF ENGINEERING & TECHNOLOGY CS2401 COMPUTER GRAPHICS QUESTION BANK

Topics and things to know about them:

Lahore University of Management Sciences. CS 452 Computer Graphics

Review. Stephen J. Guy

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

CS 464 Review. Review of Computer Graphics for Final Exam

03 Vector Graphics. Multimedia Systems. 2D and 3D Graphics, Transformations

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

Spring 2009 Prof. Hyesoon Kim

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

Chapter 4-3D Modeling

L1 - Introduction. Contents. Introduction of CAD/CAM system Components of CAD/CAM systems Basic concepts of graphics programming

Computer Graphics I Lecture 11

Introduction to Computer Graphics

EF432. Introduction to spagetti and meatballs

9. Three Dimensional Object Representations

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

Modeling 3D Objects: Part 2

Overview. Computer Graphics CS324. OpenGL. Books. Learning Resources. CS131 Notes. 30 Lectures 3hr Exam

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

CS 352: Computer Graphics. Hierarchical Graphics, Modeling, And Animation

Evolution of Imaging Technology in Computer Graphics. Related Areas

Foundations of 3D Graphics Programming

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

CSE4030 Introduction to Computer Graphics

2: Introducing image synthesis. Some orientation how did we get here? Graphics system architecture Overview of OpenGL / GLU / GLUT

Shape Representation Basic problem We make pictures of things How do we describe those things? Many of those things are shapes Other things include

Surface Rendering. Surface Rendering

Goals. Computer Graphics (Fall 2008) Course Outline. Course Outline. Course Outline. Demo: Surreal and Crazy World (HW 3)

Graphics and Interaction Rendering pipeline & object modelling

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

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

Points and lines, Line drawing algorithms. Circle generating algorithms, Midpoint circle Parallel version of these algorithms

Graphics File Formats

National Chiao Tung Univ, Taiwan By: I-Chen Lin, Assistant Professor

Survey in Computer Graphics Computer Graphics and Visualization

Surface Modeling. Polygon Tables. Types: Generating models: Polygon Surfaces. Polygon surfaces Curved surfaces Volumes. Interactive Procedural

Ray Casting of Trimmed NURBS Surfaces on the GPU

CS2401 COMPUTER GRAPHICS ANNA UNIV QUESTION BANK

Effects needed for Realism. Computer Graphics (Fall 2008) Ray Tracing. Ray Tracing: History. Outline

Spring 2011 Prof. Hyesoon Kim

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

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

Hierarchical Models Josef Pelikán & Alexander Wilkie CGG MFF UK Praha

CSE528 Computer Graphics: Theory, Algorithms, and Applications

Spatial Data Structures

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

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

3D Object Representation

COURSE DELIVERY PLAN - THEORY Page 1 of 6

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

Lahore University of Management Sciences. CS 452 Computer Graphics

The Viewing Pipeline Coordinate Systems

Buffers, Textures, Compositing, and Blending. Overview. Buffers. David Carr Virtual Environments, Fundamentals Spring 2005 Based on Slides by E.

Effects needed for Realism. Ray Tracing. Ray Tracing: History. Outline. Foundations of Computer Graphics (Spring 2012)

6. Illumination, Lighting

INFOGR Computer Graphics

The Traditional Graphics Pipeline

REYES REYES REYES. Goals of REYES. REYES Design Principles

Binghamton University. EngiNet. Thomas J. Watson. School of Engineering and Applied Science. State University of New York. EngiNet WARNING CS 560

Lecture 12: Advanced Rendering

Sculpting 3D Models. Glossary

COMP30019 Graphics and Interaction Rendering pipeline & object modelling

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

3D Modeling: Surfaces

Texture Mapping II. Light maps Environment Maps Projective Textures Bump Maps Displacement Maps Solid Textures Mipmaps Shadows 1. 7.

Ray Tracing. Foley & Van Dam, Chapters 15 and 16

Ray Tracing Foley & Van Dam, Chapters 15 and 16

INTRODUCTION. Slides modified from Angel book 6e

Level of Details in Computer Rendering

Welcome to CS 4/57101 Computer Graphics

Surface and Solid Geometry. 3D Polygons

Complex Features on a Surface. CITS4241 Visualisation Lectures 22 & 23. Texture mapping techniques. Texture mapping techniques

Ray Tracing. Outline. Ray Tracing: History

Transcription:

7M836 Animation & Rendering Introduction, color, raster graphics, modeling, transformations Arjan Kok, Kees Huizing, Huub van de Wetering h.v.d.wetering@tue.nl 1

Purpose Understand 3D computer graphics principles Terminology Basic algorithms Complexity Get better results using modern animation and rendering packages 2

7M836 Lectures Exercises Assignments http://www.ds.arch.tue.nl/7m836/ 3

Contents 1. Introduction Computer graphics, color, raster graphics, graphics pipeline, geometric modeling, transformation. 2. Viewing and visible surface determination Viewing, clipping, projection, visible surface determination 3. Illumination and shading Light sources, reflection, shading 4. Ray tracing 4

Contents 5. Radiosity 6. Mapping techniques Texture mapping, bump mapping, environment mapping, aliasing 7. Animation Animation process, keyframe animation, forward and inverse kinematics 8. Examples and virtual reality 5

Literature Computer Graphics Principles and Practice (second edition) Foley, van Dam, Feiner, Hughes 3D Computer Graphics A. Watt Advanced Animation and Rendering Techniques: Theory and Practice A. Watt, M. Watt 3D Graphics : A Visual Approach R.J. Wolfe and many more 6

Computer graphics Image Analysis (pattern recognition) Mathematical Model Image Image Synthesis (rendering) Modeling Image processing 7

Supporting disciplines Computer science algorithms, data structures, software engineering, Mathematics geometry, numerical, Physics optics, mechanics, Psychology color, perception Art and design 8

Color models RGB red, green, blue HSV hue, saturation, value 9

RGB-model 3 primary colors: red, green, and blue Color cube: Color = point in cube Additive: C = r R + g G + b B R B G 10

HSV-model More user oriented: based on intuitive perception Hue: tint (0-360 ) Saturation: shade (0-1) Value: brightness (0-1) Color is point in cone 11

Color models Limitation of color models, such as HSV and RGB: No linear relation with perception. At some places in RGB cube a small step results in a visual change, while at other places it does not. Color models describe the colors a monitor can display. That is only a subset of what a human can see. 12

Computer graphics Vector graphics Image is represented by continuous geometric objects: lines, curves, etc Exact, scalable Diagrams, schemes,... Examples: PowerPoint, CorelDraw,... Raster graphics Image is represented as an rectangular grid of (coloured) squares Examples: Paint, PhotoShop,... 13

Raster graphics Currently standard for computer graphics Screen is subdivided in grid of squares : picture elements or pixels Per pixel: n bits information Resolution: size of grid and number of bits per pixel 14

Raster graphics hardware system bus display processor CPU system memory 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 1 1 1 0 1 0 1 0 1 1 1 0 0 1 0 0 1 1 1 0 0 1 0 0 0 0 0 0 0 1 0 frame buffer video controller monitor 15

Raster display 1 bit per pixel 0 = black, 1 = white 0 0 1 480 0 1 0 pixel 640 16

Raster display 8 bits / pixel 256 gray values 0 (black) to 255 (white) 0 200 128 64 255 255 17

Raster display 8 bits / pixel 0 255: index in color lookup table Color lookup table contains 256 colors chosen from 16 million colors 0 1 2 3 255 255 code red green blue 0 0 0 0 1 255 0 0 2 255 255 0 3 128 128 128............ 255 255 255 255 18

Raster display 24 bits / pixel Per pixel: red, green, and blue 16 million colors at the same time True color 128,128,128 red green blue 19

File formats Number of colors Size (uncompressed) 1-bit 2 black/white 37.5 kb 8-bit 256 gray values 256 color values (CLUT) 307.2 kb GIF, (PNG) 24-bit 256x256x256 colors 921.6 kb BMP, TGA, TIFF, JPEG 32-bit 256x256x256 colors 8 bits alpha plane 1228.8 kb TGA Vector EPS, PS 20

File formats Content image / purpose Format Many colors; continuous variation in colors (photo s) Storage Many colors; continuous variation in colors (photo s) Presentation TIFF, TGA, BMP, PPM JPEG Limited number of colors GIF, PNG Line drawings PS, EPS File format conversion tool: Irfanview 21

Graphics Software Special-purpose packages Photoshop, Powerpoint, AutoCAD, 3D Studio, Maya,.. Computer-graphics application programming interfaces (CG API) Set of graphics functions used from programming language Access to hardware OpenGL, Direct3D, VRML, Java3D,.. 22

Rendering How do I generate a realistic image of a scene? Problems: World is complex (shape, light,...) World is 3 dimensional, screen is 2 dimensional... 23

Problem subdivision Geometric modeling How do we define the shape of an object? Projection and hidden surface removal How do we determine what is visible on screen and what is not? Shading How do we model color, texture, and contribution of light? Rasterization How do we determine pixel values? 24

Graphics pipeline Geometric model Viewing Camera parameters Visible surface determination Light sources, materials Shading Rasterization Raster display 25

Geometric modeling World contains all kind of objects Trees, humans, buildings, clouds, mountains, waves, fire, plants, Describe objects in a way that (user) input is easy processing is easy display is easy easy means: simple things easy, complex things possible. 26

Geometric modeling Examples Wireframe Procedural Polygons Constructive solid geometry Curved surfaces Ad hoc techniques 27

Wireframe Model is sequence of lines connecting points No information on surface/faces available, therefore No visibility information no shaded images possible Face information cannot be deduced automatically 28

Wireframe 29

Procedural Shape defined by type and parameters Program interprets definition Examples Type = sphere, position = [3, 4, 5], radius = 2 Type = oak, age = 10 years Compact, easy input, tailored to application Often internal conversion to other representation We will use this in the exercises with PovRay. 30

Polygons Polygon consists of three or more points lying in a plane (often triangle) Model is collection of polygons Input and change of model is laborious Very well suited for hardware Often used as end representation 31

Polygons 32

Constructive solid geometry Model is defined by hierarchy of Boolean operations on standard shapes, such as cube, sphere, cylinder, cone, and torus Boolean operations union, difference, intersection Useful for input, e.g. in mechanical engineering Often, conversion to other representation needed before model is rendered 33

Constructive solid geometry 34

Curved surfaces Smooth curve defined by sequence of control points p 4 p 3 p 1 p 2 pt =1 t 3 p 0 31 t 2 t p 1 31 tt 2 p 2 t 3 p 3 35

Curved surfaces Smooth surface defined by grid of control points Bézier surfaces NURBS.. 36

The Utah teapot 37

Curved surfaces Very useful for modeling, e.g. in car industry, but also in cartoon animation Often conversion to other representation (polygons) before model can be rendered 38

Ad hoc techniques Mountain shapes: wrinkled shapes (fractals) Firework: particles Plants: Lindenmayer systems Hair and fur Fabric en clothing Clouds 39

Geometric modeling Input: Computer Aided Design (CAD) system Convenient for input: Curved surfaces, CSG, procedural representations Appropriate for computer processing/display: Polygons, points, lines 40

Modeling-transformations Besides shape, position, orientation, and scale of objects in a scene is important Often, model consists of several parts that are positioned relatively to each other 41

Coordinate systems world train wheel 42

Modeling-transformations Complete model (scene) specified in world coordinates Objects within model specified in object coordinates Transformation positions object into world Object may contain sub-objects that are specified in their own local coordinates Transformation positions sub-object into object Hierarchical model 43

Example World contains (for instance) human figure Human figure is built from: torso + head + arm + arm + leg + leg +.. Arm is built from: upper arm + lower arm + hand +.. Etc. 44

Graphics pipeline Geometric model Viewing Camera parameters Visible surface determination Light sources, materials Shading Rasterizaton Raster display 45