1. Trang chủ
  2. » Lịch sử

Bài giảng Đồ họa máy tính: Bài 4A - Lê Tấn Hùng

10 9 0

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

THÔNG TIN TÀI LIỆU

It could also be transformed by changing its size (scaling), or its shape (deforming), or its location (translation). „ Further animation effects can be[r]

(1)

Affine Transformations

Le Tan Hung

Email: hunglt@it-hut.edu.vn

I KHái niệm II Các phép biến đổi

(2)

(c) SE/FIT/HUT 2002

Mơ hình hố - Modelling

„ mơ hình - model :

„ Modeling - Mơ hình hố „ Thực thể sở

-primitives

„ circles, lines polygons

hay cubes

„ Cảnh - A scene

„ mơ hình hố cảnh - Scene

Modeling

object

(3)

Ví dụ

„ At each frame of the animation, the

object is transformed, in this case by a rotation It could also be transformed by changing its size (scaling), or its shape (deforming), or its location (translation)

„ Further animation effects can be

achieved by not changing the object, but the way it is viewed (i.e the

(4)

(c) SE/FIT/HUT 2002

Phép biến đổi - Transformations

„ Trong kỹ thuật đồ hoạ bước: modeling, rendering, displaying

„ Với Modeling:

„ Phép biến đổi - Transformation

„ Biến đổi mơ hình hố - Modeling transformations „ Biến đổi tạo góc nhìn - Viewing transformations „ Biến đổi tạo Hoạt cảnh - Animation

modeling

coordinate Modeling

transformation Viewing transformation

world

(5)

Transformations - Modeling

(6)

(c) SE/FIT/HUT 2002

Transformations - Viewing

„ Viewing

„ Transformations - Viewing

„ Trong phép biến đổi : „ Một mơ hình quan sát

trên góc cạnh khác (e.g faraway, near, looking

down, looking up) WORLD

(7)

Affine Transformations?

„ Phép biến đổi Affine

„ Ví dụ: phép biến đổi tọa độ với điểm đầu cuối

đoạn thẳng tạo thành điểm mà nối chúng với tạo thành đoạn thẳng

„ Các điểm nằm đoạn thẳng có kết điểm

(8)

(c) SE/FIT/HUT 2002

Phân loại - Transformations

„ Có cách nhìn phép

biến đổi

„ Object Transformation:

„ Coordinate

Transformation

„ Mỗi phương pháp có ưu

nhược điểm riêng chất tương đồng

1,1

.4, 2 Example: OBJECT TRANSFORMATION

(1,1)

(9)

Modeling Transformations

(10)

(c) SE/FIT/HUT 2002

2D Object Transformations

„ A 2D object transformation alters each point P into a

new point Q using a specific formula or algorithm

„ It therefore alters the co-ordinates of P (Px,Py) into

new values which specify point Q (Qx,Qy)

„ This can be expressed using some function T, that

Ngày đăng: 09/03/2021, 05:33

Xem thêm: