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

Similar documents
Graphics and Interaction Rendering pipeline & object modelling

CHAPTER 1 Graphics Systems and Models 3

Rasterization Overview

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

3D graphics, raster and colors CS312 Fall 2010

Models and Architectures

Scene Management. Video Game Technologies 11498: MSc in Computer Science and Engineering 11156: MSc in Game Design and Development

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

COMP30019 Graphics and Interaction Rendering pipeline & object modelling

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

CHETTINAD COLLEGE OF ENGINEERING & TECHNOLOGY CS2401 COMPUTER GRAPHICS QUESTION BANK

MIT EECS 6.837, Teller and Durand 1

Computer Graphics I Lecture 11

CSE4030 Introduction to Computer Graphics

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

9. Visible-Surface Detection Methods

Hidden Surface Removal

Topics and things to know about them:

Chapter 5. Projections and Rendering

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

Viewing with Computers (OpenGL)

Graphics Hardware and Display Devices

6.837 Introduction to Computer Graphics Final Exam Tuesday, December 20, :05-12pm Two hand-written sheet of notes (4 pages) allowed 1 SSD [ /17]

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

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

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

Spatial Data Structures and Speed-Up Techniques. Tomas Akenine-Möller Department of Computer Engineering Chalmers University of Technology

Computer Graphics Shadow Algorithms

8. Hidden Surface Elimination

Animation & Rendering

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

Introduction to Computer Graphics

Motivation. Culling Don t draw what you can t see! What can t we see? Low-level Culling

VISIBILITY & CULLING. Don t draw what you can t see. Thomas Larsson, Afshin Ameri DVA338, Spring 2018, MDH

Introduction to Computer Graphics with WebGL

Course Title: Computer Graphics Course no: CSC209

Visibility and Occlusion Culling

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

Computer Graphics. Si Lu. Fall uter_graphics.htm 11/22/2017

Interpolation using scanline algorithm

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

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

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

CSE528 Computer Graphics: Theory, Algorithms, and Applications

Two basic types: image-precision and object-precision. Image-precision For each pixel, determine which object is visable Requires np operations

Graphics Systems and Models

Overview: Ray Tracing & The Perspective Projection Pipeline

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

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

Image Base Rendering: An Introduction

CS 381 Computer Graphics, Fall 2012 Midterm Exam Solutions. The Midterm Exam was given in class on Tuesday, October 16, 2012.

FROM VERTICES TO FRAGMENTS. Lecture 5 Comp3080 Computer Graphics HKBU

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

CS451Real-time Rendering Pipeline

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

Ray Tracing Foley & Van Dam, Chapters 15 and 16

Spatial Data Structures

Specialized Acceleration Structures for Ray-Tracing. Warren Hunt

Computer Graphics (CS 543) Lecture 13b Ray Tracing (Part 1) Prof Emmanuel Agu. Computer Science Dept. Worcester Polytechnic Institute (WPI)

graphics pipeline computer graphics graphics pipeline 2009 fabio pellacini 1

Clipping & Culling. Lecture 11 Spring Trivial Rejection Outcode Clipping Plane-at-a-time Clipping Backface Culling

graphics pipeline computer graphics graphics pipeline 2009 fabio pellacini 1

CMSC427 Final Practice v2 Fall 2017

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

Page 1. Area-Subdivision Algorithms z-buffer Algorithm List Priority Algorithms BSP (Binary Space Partitioning Tree) Scan-line Algorithms

Real-Time Rendering (Echtzeitgraphik) Dr. Michael Wimmer

Drawing the Visible Objects

Computing Visibility. Backface Culling for General Visibility. One More Trick with Planes. BSP Trees Ray Casting Depth Buffering Quiz

CEng 477 Introduction to Computer Graphics Fall 2007

Visible Surface Detection Methods

Midterm Exam! CS 184: Foundations of Computer Graphics! page 1 of 13!

Last Time: Acceleration Data Structures for Ray Tracing. Schedule. Today. Shadows & Light Sources. Shadows

Homework #2. Hidden Surfaces, Projections, Shading and Texture, Ray Tracing, and Parametric Curves

Computer Graphics and Visualization. Graphics Systems and Models

QUESTION BANK 10CS65 : COMPUTER GRAPHICS AND VISUALIZATION

Some Thoughts on Visibility

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

Graphics for VEs. Ruth Aylett

Introduction to Computer Graphics with WebGL

CS602 Midterm Subjective Solved with Reference By WELL WISHER (Aqua Leo)

For Intuition about Scene Lighting. Today. Limitations of Planar Shadows. Cast Shadows on Planar Surfaces. Shadow/View Duality.

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

Topic 10: Scene Management, Particle Systems and Normal Mapping. CITS4242: Game Design and Multimedia

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

CS488. Visible-Surface Determination. Luc RENAMBOT

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

Computer graphics and visualization

Lecture 8 Ray tracing Part 1: Basic concept Yong-Jin Liu.

COM337 COMPUTER GRAPHICS Other Topics

AutoCAD DWG Drawing Limitations in SAP 3D Visual Enterprise 9.0 FP02

Computer Graphics 7: Viewing in 3-D

Ray Tracing Basics I. Computer Graphics as Virtual Photography. camera (captures light) real scene. photo. Photographic print. Photography: processing

Game Programming. Bing-Yu Chen National Taiwan University

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

