chapter 9 visible-surface detection methods3map.snu.ac.kr/courses/2013/cg/chap9.pdf · 2012. 11....

18
Chapter 9 Visible-Surface Detection Methods Myung-Soo Kim Seoul National University http://cse.snu.ac.kr/mskim http://3map.snu.ac.kr

Upload: others

Post on 23-Aug-2020

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Chapter 9 Visible-Surface Detection Methods3map.snu.ac.kr/courses/2013/cg/Chap9.pdf · 2012. 11. 15. · surface foreground transparent surface RGB and depth O other info (a) depth

Chapter 9 Visible-Surface Detection Methods

Myung-Soo Kim

Seoul National University

http://cse.snu.ac.kr/mskim

http://3map.snu.ac.kr

Page 2: Chapter 9 Visible-Surface Detection Methods3map.snu.ac.kr/courses/2013/cg/Chap9.pdf · 2012. 11. 15. · surface foreground transparent surface RGB and depth O other info (a) depth

3D Culling and Clipping

Page 3: Chapter 9 Visible-Surface Detection Methods3map.snu.ac.kr/courses/2013/cg/Chap9.pdf · 2012. 11. 15. · surface foreground transparent surface RGB and depth O other info (a) depth

Hidden Surface Elimination

Page 4: Chapter 9 Visible-Surface Detection Methods3map.snu.ac.kr/courses/2013/cg/Chap9.pdf · 2012. 11. 15. · surface foreground transparent surface RGB and depth O other info (a) depth

Popular Algorithms

• Back-Face Culling

• Z-Buffer (Depth-Buffer) Algorithm

- Frame Buffer (Color Buffer) 와

- Z-Buffer (Depth-Buffer) 를 사용

• BSP Tree 알고리즘

(BSP: Binary Space Partitioning)

Page 5: Chapter 9 Visible-Surface Detection Methods3map.snu.ac.kr/courses/2013/cg/Chap9.pdf · 2012. 11. 15. · surface foreground transparent surface RGB and depth O other info (a) depth

Back-Face Detection

Page 6: Chapter 9 Visible-Surface Detection Methods3map.snu.ac.kr/courses/2013/cg/Chap9.pdf · 2012. 11. 15. · surface foreground transparent surface RGB and depth O other info (a) depth

Color Buffer and Depth Buffer

Page 7: Chapter 9 Visible-Surface Detection Methods3map.snu.ac.kr/courses/2013/cg/Chap9.pdf · 2012. 11. 15. · surface foreground transparent surface RGB and depth O other info (a) depth
Page 8: Chapter 9 Visible-Surface Detection Methods3map.snu.ac.kr/courses/2013/cg/Chap9.pdf · 2012. 11. 15. · surface foreground transparent surface RGB and depth O other info (a) depth

Z-Buffer Algorithm

Page 9: Chapter 9 Visible-Surface Detection Methods3map.snu.ac.kr/courses/2013/cg/Chap9.pdf · 2012. 11. 15. · surface foreground transparent surface RGB and depth O other info (a) depth

Z-Buffer Algorithm

Page 10: Chapter 9 Visible-Surface Detection Methods3map.snu.ac.kr/courses/2013/cg/Chap9.pdf · 2012. 11. 15. · surface foreground transparent surface RGB and depth O other info (a) depth

Depth Computation for Planes

Page 11: Chapter 9 Visible-Surface Detection Methods3map.snu.ac.kr/courses/2013/cg/Chap9.pdf · 2012. 11. 15. · surface foreground transparent surface RGB and depth O other info (a) depth

Accumulation Buffer

Page 12: Chapter 9 Visible-Surface Detection Methods3map.snu.ac.kr/courses/2013/cg/Chap9.pdf · 2012. 11. 15. · surface foreground transparent surface RGB and depth O other info (a) depth

Axis-Parallel BSP Tree

Page 13: Chapter 9 Visible-Surface Detection Methods3map.snu.ac.kr/courses/2013/cg/Chap9.pdf · 2012. 11. 15. · surface foreground transparent surface RGB and depth O other info (a) depth

General BSP Tree

Page 14: Chapter 9 Visible-Surface Detection Methods3map.snu.ac.kr/courses/2013/cg/Chap9.pdf · 2012. 11. 15. · surface foreground transparent surface RGB and depth O other info (a) depth

Scan-Line Method

Page 15: Chapter 9 Visible-Surface Detection Methods3map.snu.ac.kr/courses/2013/cg/Chap9.pdf · 2012. 11. 15. · surface foreground transparent surface RGB and depth O other info (a) depth

• 투영후 겹치지 않는 경우:

아무 순서로 그려도 상관 없다.

Depth-Sorting Method

Page 16: Chapter 9 Visible-Surface Detection Methods3map.snu.ac.kr/courses/2013/cg/Chap9.pdf · 2012. 11. 15. · surface foreground transparent surface RGB and depth O other info (a) depth

• 깊이 범위가 다른 경우:

먼 쪽의 물체를 먼저 가까운 쪽을 나중에.

Page 17: Chapter 9 Visible-Surface Detection Methods3map.snu.ac.kr/courses/2013/cg/Chap9.pdf · 2012. 11. 15. · surface foreground transparent surface RGB and depth O other info (a) depth

• 앞뒤 관계가 분명한 경우:

P를 먼저 그리고, Q를 나중에 그린다.

Page 18: Chapter 9 Visible-Surface Detection Methods3map.snu.ac.kr/courses/2013/cg/Chap9.pdf · 2012. 11. 15. · surface foreground transparent surface RGB and depth O other info (a) depth

• 깊이가 겹치는 경우:

(a) Q를 먼저 그리고, P를 나중에 그린다.

(b) P를 절단하여 순서를 결정한다.

(c) R을 절단하여 순서를 정한다.