• 沒有找到結果。

Introduction and Graphics Pipeline-Advanced multimedia technology : computer graphics

N/A
N/A
Protected

Academic year: 2021

Share "Introduction and Graphics Pipeline-Advanced multimedia technology : computer graphics"

Copied!
53
0
0

加載中.... (立即查看全文)

全文

(1)

Introduction and Graphics

Pipeline

Advanced Multimedia Technology: Computer Graphics

Yung-Yu Chuang

2005/12/07

with slides by Brian Curless, Zoran Popovic, Robin Chen and Doug J ames

(2)

Introduction

• Instructor: Yung-Yu Chuang ( 莊永裕 ) • E-mail: cyy@csie.ntu.edu.tw

• Office: CSIE 527 • Web:

(3)

What is Computer Graphics ?

• Definition

– the pictorial synthesis of real or imaginary objects from their computer-based models

descriptions images

descriptions Computer Graphics images Computer Vision Image Processing

OUTPUT

IN

P

U

(4)

Computer graphics

(5)

Computer graphics

modeling rendering

(6)

Applications • Movies • Interactive entertainment • Industrial design • Architecture • Culture heritage

(7)

Animation production pipeline

story text treatment storyboard

(8)

Animation production pipeline

layout animation

shading/lighting

modeling/articulation

(9)

Scan converting lines

• A scan-converted line showing intensified pixels as black circles

(10)

The basic incremental algorithm x m y B x x m B mx yi1i1   ( i   )   i   (xi,Round(yi)) (xi,yi) (xi+1,yi+m) (xi+1,Round(yi+m)) Desired line

(11)

The basic incremental algorithm

void Line (int x0, int y0, int x1, int y1, value) { int x; float dy, dx, y, m; dy=y1-y0; dx=x1-x0; m=dy/dx; y=y0; for (x=x0; x<=x1; x++) {

WritePixel (x, (int)floor(y+0.5), value); y+=m;

} }

(12)

Filling Polygons 2 4 6 8 10 12 14 2 4 6 8 10 12 A B C D E F a b c d Scan line

(13)

Filling Polygons

(14)

Filling Polygons

1. find the intersections of the scan line with all edges of the polygon

2. sort the intersections by increasing x coordinate

3. fill in all pixels between pairs of intersections that lie interior to the polygon

(15)
(16)
(17)
(18)
(19)
(20)
(21)
(22)
(23)
(24)
(25)
(26)
(27)

Limitations of a 2X2 matrix • Scaling • Rotation • Reflection • Shearing • What do we miss?

(28)
(29)
(30)
(31)
(32)
(33)
(34)
(35)
(36)
(37)
(38)
(39)
(40)

Parallel and perspective projections

(41)
(42)
(43)
(44)

Visibility Algorithms

• Painter’s algorithm • Ray casting

• Z-buffer

(45)
(46)
(47)
(48)
(49)
(50)
(51)
(52)
(53)

參考文獻

相關文件

Conducting binary morphological operations: dilation, erosion, opening, closing and hit-and-miss.. Dynamic gray morphological operation kernel assignment with color depth showing

(A) AGP ( advanced graphics port ) (B) IDE ( integrated drive electronics ) (C) SATA ( serial at attachment ). (D) SCSI ( small computer system interface

Overview of a variety of business software, graphics and multimedia software, and home/personal/educational software Web applications and application software for

To assist with graphics and multimedia projects To assist with graphics and multimedia projects To support home, personal, and educational tasks To support home, personal,

• It is a plus if you have background knowledge on computer vision, image processing and computer graphics.. • It is a plus if you have access to digital cameras

A smaller aperture increases the range in which A smaller aperture increases the range in which the object is approximately in focus. Di

• Detlef Ruprecht, Heinrich Muller, Image Warping with Scattered Data Interpolation, IEEE Computer Graphics and Applications, March 1995, pp37-43. • Seung-Yong Lee, Kyung-Yong

• Detlef Ruprecht, Heinrich Muller, Image Warping with Scattered Data Interpolation, IEEE Computer Graphics and Applications, March 1995 pp37-43. March 1995,