CITSTUDENTS.IN VIEWING. Computer Graphics and Visualization. Classical and computer viewing. Viewing with a computer. Positioning of the camera

Cs602-computer graphics MCQS MIDTERM EXAMINATION SOLVED BY ~ LIBRIANSMINE ~

TEACHING PLAN FAKULTI TEKNOLOGI MAKLUMAT DAN KOMUNIKASI UNIVERSITI TEKNIKAL MALAYSIA MELAKA

Spatial Data Structures

Werner Purgathofer

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

Transcription:

Chapter 4 Chapter 4 Chapter 4. Introduction to 3D graphics 4.1 Scene traversal 4.2 Modeling transformation 4.3 Viewing transformation 4.4 Clipping 4.5 Hidden faces removal 4.6 Projection 4.7 Lighting 4.8 Other operations Computer Graphics 2006/2007 Chapter 4. Introduction to 3D 1

The visualization process Image synthesis process (visualization process) is the set of 3D and 2D operations undertaken over a computer data model that generate a graphic representation of the model in a physical display Computer Graphics 2006/2007 Chapter 4. Introduction to 3D 2

The visualization process In general, the following is considered as available: A 3D geometric description of the objects A physic description of the objects (physics properties) A scene observer or viewer Lighting (a collection of lights) A visualization device An objective to accomplish (realism, performance, color coding, etc.) Computer Graphics 2006/2007 Chapter 4. Introduction to 3D 3

The visualization process Scene traversal Modeling transformation Viewing transformation Clipping Hidden faces removal Projection Device transformation Lighting Rasterization Screen Computer Graphics 2006/2007 Chapter 4. Introduction to 3D 4

4.1 Scene traversal The scene is the set of the objects we want to visualize and their environment (lights, viewer, etc.) The object geometry is described with a model Scene traversal means querying methods about the characteristics of the object to visualize. Coordinate system: particular 3D system of the objects Techniques involved Geometric surface modeling Solid modeling Other models (scientific data, fractals, grammars, etc.) Hierarchical modeling Traversing algorithms and data structure querying Computer Graphics 2006/2007 Chapter 4. Introduction to 3D 5

4.2 Modeling transformation It is common to have to put the objects on the final scene from particular coordinate systems on which they were originally defined. Modeling transformation implies a change in the coordinate system: Model coordinates Scene coordinates Techniques involved: Afin space (vectors and points) Afin transformations (translation, rotation and scaling) Transformation matrices Computer Graphics 2006/2007 Chapter 4. Introduction to 3D 6

4.3 Viewing transformation Visualization means the existence of a viewer. Viewing transformation, once the viewer position is known, implies a change from the scene coordinate system to a local coordinate system of the viewer. The local coordinate system of the viewer is defined by the viewing transformation. Scenes coordinates Viewing coordinates Techniques involved: Viewing modeling (synthetic camera, viewing volume, etc) Afin transformations Transformation matrices Computer Graphics 2006/2007 Chapter 4. Introduction to 3D 7

4.4 Clipping The viewer s vision field is determined by the viewing volume. Everything outside the vision field has to be removed before future operations: clipping process. In general, clipping process involves the calculation of overlapped parts between to geometric entities. In this case, on of the geometric entities is the viewing modeling; the other is each of the objects to visualize. Techniques involved: Calculation of intersections Inner criterion Concavity and convexity Line clipping algorithms Polygon clipping algorithms Computer Graphics 2006/2007 Chapter 4. Introduction to 3D 8

4.5 Hidden faces removal In a scene, objects are self-covered are covered among them, letting always hidden parts to the user. The hidden parts (faces) have to be removed from later operations: visibility process. The visibility process is complex, so many solutions are available. A simple classification: Problem solution at scene coordinate system (object space) Problem solution through the device (image space) Techniques involved: Normal vector calculation Sorting Visibility algorithms Acceleration through coherence Computer Graphics 2006/2007 Chapter 4. Introduction to 3D 9

4.6 Projection The device representation is 2D, but scene is in 3D. The operation that allows the transition from a 3D to a 2D system is known as projection. The projection of a 3D point over a plane is determined by tracing a line (also called a visual) through the point and calculating its intersection over the plane. Projection types: Parallel: parallel visuals Perspective: visuals start at viewer s position (point of view) Techniques involved: Projecting systems Projecting matrices Perspective-to-parallel projection Computer Graphics 2006/2007 Chapter 4. Introduction to 3D 10

4.7 Lighting Knowing the points to be lighted, it is necessary to know the color that has to be assigned to everyone. Color depends on: Lighting conditions of the 3D point over the object surface The shape (normal vector) of the object is that point. Optical properties of the object material The surface finishing (roughness). The color of the object (of its material or painting). A lighting model takes into account all previous factors in order to calculate the color which is seen at that point. Techniques involved: Shadowing and lighting models, textures,... Computer Graphics 2006/2007 Chapter 4. Introduction to 3D 11

4.8 Other operations Interactivity Answer to user s actions over the screen. An interaction means: The user s action: event Event understanding: message Communication with the application: callback function Graphics update Model building The model is built: From a real image (acquiring) From an idea (editor) Using libraries and tools All described operations are coded using graphic libraries (OpenGL, StarBase, etc.) User s event Graphics Application New graphics Computer Graphics 2006/2007 Chapter 4. Introduction to 3D 12