chapter 4 attributes of graphics primitives3map.snu.ac.kr/courses/2013/cg/chap4.pdf · 2012. 10....
TRANSCRIPT
![Page 1: Chapter 4 Attributes of Graphics Primitives3map.snu.ac.kr/courses/2013/cg/Chap4.pdf · 2012. 10. 17. · 196 196 255 Color Look up Table 2081 To Red Gun To Green Gun To Blue Gun 00000000](https://reader035.vdocuments.mx/reader035/viewer/2022063008/5fbb633ce6f5c730e620d3b9/html5/thumbnails/1.jpg)
Chapter 4 Attributes of Graphics Primitives
Myung-Soo Kim
Seoul National University
http://cse.snu.ac.kr/mskim
http://3map.snu.ac.kr
![Page 2: Chapter 4 Attributes of Graphics Primitives3map.snu.ac.kr/courses/2013/cg/Chap4.pdf · 2012. 10. 17. · 196 196 255 Color Look up Table 2081 To Red Gun To Green Gun To Blue Gun 00000000](https://reader035.vdocuments.mx/reader035/viewer/2022063008/5fbb633ce6f5c730e620d3b9/html5/thumbnails/2.jpg)
Attributes
• Color Attributes
• Point Attributes
• Line Attributes
• Curve Attributes
• Fill-Area Attributes
- Fill Styles: Hollow, Solid, Patterned
• Character Attributes
![Page 3: Chapter 4 Attributes of Graphics Primitives3map.snu.ac.kr/courses/2013/cg/Chap4.pdf · 2012. 10. 17. · 196 196 255 Color Look up Table 2081 To Red Gun To Green Gun To Blue Gun 00000000](https://reader035.vdocuments.mx/reader035/viewer/2022063008/5fbb633ce6f5c730e620d3b9/html5/thumbnails/3.jpg)
RGB Color Components
![Page 4: Chapter 4 Attributes of Graphics Primitives3map.snu.ac.kr/courses/2013/cg/Chap4.pdf · 2012. 10. 17. · 196 196 255 Color Look up Table 2081 To Red Gun To Green Gun To Blue Gun 00000000](https://reader035.vdocuments.mx/reader035/viewer/2022063008/5fbb633ce6f5c730e620d3b9/html5/thumbnails/4.jpg)
Color Lookup Tables
![Page 5: Chapter 4 Attributes of Graphics Primitives3map.snu.ac.kr/courses/2013/cg/Chap4.pdf · 2012. 10. 17. · 196 196 255 Color Look up Table 2081 To Red Gun To Green Gun To Blue Gun 00000000](https://reader035.vdocuments.mx/reader035/viewer/2022063008/5fbb633ce6f5c730e620d3b9/html5/thumbnails/5.jpg)
Color Blending
• The current color is the destination color
• The color of the second object is the source color
![Page 6: Chapter 4 Attributes of Graphics Primitives3map.snu.ac.kr/courses/2013/cg/Chap4.pdf · 2012. 10. 17. · 196 196 255 Color Look up Table 2081 To Red Gun To Green Gun To Blue Gun 00000000](https://reader035.vdocuments.mx/reader035/viewer/2022063008/5fbb633ce6f5c730e620d3b9/html5/thumbnails/6.jpg)
Color-Blended Fill Regions
![Page 7: Chapter 4 Attributes of Graphics Primitives3map.snu.ac.kr/courses/2013/cg/Chap4.pdf · 2012. 10. 17. · 196 196 255 Color Look up Table 2081 To Red Gun To Green Gun To Blue Gun 00000000](https://reader035.vdocuments.mx/reader035/viewer/2022063008/5fbb633ce6f5c730e620d3b9/html5/thumbnails/7.jpg)
Linear Soft-Fill Algorithm
![Page 8: Chapter 4 Attributes of Graphics Primitives3map.snu.ac.kr/courses/2013/cg/Chap4.pdf · 2012. 10. 17. · 196 196 255 Color Look up Table 2081 To Red Gun To Green Gun To Blue Gun 00000000](https://reader035.vdocuments.mx/reader035/viewer/2022063008/5fbb633ce6f5c730e620d3b9/html5/thumbnails/8.jpg)
Scan-Line Polygon Fill
![Page 9: Chapter 4 Attributes of Graphics Primitives3map.snu.ac.kr/courses/2013/cg/Chap4.pdf · 2012. 10. 17. · 196 196 255 Color Look up Table 2081 To Red Gun To Green Gun To Blue Gun 00000000](https://reader035.vdocuments.mx/reader035/viewer/2022063008/5fbb633ce6f5c730e620d3b9/html5/thumbnails/9.jpg)
Scan-Line Polygon Fill
![Page 10: Chapter 4 Attributes of Graphics Primitives3map.snu.ac.kr/courses/2013/cg/Chap4.pdf · 2012. 10. 17. · 196 196 255 Color Look up Table 2081 To Red Gun To Green Gun To Blue Gun 00000000](https://reader035.vdocuments.mx/reader035/viewer/2022063008/5fbb633ce6f5c730e620d3b9/html5/thumbnails/10.jpg)
Boundary-Fill Algorithm
![Page 11: Chapter 4 Attributes of Graphics Primitives3map.snu.ac.kr/courses/2013/cg/Chap4.pdf · 2012. 10. 17. · 196 196 255 Color Look up Table 2081 To Red Gun To Green Gun To Blue Gun 00000000](https://reader035.vdocuments.mx/reader035/viewer/2022063008/5fbb633ce6f5c730e620d3b9/html5/thumbnails/11.jpg)
Boundary-Fill Algorithm
• This procedure requires considerable stacking of neighboring points
![Page 12: Chapter 4 Attributes of Graphics Primitives3map.snu.ac.kr/courses/2013/cg/Chap4.pdf · 2012. 10. 17. · 196 196 255 Color Look up Table 2081 To Red Gun To Green Gun To Blue Gun 00000000](https://reader035.vdocuments.mx/reader035/viewer/2022063008/5fbb633ce6f5c730e620d3b9/html5/thumbnails/12.jpg)
More Efficient Algorithm
![Page 13: Chapter 4 Attributes of Graphics Primitives3map.snu.ac.kr/courses/2013/cg/Chap4.pdf · 2012. 10. 17. · 196 196 255 Color Look up Table 2081 To Red Gun To Green Gun To Blue Gun 00000000](https://reader035.vdocuments.mx/reader035/viewer/2022063008/5fbb633ce6f5c730e620d3b9/html5/thumbnails/13.jpg)
Flood-Fill Algorithm
![Page 14: Chapter 4 Attributes of Graphics Primitives3map.snu.ac.kr/courses/2013/cg/Chap4.pdf · 2012. 10. 17. · 196 196 255 Color Look up Table 2081 To Red Gun To Green Gun To Blue Gun 00000000](https://reader035.vdocuments.mx/reader035/viewer/2022063008/5fbb633ce6f5c730e620d3b9/html5/thumbnails/14.jpg)
Antialiasing
• Information loss due to under-sampling
![Page 15: Chapter 4 Attributes of Graphics Primitives3map.snu.ac.kr/courses/2013/cg/Chap4.pdf · 2012. 10. 17. · 196 196 255 Color Look up Table 2081 To Red Gun To Green Gun To Blue Gun 00000000](https://reader035.vdocuments.mx/reader035/viewer/2022063008/5fbb633ce6f5c730e620d3b9/html5/thumbnails/15.jpg)
Antialiasing
• Super-sampling Straight-Line Segments
![Page 16: Chapter 4 Attributes of Graphics Primitives3map.snu.ac.kr/courses/2013/cg/Chap4.pdf · 2012. 10. 17. · 196 196 255 Color Look up Table 2081 To Red Gun To Green Gun To Blue Gun 00000000](https://reader035.vdocuments.mx/reader035/viewer/2022063008/5fbb633ce6f5c730e620d3b9/html5/thumbnails/16.jpg)
Antialiasing
• Sub-pixel Weighting Masks
• Area Sampling Line Segments
Pixel (10,20) is about 90% covered, Pixel (10,21) is about 15% covered
![Page 17: Chapter 4 Attributes of Graphics Primitives3map.snu.ac.kr/courses/2013/cg/Chap4.pdf · 2012. 10. 17. · 196 196 255 Color Look up Table 2081 To Red Gun To Green Gun To Blue Gun 00000000](https://reader035.vdocuments.mx/reader035/viewer/2022063008/5fbb633ce6f5c730e620d3b9/html5/thumbnails/17.jpg)
Antialiasing
• Filtering Techniques
![Page 18: Chapter 4 Attributes of Graphics Primitives3map.snu.ac.kr/courses/2013/cg/Chap4.pdf · 2012. 10. 17. · 196 196 255 Color Look up Table 2081 To Red Gun To Green Gun To Blue Gun 00000000](https://reader035.vdocuments.mx/reader035/viewer/2022063008/5fbb633ce6f5c730e620d3b9/html5/thumbnails/18.jpg)
Antialiasing
• Pixel Phasing
![Page 19: Chapter 4 Attributes of Graphics Primitives3map.snu.ac.kr/courses/2013/cg/Chap4.pdf · 2012. 10. 17. · 196 196 255 Color Look up Table 2081 To Red Gun To Green Gun To Blue Gun 00000000](https://reader035.vdocuments.mx/reader035/viewer/2022063008/5fbb633ce6f5c730e620d3b9/html5/thumbnails/19.jpg)
Antialiasing
• Area Boundaries
![Page 20: Chapter 4 Attributes of Graphics Primitives3map.snu.ac.kr/courses/2013/cg/Chap4.pdf · 2012. 10. 17. · 196 196 255 Color Look up Table 2081 To Red Gun To Green Gun To Blue Gun 00000000](https://reader035.vdocuments.mx/reader035/viewer/2022063008/5fbb633ce6f5c730e620d3b9/html5/thumbnails/20.jpg)
Antialiasing
• Pittway-Watkinson Algorithm