2 COEN 290 - Computer Graphics I Evening’s Goals n Discuss application bottleneck determination n Discuss various optimizations for making programs execute.

Slides:



Advertisements
Similar presentations
Computer Graphics - Rasterization -
Advertisements

CS 352: Computer Graphics Chapter 7: The Rendering Pipeline.
Graphics Pipeline.
Optimized Stencil Shadow Volumes
Computer Graphic Creator: Mohsen Asghari Session 2 Fall 2014.
CAP4730: Computational Structures in Computer Graphics Visible Surface Determination.
CHAPTER 12 Height Maps, Hidden Surface Removal, Clipping and Level of Detail Algorithms © 2008 Cengage Learning EMEA.
Visibility in Computer Graphics Toni Sellarès Unversitat de Girona
Computer Graphics Visible Surface Determination. Goal of Visible Surface Determination To draw only the surfaces (triangles) that are visible, given a.
Chapter 6: Vertices to Fragments Part 2 E. Angel and D. Shreiner: Interactive Computer Graphics 6E © Addison-Wesley Mohan Sridharan Based on Slides.
CGDD 4003 THE MASSIVE FIELD OF COMPUTER GRAPHICS.
Tomas Mőller © 2000 Speeding up your game The scene graph Culling techniques Level-of-detail rendering (LODs) Collision detection Resources and pointers.
Hidden Surface Elimination Wen-Chieh (Steve) Lin Institute of Multimedia Engineering I-Chen Lin’ CG Slides, Rich Riesenfeld’s CG Slides, Shirley, Fundamentals.
Vertices and Fragments III Mohan Sridharan Based on slides created by Edward Angel 1 CS4395: Computer Graphics.
1 Angel: Interactive Computer Graphics 4E © Addison-Wesley 2005 Models and Architectures Ed Angel Professor of Computer Science, Electrical and Computer.
10/11/2001CS 638, Fall 2001 Today Kd-trees BSP Trees.
Hidden Surface Removal
Erdem Alpay Ala Nawaiseh. Why Shadows? Real world has shadows More control of the game’s feel  dramatic effects  spooky effects Without shadows the.
Computer Graphics Mirror and Shadows
1 Computer Graphics Week13 –Shading Models. Shading Models Flat Shading Model: In this technique, each surface is assumed to have one normal vector (usually.
10/29/02 (c) 2002 University of Wisconsin, CS559 Today Hidden Surface Removal Exact Visibility.
Technology and Historical Overview. Introduction to 3d Computer Graphics  3D computer graphics is the science, study, and method of projecting a mathematical.
CSE 381 – Advanced Game Programming Basic 3D Graphics
The Visibility Problem In many environments, most of the primitives (triangles) are not visible most of the time –Architectural walkthroughs, Urban environments.
CS 450: COMPUTER GRAPHICS REVIEW: INTRODUCTION TO COMPUTER GRAPHICS – PART 2 SPRING 2015 DR. MICHAEL J. REALE.
Advanced Computer Graphics Depth & Stencil Buffers / Rendering to Textures CO2409 Computer Graphics Week 19.
CSC 461: Lecture 3 1 CSC461 Lecture 3: Models and Architectures  Objectives –Learn the basic design of a graphics system –Introduce pipeline architecture.
Real-Time Rendering SPEEDING UP RENDERING Lecture 04 Marina Gavrilova.
1 Advanced Scene Management. 2 This is a game-type-oriented issue Bounding Volume Hierarchies (BVHs) Binary space partition trees (BSP Trees) “Quake”
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
Real-time Graphics for VR Chapter 23. What is it about? In this part of the course we will look at how to render images given the constrains of VR: –we.
1Computer Graphics Implementation II Lecture 16 John Shearer Culture Lab – space 2
Implementation II Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and Media Arts University of New Mexico.
Hidden Surface Removal
Implementation II.
1 Visiblity: Culling and Clipping Computer Graphics COMP 770 (236) Spring 2009 January 21 & 26: 2009.
CSCE 552 Spring D Models By Jijun Tang. Triangles Fundamental primitive of pipelines  Everything else constructed from them  (except lines and.
Advanced Computer Graphics Spring 2014 K. H. Ko School of Mechatronics Gwangju Institute of Science and Technology.
Review on Graphics Basics. Outline Polygon rendering pipeline Affine transformations Projective transformations Lighting and shading From vertices to.
Where We Stand At this point we know how to: –Convert points from local to window coordinates –Clip polygons and lines to the view volume –Determine which.
Computer Graphics I, Fall 2010 Implementation II.
Maths & Technologies for Games Spatial Partitioning 1 CO3303 Week 8-9.
Honours Graphics 2008 Session 5. Today’s focus Rasterization Visibility determination Coarse / fine visibility determination.
1 CSCE 441: Computer Graphics Hidden Surface Removal Jinxiang Chai.
01/28/09Dinesh Manocha, COMP770 Visibility Computations Visible Surface Determination Visibility Culling.
Hierarchical Occlusion Map Zhang et al SIGGRAPH 98.
Computer Graphics Inf4/MSc 1 Computer Graphics Lecture 5 Hidden Surface Removal and Rasterization Taku Komura.
Graphics, Modeling, and Textures Computer Game Design and Development.
1 Advanced Scene Management. 2 This is a game-type-oriented issue Bounding Volume Hierarchies (BVHs) Binary space partition trees (BSP Trees) “Quake”
Chapter 1 Graphics Systems and Models Models and Architectures.
1 E. Angel and D. Shreiner: Interactive Computer Graphics 6E © Addison-Wesley 2012 Models and Architectures 靜宜大學 資訊工程系 蔡奇偉 副教授 2012.
Computer Graphics: Programming, Problem Solving, and Visual Communication Steve Cunningham California State University Stanislaus and Grinnell College.
Spring 2006 G5BAGR – Advanced Computer Graphics
Scene Manager Creates and places movable objects like lights and cameras so as to access them efficiently, e.g. for rendering. Loads and assembles world.
Computer Graphics Implementation II
CSC418 Computer Graphics Back Faces Visibility Algorithms.
3D Graphics Rendering PPT By Ricardo Veguilla.
Models and Architectures
Models and Architectures
CSCE 441: Computer Graphics Hidden Surface Removal
Graphics, Modeling, and Textures
Implementation II Ed Angel Professor Emeritus of Computer Science
Models and Architectures
Models and Architectures
Introduction to Computer Graphics with WebGL
Clipping University of British Columbia CPSC 314 Computer Graphics
Frame Buffer Applications
Implementation II Ed Angel Professor Emeritus of Computer Science
Presentation transcript:

2 COEN Computer Graphics I Evening’s Goals n Discuss application bottleneck determination n Discuss various optimizations for making programs execute faster 2D 3D

3 COEN Computer Graphics I 2D Applications n “Scroller” games n Photo / Image viewing software n Photoshop-type applications

4 COEN Computer Graphics I How We’ve Rendered So Far … nForced to redraw every pixel in the viewport Potentially very wasteful for certain types of applications  Clear the window  Redraw all contents using new positions  Swap Buffers  Go to 

5 COEN Computer Graphics I “Dirty Rectangles” n For 2D applications, clearing the entire window may be wasteful n Only update pixels that were “damaged” Refill where players were with background image Use Painter’s Algorithm to determine drawing order

6 COEN Computer Graphics I “Dirty Rectangles” Update floor Update bookcase

7 COEN Computer Graphics I What Makes Applications Slow n Poor data structure use in application n Too much geometry per frame Vertex transformations Lighting computations Texture coordinate generation n Too many pixels to fill Depth testing Texture mapping

8 COEN Computer Graphics I Keeping things “Real Time” n What’s your hardware capable of doing? Polygons / second Pixels / second n Determining what’s realistic Computing the polygon budget –Controlling model complexity Estimating how many pixels need to be filled per frame –Need to consider rejected pixels from depth testing

9 COEN Computer Graphics I Polygon Budget n Need to consider How many frames you want a second (Hertz) How many geometric primitives do you need to render per frame

10 COEN Computer Graphics I Computing Bounding Volumes n Bounding sphere Easy to compute Easy to work with Not the most accurate representation

11 COEN Computer Graphics I Hierarchical Bounding Volumes

12 COEN Computer Graphics I View Frustum Culling Needs to be computed in either eye space or world coordinates

13 COEN Computer Graphics I Portal Culling n Determine what geometry’s visible from a certain vantage point Useful for interior scenes: rooms, hallways, etc. n For each room For each wall (and optionally floor and ceiling) –A list of what’s visible when looking at each wall –Include what can be viewed through each portal May be possible to depth sort these primitives so that they don’t need to be depth buffered

14 COEN Computer Graphics I Binary Space Partition Trees n Store primitives in a binary tree based on their location to their parent n Partition space based on a primitive’s line or plane equation n Use faced-ness of primitive to determine front and back sides BF