Kinh doanh - Marketing
Kinh tế quản lý
Biểu mẫu - Văn bản
Tài chính - Ngân hàng
Công nghệ thông tin
Tiếng anh ngoại ngữ
Kĩ thuật công nghệ
Khoa học tự nhiên
Khoa học xã hội
Văn hóa nghệ thuật
Sức khỏe - Y tế
Văn bản luật
Nông Lâm Ngư
Kỹ năng mềm
Luận văn - Báo cáo
Giải trí - Thư giãn
Tài liệu phổ thông
Văn mẫu
Giới thiệu
Đăng ký
Đăng nhập
Tìm
Danh mục
Kinh doanh - Marketing
Kinh tế quản lý
Biểu mẫu - Văn bản
Tài chính - Ngân hàng
Công nghệ thông tin
Tiếng anh ngoại ngữ
Kĩ thuật công nghệ
Khoa học tự nhiên
Khoa học xã hội
Văn hóa nghệ thuật
Y tế sức khỏe
Văn bản luật
Nông lâm ngư
Kĩ năng mềm
Luận văn - Báo cáo
Giải trí - Thư giãn
Tài liệu phổ thông
Văn mẫu
Thông tin
Điều khoản sử dụng
Quy định bảo mật
Quy chế hoạt động
Chính sách bản quyền
Giới thiệu
Đăng ký
Đăng nhập
0
Trang chủ
Công Nghệ Thông Tin
Kỹ thuật lập trình
3d game engine programming phần 3
Đang chuẩn bị liên kết để tải về tài liệu:
3d game engine programming phần 3
Mỹ Ngọc
84
89
pdf
Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ
Tải xuống
Phạt cảnh cáo ZFXPlane phương pháp cắt, kiểm tra các giao lộ của một tam giác với một chiếc máy bay, cũng sẽ báo cáo một ngã tư nếu tam giác chỉ đơn thuần là chạm máy bay. Điều đó có nghĩa rằng ít nhất một đỉnh nằm trên máy bay và không được nêu ra trên một mặt khác nhau hơn so với hai điểm khác. | Working with Planes 147 int n this- Classify vc0 if n this- Classify vc1 n this- Classify vc2 return false return true Intersects Tri Caution The method ZFXPlane Intersects which checks for the intersection of a triangle with a plane will also report an intersection if the triangle merely touches the plane. That means that at least one vertex lies on the plane and not yet on a different side than the other two points. Some applications might not want to interpret this as an intersection. Intersections Between Planes Interestingly you can also calculate whether two planes are colliding. As you know planes are extending themselves to infinity so there is only one case in which two planes do not intersect each other if both planes are parallel. If the planes intersect however the intersection has the form of a line not a single point. But that should be obvious. The following code is based on an implementation by David Eberly. The test for an intersection is actually pretty simple. To check for the parallel case you only need to build the cross product of the planes normal vectors. If the resulting vector of this cross product operation is the zero vector you know the planes are parallel. Tip Check out David Eberly s website at www.magic-software.com. It contains lots of source code and mathematical papers about 3D graphics in general and intersection detection in particular. bool ZFXPlane Intersects const ZFXPlane plane ZFXRay pIntersection ZFXVector vcCross float fSqrLength if cross product equals 0 planes are parallel vcCross.Cross this- m_vcN plane.m_vcN fSqrLength vcCross.GetSqrLength if fSqrLength 1e-08f return false TEAM LinG - Live Informative Non-cost and Genuine 148 Chapter 4 Fast 3D Calculus intersection line if needed if pIntersection float fN00 this- m_vcN.GetSqrLength float fN01 this- m_vcN plane.m_vcN float fN11 plane.m_vcN.GetSqrLength float fDet fN00 fN11 - fN01 fN01 if _fabs fDet 1e-08f return false float fInvDet 1.0f fDet float fC0 fN11 this- m_fD -
TÀI LIỆU LIÊN QUAN
CREATING GAME ART FOR 3D ENGINE
Blender Game Engine - Beginner's Guide
Blender Summer of Documentation: Learning the Blender Game Engine
Bài giảng Phát triển sản phẩm với Unity: Bài 1 - Nguyễn Thị Lan Anh
Beginning Blender
3d game engine programming phần 1
3d game engine programming phần 2
3d game engine programming phần 3
3d game engine programming phần 4
3d game engine programming phần 5
crossorigin="anonymous">
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.