Tải bản đầy đủ (.pptx) (22 trang)

Introduction computer graphics (p1) (đồ họa máy TÍNH SLIDE)

Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (2.14 MB, 22 trang )

Introduction
Computer Graphics

1


Computer Graphics



Computer graphics deals with all aspects of creating images with a computer





Hardware
Software
Applications

2


Basic Graphics System

Input devices

Output device

Image formed in
Frame Buffer



3


Grahpics Areas
User interaction

Image processing

Modeling

Virtual reality

3D scanning
Rendering

Animation

Visualization

Computational
photography
4


The Programmer’s Interface



Programmer sees the graphics system through an interface: Application Programming

Interface (API)

5


Object Specification



Most APIs support a limited set of primitives including






Points (1D object)
Line segments (2D objects)
Polygons (3D objects)
Some curves and surfaces






Quadrics
Parametric polynomial

All are defined through locations in space or vertices


6


Example
type of object
location of vertex

glBegin(GL_POLYGON)
glVertex3f(0.0, 0.0, 0.0);
glVertex3f(0.0, 1.0, 0.0);
glVertex3f(0.0, 0.0, 1.0);
glEnd();

end of object definition

7


Modeling Package

Digital Content Creation

8


Raster Graphics




Image produced as an array (the raster) of picture elements (pixels) in the frame buffer

9


Rasterization

10


Let talk about pixels






Pixels are strored as a 1-dimensional array of ints
Each in is formated arcording to Java's standard pixel model

Layout of the pixel array on the display

11


Display Technologies

CRT

LCD

12


Evolution

16


Wire-Frame

Shutterbug: Copyright 1990 Pixar - Rendered by Thomas Williams and H. B. Siegel using Pixar's RenderMan

TM
17


Coloring

Shutterbug: Copyright 1990 Pixar - Rendered by Thomas Williams and H. B. Siegel using Pixar's RenderMan

TM

18


Hidden Surface Removal

19



Constant Rendering

Shutterbug: Copyright 1990 Pixar - Rendered by Thomas Williams and H. B. Siegel using Pixar's RenderMan

TM

20


Facet Shading

Shutterbug: Copyright 1990 Pixar - Rendered by Thomas Williams and H. B. Siegel using Pixar's RenderMan

TM

21


Smooth Shading

Shutterbug: Copyright 1990 Pixar - Rendered by Thomas Williams and H. B. Siegel using Pixar's RenderMan

TM

22


Correct Highlight

Shutterbug: Copyright 1990 Pixar - Rendered by Thomas Williams and H. B. Siegel using Pixar's RenderMan


TM

23


Texture & Shadow

Shutterbug: Copyright 1990 Pixar - Rendered by Thomas Williams and H. B. Siegel using Pixar's RenderMan

TM
24


Reflection

Shutterbug: Copyright 1990 Pixar - Rendered by Thomas Williams and H. B. Siegel using Pixar's RenderMan

TM

25



×