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
Focus On 3D Terrain Programming phần 10
Đang chuẩn bị liên kết để tải về tài liệu:
Focus On 3D Terrain Programming phần 10
Phương Chi
69
31
pdf
Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ
Tải xuống
Mặc dù trong quan niệm, điều này tương tự như cây Tam giác nhị phân, chúng ta đã thảo luận đầu chương này, thực hiện nó là khá khác nhau. Chúng ta hãy thử nó! Một ảnh chụp màn hình kết cấu lập bản đồ và chi tiết ánh xạ từ demo7_2. | 194 8. Wrapping It Uũ Special Effects and More Velocity. This is the particle s direction and speed. Mass. This is used to accurately model particle motion. Color. This is the current color of the particle RGB triplet . Translucency. This is the current alpha value transparency of the particle. Size. This is the particle s visual size. Air Resistance. This is the particle s susceptibility to friction in the air. With that in mind we can create a simple particle structure for use with our particle engine. Remember We are greatly simplifying the whole particle engine architecture discussed earlier by cutting out the particle system and complex particle emitter middlemen. The particle structure that follows looks similar to the one we ll be using for our demos. struct SPARTICLE float m_fLife CVECTOR m_vecPosition CVECTOR m_vecVelocity float m_fMass float m_fSize CVECTOR m_vecColor float m_fTranslucency float m_fFriction As you can see we implemented all of the requirements in our previous particle-attribute list into our particle structure. How are we going to use this Well I ll show you but first let me demonstrate the particle engine class because it will be easier to understand everything if I show you this first class CPARTICLE_ENGINE Particle Engines and Their Outdoor Applications 195 private SPARTICLE m_pParticles int m_iNumParticles int m_iNumParticlesOnScreen gravity CVECTOR m_vecForces base particle attributes float m_fLife CVECTOR m_vecPosition float m_fMass float m_fSize CVECTOR m_vecColor float m_fFriction void CreateParticle float fVelX float fVelY float fVelZ public CPARTICLE_ENGINE void CPARTICLE_ENGINE void That is our engine structure as it stands now minus the member customization functions but those are all one line Set functions that you ve seen before namely in the CTERRAIN class . As you can see this structure has a lot of the same variables that our particle structure has. These are the parent or the default values that we are going to give each
TÀI LIỆU LIÊN QUAN
Focus On 3D Terrain Programming
Focus On 3D Terrain Programming phần 1
Focus On 3D Terrain Programming phần 2
Focus On 3D Terrain Programming phần 3
Focus On 3D Terrain Programming phần 4
Focus On 3D Terrain Programming phần 5
Focus On 3D Terrain Programming phần 6
Focus On 3D Terrain Programming phần 7
Focus On 3D Terrain Programming phần 8
Focus On 3D Terrain Programming phần 9
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.