Lecture 31: Visible Surface Detection

Slides:



Advertisements
Similar presentations
Visible-Surface Detection(identification)
Advertisements

1 Binary Space Partition Trees ©Anthony Steed, Yiorgos Chrysanthou
Computer Graphics Inf4/MSc 28/10/08Lecture 91 Computer Graphics Lecture 9 Visible Surface Determination Taku Komura.
Collisions and Intersections When objects move, test for collision. When projecting surfaces, check for intersections. (Many slides adapted from Amitabh.
CSC418 Computer Graphics n Polygon normals n Back Faces n Visibility Algorithms.

CAP4730: Computational Structures in Computer Graphics Visible Surface Determination.
CECS461 Computer Graphics II University of Missouri at Columbia Hidden Surface Removal.
Hidden Surface Removal Why make the effort?  Realistic models.  Wasted time drawing. OpenGL and HSR  OpenGL does handle HSR using the depth buffer.
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 고려대학교 컴퓨터 그래픽스 연구실.
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.
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.
Visible-surface Detection Computer Graphics Seminar MUM
Vertices and Fragments III Mohan Sridharan Based on slides created by Edward Angel 1 CS4395: Computer Graphics.
CSE 872 Dr. Charles B. Owen Advanced Computer Graphics1 Other Rendering Techniques Types of rendering – Wireframe techniques – Scan-line conversion – Reyes.
Hidden Surface Removal
Visible Surface Determination
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.
10/29/02 (c) 2002 University of Wisconsin, CS559 Today Hidden Surface Removal Exact Visibility.
CSC418 Computer Graphics n BSP tree n Z-Buffer n A-buffer n Scanline.
Visible-Surface Detection Jehee Lee Seoul National University.
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,
3/23/04© University of Wisconsin, CS559 Spring 2004 Last Time Antialiasing –Area-weighted sampling Visibility –Painters algorithm –Depth buffer (Z-buffer)
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.
CS 325 Introduction to Computer Graphics 03 / 22 / 2010 Instructor: Michael Eckmann.
Binary Space Partitioning Trees Ray Casting Depth Buffering
CS 376 Introduction to Computer Graphics 03 / 21 / 2007 Instructor: Michael Eckmann.
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.
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.
1 CSCE 441: Computer Graphics Hidden Surface Removal Jinxiang Chai.
Hidden Surface Removal. Visible Surface Invisible Primitives  Why might a polygon be invisible?  Polygon outside the field of view  Polygon is backfacing.
01/28/09Dinesh Manocha, COMP770 Visibility Computations Visible Surface Determination Visibility Culling.
Computer Graphics Inf4/MSc 1 Computer Graphics Lecture 5 Hidden Surface Removal and Rasterization Taku Komura.
Kansas State University Department of Computing and Information Sciences CIS 736: Computer Graphics Wednesday, March 1, 2000 William H. Hsu Department.
Visible surface determination. Problem outline Given a set of 3D objects and a viewing specification, we wish to determine which lines or surfaces are.
Visible-Surface Detection Methods. To identify those parts of a scene that are visible from a chosen viewing position. Surfaces which are obscured by.
Visibility Determination – List Priority Methods Chapter 11.
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
CS552: Computer Graphics Lecture 28: Solid Modeling.
Visible Surface Detection
Computer Graphics Implementation II
Solid Area Scan Conversion or Visible Surface Detection
Hidden Surface Removal
CSC418 Computer Graphics Back Faces Visibility Algorithms.
© University of Wisconsin, CS559 Fall 2004
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
Lecture 32: Visible Surface Detection
Hidden Surface Removal
CSCE 441: Computer Graphics Hidden Surface Removal (Cont.)
Introduction to Computer Graphics with WebGL
Hidden Surface Removal
Implementation II Ed Angel Professor Emeritus of Computer Science
Visible-Surface Determination
Presentation transcript:

Lecture 31: Visible Surface Detection CS552: Computer Graphics Lecture 31: Visible Surface Detection

Recap Solid Modeling Represent the solid object in a 3D space B-Reps Subdividing algorithms

Objective After completing this lecture, students will be able to Explain the importance of VSDs Solve the problem of backface culling

Illustration

Multiple non-intersecting polygon J B I E D C A F G H

Special cases of polygon intersection

Depth-Sorting Method Uses both image-space and object-space operations Surfaces are sorted in order of decreasing depth Surfaces are scan converted in order, starting with the surface of greatest depth. Sorting operations are carried out in both image and object space The scan conversion of the polygon surfaces is performed in image space. Painter’s algorithm

Illustration No depth overlap

Ambiguity Depth Test 1. Do the polygons’ x extents not overlap? 2. Do the polygons’ y extents not overlap? 3. Is P entirely on the opposite side of Q’s plane from the viewpoint? 4. Is Q entirely on the same side of P’s plane as the viewpoint? 5. Do the projections of the polygons onto the (x,y) plane not overlap?

Test 1 Two surfaces with depth overlap but no overlap in the x direction.

Test 2 and 3 Surface S is completely behind the overlapping surface S’ Overlapping surface S’ is completely in front of surface S , but S is not completely behind S’

Test 4 Two polygon surfaces with overlapping bounding rectangles in the xy plane.

Use of Sorted List Three surfaces that have been entered into the sorted surface list in the order S, S’, S’’ should be reordered as S’,S’’, S. Surface S extends to a greater depth, but it obscures surface S’

BSP Tree Method Extremely efficient method Calculates the visibility relationships among a static group of 3D polygons The viewpoint can be arbitrary Environments can be viewed as being composed of clusters

Face Priority

BSP Tree The BSP tree’s root is a polygon selected from those to be displayed The root polygon is used to partition the environment into two half-spaces. Front-face and Back Face Recursively partition the space till a single polygon is remaining

Pseudocode BSP_ tree *BSP_makeTree (polygon *polyList) { polygon roof, polygon *backList, *frontList; polygon p, backPart, frontPart; if {polyList == NULL) return NULL; else { root = BSP.selectAndRemovePoly (&polyList); backList = NULL; frontList = NULL; for (each remaining polygon p in polyList) { if (polygon p in front of root) BSP.addToList (p, &frontList); else if (polygon p in back of root) BSP.addToList (p, &backList); else { /* Polygon p must be split. */ BSP.splitPoly (p, root, &frontPart, &backPart); BSP.addToList {frontPart, &frontList); BSP.addToList (backPart, &backList); } return BSP.combineTree (BSP.makeTree (frontList), root, BSP. makeTree (backList)); Pseudocode

Illustration 5 2 3 4 1

Thank you Next Lecture: Visible Surface Detection