1. Trang chủ
  2. » Giáo Dục - Đào Tạo

Lecture computer graphics and virtual reality slides lesson 7 projection transformation

33 0 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Tiêu đề Lesson 7 Projection Transformation
Tác giả Trinh Thanh Trung
Trường học School of ICT, HUST
Định dạng
Số trang 33
Dung lượng 1,51 MB

Nội dung

3D viewing and projection2.. Trang 4 3D viewing■ Part of the difficulty lies in trying to display three dimensional objects on a 2D display■ Different views on the same object eventually

Trang 1

Lesson 7

Projection Transformation

Trinh Thanh Trung School of ICT, HUST

Trang 2

Content

Trang 3

3D viewing and projection

Trang 4

3D viewing

dimensional objects on a 2D display

lead to different 2D representations at the

projection stage

□ The projected 2D image of a 3D object is viewer

dependent

parameters e.g position, orientation, field of view

Trang 6

3D viewing

6

Trang 7

3D viewing can be faked?

Trang 8

3D viewing methods (cont.)

□ Hologram display

Trang 9

Stereoscopic display

two eyes

different location

Trang 10

Stereoscopic display

Trang 11

Projections transform

points in n-space to m-space, where m<n.

Trang 12

■ In 3-D, we map points from 3-space to the

projection plane (PP) (a.k.a., image plane) along projectors (a.k.a., viewing rays) emanating from

the center of projection (COP):

■ There are two basic types of projections:

□ Perspective – distance from COP to PP finite

□ Parallel – distance from COP to PP infinite

Trang 13

Parallel projection

Trang 14

Parallel projection

projection lines are parallel or start from infinity

plane along parallel lines

does not give a realistic presentation

A

D

C B

projection plane

Trang 15

Parallel projection properties

□ Parallel lines remain parallel

□ Ratios are preserved

□ Angles not (in general) preserved

Most often used in

Trang 16

Homogeneous transform

projection (DOP) instead of a COP.

z=0 plane with a simple matrix, such that x’=x, y’=y.

y y

Trang 17

Orthographic projection

projection which all the projection lines are

orthogonal to the projection plane

Trang 18

Orthographic projection

corresponding transformation matrix

0 0 0 0

0 0 1 0

0 0 0 1 ]

0 1 0 0

0 0 0 0

0 0 0 1

0 1 0 0

0 0 1 0

0 0 0 0 ] [T x

Trang 19

Axonometric projection

■ Axonometric projection

is a type of orthographic

projection, where the lines

of sight are perpendicular

to the plane of projection,

and the object is rotated

around one or more of its

axes to reveal multiple

sides.

Trang 20

sin sin

3 1

2 2

/ /

/ sin

Trang 21

0 0 0 0

0 0 1 0

0 0 0 1

1 0

0 0

0 0

0 0

0 0

0 1

1 0

0 0

0 0

0 0

1 0

0 0

cos

sin

sin cos

cos

sin

sin cos

0

0 0 sin

cos sin

0 0 cos

0

0 0 sin

sin cos

Trang 22

Axonometric projection Trimetric

axes of space

appear unequally

foreshortened

Trang 23

Oblique projections

Axonometric

Trang 24

Perspective projection

Trang 25

Perspective projection

vanishing point

camera cause a catastrophic “passage through infinity”

produce geometrically realistic pictures

Trang 26

Perspective projection properties

transformations:

□ Lines map to lines

□ Parallel lines do not necessarily remain parallel

□ Ratios are not preserved

is that size varies inversely with distance – looks realistic

as exactly as we can with parallel projections

Trang 27

Vanishing points

different point: The vanishing point for this direction

collinear vanishing points: the horizon for that plane

□ corridor

□ higher = further away

Trang 28

Vanishing points

Trang 29

Clipping and the viewing frustum

■ The center of projection and the portion of the projection plane that map to the final image form an infinite pyramid The

sides of the pyramid are clipping planes.

■ Frequently, additional clipping planes are inserted to restrict

the range of depths These clipping planes are called the near and far or the hither and yon clipping planes.

All of the clipping planes bound the viewing frustum.

Trang 30

Field of View (FOV)

x v

-z v

Near Clip Plane

Far Clip Plane View

Volume

Left Clip Plane

Right Clip Plane

f

FOV

Trang 31

Projection summary

Trang 32

Any questions?

Trang 33

Lecture notes provided by School of Information and

Communication Technology, Hanoi University of Science and

Technology.

Composed by Huynh Quyet Thang, Le Tan Hung, Trinh Thanh

Trung and others

Edited by Trinh Thanh Trung

Special thanks to all the people who made and released these awesome resources for free:

■ Presentation template by SlidesCarnival

■ Photographs by Death to the Stock Photo ( license )

■ Diverse device hand photos by Facebook Design Resources

Ngày đăng: 02/03/2024, 14:00

TÀI LIỆU CÙNG NGƯỜI DÙNG

TÀI LIỆU LIÊN QUAN