TAILIEUCHUNG - Multi-Threaded Game Engine Design phần 6

Chương này bao gồm các chủ đề của phim hoạt hình sprite. Chúng tôi sẽ tìm hiểu làm thế nào để làm cho sprites với ma trận chuyển đổi 2D với sự hỗ trợ đầy đủ cho bản dịch, luân chuyển, và nhân rộng. Quá trình đó được gọi là rasterization, trong đó mô tả vẽ của một đối tượng lên một màn hình 2D. | 280 Simpor PDF MergeLandi Split Unregistered Vei-sion - httpV float lightAngle 90 float lightPower float objectAngle 0 float deltaTime 0 void game_end if font delete font if effect delete effect if camera delete camera if mesh delete mesh bool game_preload g_engine- setAppTitle Textured Directional Light Shader Demo g_engine- setScreen 800 600 32 false return true bool game_init HWND hwnd font new Font Arial Bold 18 if font debug Error creating font endl return false create a camera camera new Camera camera- setPosition 0 camera- setTarget 0 0 load the effect effect new Effect if effect- Load debug Error loading effect file n Simpo PDF Mei-ge and Split Unregistered Vei-sion -ehttp return false effect- setTechnique DirectionalTextured 255 255 255 255 create sphere mesh new Mesh mesh- Load mesh- setRotation 0 -90 0 mesh- setScale return true void game_render3d effect- setViewMatrix camera- getViewMatrix View effect- setProjectionMatrix camera- getProjMatrix Projection effect- setWorldMatrix D3DXMATRIX mesh- getMatrix World mesh- Render effect Texture calculate combined inverse transpose matrix D3DXMATRIX inverse wit D3DXMatrixInverse inverse 0 D3DXMATRIX mesh- getMatrix D3DXMatrixTranspose wit inverse effect- setParam WorldInverseTranspose wit move the light source cosf lightAngle sinf lightAngle effect- setParam LightVector lightVector set the light intensity lightPower Math Limit lightPower effect- setParam LightPower lightPower 282 Simpor PDF MergeLandi Split Unregistered Vei-sion - httpV set the light color Math wrapValue Math wrapValue Math wrapValue Math wrapValue effect- setParam LightColor mesh- .

TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã 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.