CECS461 Computer Graphics II University of Missouri at Columbia Hidden Surface Removal.

Slides:



Advertisements
Similar presentations
Visible-Surface Detection(identification)
Advertisements

CSC418 Computer Graphics n Polygon normals n Back Faces n Visibility Algorithms.
Computer Graphics1 Geometry Area of polygons & Volume Of Polygonal surfaces.
Hidden Surface Removal CSE 581. Visibility Assumption: All polygons are opaque What polygons are visible with respect to your view frustum?  Outside:
CAP4730: Computational Structures in Computer Graphics Visible Surface Determination.
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.
Graphics Graphics Korea University cgvr.korea.ac.kr 1 Hidden Surface Removal 고려대학교 컴퓨터 그래픽스 연구실.
Visibility Culling. Back face culling View-frustrum culling Detail culling Occlusion culling.
Course Website: Computer Graphics 15: More Surface Detection Methods.
Chapter 6: Vertices to Fragments Part 2 E. Angel and D. Shreiner: Interactive Computer Graphics 6E © Addison-Wesley Mohan Sridharan Based on Slides.
1 Dr. Scott Schaefer Hidden Surfaces. 2/62 Hidden Surfaces.
CS 4731: Computer Graphics Lecture 18: Hidden Surface Removal Emmanuel Agu.
Hidden Surface Elimination Wen-Chieh (Steve) Lin Institute of Multimedia Engineering I-Chen Lin’ CG Slides, Rich Riesenfeld’s CG Slides, Shirley, Fundamentals.
1 CSCE 441: Computer Graphics Hidden Surface Removal (Cont.) Jinxiang Chai.
Hidden Surface Removal April 30, Hidden Surface Removal Object-space algorithms: –Back-face culling (removal) –Depth sorting and Painter’s algorithm.
University of British Columbia CPSC 314 Computer Graphics Jan-Apr 2005 Tamara Munzner Visibility II Week 7,
Visible-surface Detection Computer Graphics Seminar MUM
Vertices and Fragments III Mohan Sridharan Based on slides created by Edward Angel 1 CS4395: Computer Graphics.
University of British Columbia CPSC 414 Computer Graphics © Tamara Munzner 1 Visibility: Z Buffering Week 10, Mon 3 Nov 2003.
Hidden Surface Removal
Afrigraph 2004 Massive model visualization Tutorial A: Part I Rasterization Based Approaches Andreas Dietrich Computer Graphics Group, Saarland University.
Graphics Pipeline Hidden Surfaces CMSC 435/634. Visibility We can convert simple primitives to pixels Which primitives (or parts of primitives) should.
Graphics Pipeline Hidden Surface CMSC 435/634. Visibility We can convert simple primitives to pixels/fragments How do we know which primitives (or which.
CS 450: COMPUTER GRAPHICS VISIBLE SURFACE DETECTION SPRING 2015 DR. MICHAEL J. REALE.
Modeling of worlds A complicated object be decomposed into simple objects and represented by hierarchical model A world scene usually contain many objects.
CS 325 Introduction to Computer Graphics 03 / 08 / 2010 Instructor: Michael Eckmann.
The Visibility Problem In many environments, most of the primitives (triangles) are not visible most of the time –Architectural walkthroughs, Urban environments.
From Vertices to Fragments II Software College, Shandong University Instructor: Zhou Yuanfeng
Week 2 - Friday.  What did we talk about last time?  Graphics rendering pipeline  Geometry Stage.
Computer Graphics 2 Lecture 8: Visibility Benjamin Mora 1 University of Wales Swansea Pr. Min Chen Dr. Benjamin Mora.
The BSP-tree from Prof. Seth MIT.. Motivation for BSP Trees: The Visibility Problem We have a set of objects (either 2d or 3d) in space. We have.
Visible-Surface Detection Jehee Lee Seoul National University.
1 Advanced Scene Management. 2 This is a game-type-oriented issue Bounding Volume Hierarchies (BVHs) Binary space partition trees (BSP Trees) “Quake”
Hidden Surface Removal 1.  Suppose that we have the polyhedron which has 3 totally visible surfaces, 4 totally invisible/hidden surfaces, and 1 partially.
CS-378: Game Technology Lecture #2.2: Clipping and Hidden Surfaces Prof. Okan Arikan University of Texas, Austin Thanks to James O’Brien, Steve Chenney,
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.
Visible-Surface Detection Methods
Binary Space Partitioning Trees Ray Casting Depth Buffering
Hidden Surface Removal
Implementation II.
1 3D Hidden Surface Removal 김 성 남. 2 Contents Goal Motivation Approaches - back face detection - depth buffer - A-buffer - Scan line - Depth.
Computer Graphics I, Fall 2010 Implementation II.
1 CSCE 441: Computer Graphics Hidden Surface Removal Jinxiang Chai.
CS559: Computer Graphics Lecture 12: Antialiasing & Visibility Li Zhang Spring 2008.
Computer Graphics Inf4/MSc 1 Computer Graphics Lecture 5 Hidden Surface Removal and Rasterization Taku Komura.
CS 325 Introduction to Computer Graphics 03 / 10 / 2010 Instructor: Michael Eckmann.
1 Computer Graphics Week11 : Hidden Surface Removal.
Learning Objectives Classification of Visible Surface Detection Algorithms Classification of Visible Surface Detection Algorithms Back-Face Detection Back-Face.
1 Advanced Scene Management. 2 This is a game-type-oriented issue Bounding Volume Hierarchies (BVHs) Binary space partition trees (BSP Trees) “Quake”
COMPUTER GRAPHICS CS 482 – FALL 2015 NOVEMBER 10, 2015 VISIBILITY CULLING HIDDEN SURFACES ANTIALIASING HALFTONING.
Visible-Surface Detection Methods. To identify those parts of a scene that are visible from a chosen viewing position. Surfaces which are obscured by.
Hidden Surface Removal. 2 Goal: Determine which surfaces are visible and which are not. Z-Buffer is just one of many hidden surface removal algorithms.
Lecture 30: Visible Surface Detection
Computer Graphics Implementation II
Hidden Surface Removal
CSC418 Computer Graphics Back Faces Visibility Algorithms.
CSCE 441: Computer Graphics Hidden Surface Removal (Cont.)
Hidden Surfaces Dr. Scott Schaefer.
Graphics Pipeline Hidden Surfaces
CSCE 441: Computer Graphics Hidden Surface Removal
Implementation II Ed Angel Professor Emeritus of Computer Science
Visibility (hidden surface removal)
CSCE 441: Computer Graphics Hidden Surface Removal (Cont.)
CSCE 441: Computer Graphics Hidden Surface Removal (Cont.)
Introduction to Computer Graphics with WebGL
Implementation II Ed Angel Professor Emeritus of Computer Science
Presentation transcript:

CECS461 Computer Graphics II University of Missouri at Columbia Hidden Surface Removal

CECS461 Computer Graphics II University of Missouri at Columbia Hidden Surface Removal Object-Space and Image-Space Approaches Back-Face Culling Z-Buffer Algorithm Depth Sort and Painter’s Algorithm Object-Space and Image-Space Approaches Back-Face Culling Z-Buffer Algorithm Depth Sort and Painter’s Algorithm

CECS461 Computer Graphics II University of Missouri at Columbia Algorithm Classifications Object-Space Methods: –Visibility is decided by comparing objects in object- space. –e.g. painter’s algorithm. Image-Space Methods: –Visibility is decided at each pixel position in the projection plane. –e.g. Z-Buffer algorithm Object-Space Methods: –Visibility is decided by comparing objects in object- space. –e.g. painter’s algorithm. Image-Space Methods: –Visibility is decided at each pixel position in the projection plane. –e.g. Z-Buffer algorithm

CECS461 Computer Graphics II University of Missouri at Columbia Back Face Culling x z

CECS461 Computer Graphics II University of Missouri at Columbia Back Face Culling x z A polygon is a back face if V N > 0. For OpenGL, V=(0,0,-1) A polygon is a back face if V N > 0. For OpenGL, V=(0,0,-1)

CECS461 Computer Graphics II University of Missouri at Columbia Z-Buffer Algorithm x (x, y) z y Most widely used Image-space algorithm. Easy to implement, both in software and hardware. Incremental computation. Most widely used Image-space algorithm. Easy to implement, both in software and hardware. Incremental computation.

CECS461 Computer Graphics II University of Missouri at Columbia Z-Buffer Algorithm x (x, y) z y

CECS461 Computer Graphics II University of Missouri at Columbia Z-Buffer Algorithm Can be conducted with scan-conversion. Assume the plane equation of the triangle is ax + by + cz + d = 0 let (x 1, y 1, z 1 ) and (x 2, y 2, z 2 ) be two points on the triangle.  x = x 2 - x 1,  y = y 2 - y 1,  z = z 2 - z 1 then a  x + b  y + c  z = 0 since  x = 1,  y = 0, then  z = - a/c. Can be conducted with scan-conversion. Assume the plane equation of the triangle is ax + by + cz + d = 0 let (x 1, y 1, z 1 ) and (x 2, y 2, z 2 ) be two points on the triangle.  x = x 2 - x 1,  y = y 2 - y 1,  z = z 2 - z 1 then a  x + b  y + c  z = 0 since  x = 1,  y = 0, then  z = - a/c.

CECS461 Computer Graphics II University of Missouri at Columbia Painter’s Algorithm Back-to-front rendering: polygons are sorted by z-coordinates in object space, and are rendered in back-to-front order. x z y A C B

CECS461 Computer Graphics II University of Missouri at Columbia Painter’s Algorithm Need to check for overlapping using BSP tree or Octree. Overlapped triangles need to be spitted. Need to check for overlapping using BSP tree or Octree. Overlapped triangles need to be spitted.