0
  1. Trang chủ >
  2. Công Nghệ Thông Tin >
  3. Thiết kế - Đồ họa - Flash >

Advanced 3D Game Programming with DirectX - phần 8 ppsx

Advanced 3D Game Programming with DirectX - phần 8 ppsx

Advanced 3D Game Programming with DirectX - phần 8 ppsx

... very reflective 0.0 0.0 0.0 0.76 ## -1 0.0 10.0 -1 0.0 10.0 10.0 -1 0.0 10.0 10.0 -8 .0 -1 0.0 10.0 -8 .0 This code can only correctly deal with square polygons. Adding support for ... HRESULT hr; hr = Graphics( )-& gt;GetDevice( )-& gt;CreateVertexBuffer( m_nVerts * sizeof( sVertex ), D3DUSAGE_WRITEONLY, D3DFVF_XYZ | D3DFVF_NORMAL | D3DFVF_TEX1, D3DPOOL_DEFAULT, &m_pVertexBuffer ... (1.f/2.f) * m_v[0 ]-& gt;m_vert.loc; out += (1.f/2.f) * m_v[1 ]-& gt;m_vert.loc; // top/bottom ones out += (1.f /8. f) * other[0 ]-& gt;m_vert.loc; out += (1.f /8. f) * other[1 ]-& gt;m_vert.loc;...
  • 71
  • 328
  • 0
Advanced 3D Game Programming with DirectX - phần 4 ppsx

Advanced 3D Game Programming with DirectX - phần 4 ppsx

... x*x*(1-c)+c; _21 = x*y*(1-c )-( z*s); _31 = x*z*(1-c)+(y*s); _41 = 0; _12 = y*x*(1-c)+(z*s); _22 = y*y*(1-c)+c; _32 = y*z*(1-c )-( x*s); _42 = 0; _13 = z*x*(1-c )-( y*s); _23 = z*y*(1-c)+(x*s); ... /******************************************************************* * Advanced 3D Game Programming using DirectX 9.0 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Desc: Sampe application for Direct3D * * copyright ... if( !m_pHead ) 255reject early (so rendering front-to-back can be an advantage), and alpha-blended polygons need to be rendered back-to-front to be rendered correctly. The fundamental concept...
  • 71
  • 270
  • 0
Advanced 3D Game Programming with DirectX - phần 7 ppsx

Advanced 3D Game Programming with DirectX - phần 7 ppsx

... 32 ) d3dpp.BackBufferFormat = D3DFMT_A8R8G8B8; else { OutputDebugString( "Invalid surface format - defaulting to 32bit" ); d3dpp.BackBufferFormat = D3DFMT_A8R8G8B8; } ... the bit depth - only supports 1 6-, 2 4-, and 32-bit formats if( bpp == 16 ) d3dpp.BackBufferFormat = D3DFMT_R5G6B5; else if( bpp == 24 ) d3dpp.BackBufferFormat = D3DFMT_R8G8B8; else if( ... mtVertex::m_fvfFlags = D3DFVF_XYZ | D3DFVF_NORMAL | D3DFVF_DIFFUSE | D3DFVF_SPECULAR | D3DFVF_TEXCOORDSIZE2(0) | // set 0 is 2-dimensional D3DFVF_TEXCOORDSIZE3(1); // set 1 is 3-dimensional ...
  • 71
  • 354
  • 0
Advanced 3D Game Programming with DirectX - phần 1 doc

Advanced 3D Game Programming with DirectX - phần 1 doc

... 5 - 3D Math Foundations Chapter 6 - Artificial Intelligence Chapter 7 - UDP Networking Chapter 8 - Beginning Direct3D Chapter 9 - Advanced 3D Programming Chapter 10 - Advanced ... DirectX 9.0 Introduction Chapter 1 - Windows Chapter 2 - Getting Started with DirectX Chapter 3 - Communicating with DirectInput Chapter 4 - DirectSound Chapter 5 - ... 1 Advanced 3D Game Programming with DirectX 9.0 by Peter Walsh ISBN:1556229 682 Wordware Publishing © 2003 (525 pages) Designed for programmers who are new to graphics and game programming, ...
  • 71
  • 523
  • 0
Advanced 3D Game Programming with DirectX - phần 2 doc

Advanced 3D Game Programming with DirectX - phần 2 doc

... d3dpp.BackBufferFormat = D3DFMT_R5G6B5; else if( bpp == 24 ) d3dpp.BackBufferFormat = D3DFMT_X8R8G8B8; else if( bpp == 32 ) d3dpp.BackBufferFormat = D3DFMT_A8R8G8B8; else { OutputDebugString( ... set this to D3DFMT_ A8R8G8B8 for 32-bit surfaces. For more information, see DirectX 9.0 C++ Documentation /DirectX Graphics/Direct3D C++ Reference/Enumerated Types/D3DFORMAT. 82 { HRESULTr=0; ... standard, full-screen, 640x 480 , 32-bit application: Listing 2.7: Filling in the D3DPRESENT_PARAMETERS structure D3DPRESENT_PARAMETERS d3dpp; ZeroMemory( &d3dpp, sizeof( d3dpp ) ); ...
  • 71
  • 486
  • 0
Advanced 3D Game Programming with DirectX - phần 3 pot

Advanced 3D Game Programming with DirectX - phần 3 pot

... /******************************************************************* * Advanced 3D Game Programming using DirectX 9.0 144hwnd Handle to the window to be associated with the DirectSound object. This should be the ... /******************************************************************* * Advanced 3D Game Programming using DirectX 9.0 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Desc: Sample application for Direct3D * * copyright ... [6]: Hi-Hat\n"; // Tell Direct3D we are about to start rendering Graphics( )-& gt;GetDevice( )-& gt;BeginScene(); // Output the text Graphics( )-& gt;DrawTextString( 1, 1, D3DCOLOR_XRGB(...
  • 71
  • 408
  • 0
Advanced 3D Game Programming with DirectX - phần 5 pptx

Advanced 3D Game Programming with DirectX - phần 5 pptx

... stored with bits 0-7 representing the values 20 -2 7 and bits 8- 1 5 representing values 2 8 -2 15. But the CPU in a big endian system stores same value the other way around with bits 0-7 representing ... /******************************************************************* * Advanced 3D Game Programming using DirectX 9.0 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ... main(int argc, char* argv[]) { // Sorry, I don't do cout. printf( " ;Advanced 3D Game Programming using DirectX 9.0\n" ); printf( " \n\n" ); printf( "Neural Net...
  • 71
  • 347
  • 0
Advanced 3D Game Programming with DirectX - phần 6 doc

Advanced 3D Game Programming with DirectX - phần 6 doc

... struct _D3DVECTOR { union { D3DVALUE x; D3DVALUE dvX; }; union { D3DVALUE y; D3DVALUE dvY; }; union { D3DVALUE z; D3DVALUE dvZ; }; } D3DVECTOR, *LPD3DVECTOR; D3DMATRIX ... Table 8. 1: Direct3D render states D3DRS_ZENABLE Depth buffering state defined with a member of the D3DZBUFFERTYPE enumeration D3DRS_FILLMODE The fill mode; specified with the D3DFILLMODE ... D3DVALUE dvR; }; union { D3DVALUE g; D3DVALUE dvG; }; union { D3DVALUE b; D3DVALUE dvB; }; union { D3DVALUE a; D3DVALUE dvA; }; } D3DCOLORVALUE; This structure...
  • 71
  • 295
  • 0
Advanced 3D Game Programming with DirectX - phần 9 pot

Advanced 3D Game Programming with DirectX - phần 9 pot

... pDevice->SetRenderState( D3DRS_ALPHABLENDENABLE, TRUE ); pDevice->SetRenderState( D3DRS_SRCBLEND, D3DBLEND_DESTCOLOR ); pDevice->SetRenderState( D3DRS_DESTBLEND, D3DBLEND_SRCCOLOR ... pDevice->SetTextureStageState(1, D3DTSS_TEXTURETRANSFORMFLAGS, D3DTTFF_DISABLE); pDevice->SetTextureStageState(1, D3DTSS_COLOROP, D3DTOP_DISABLE ); pDevice->SetTextureStageState(1, D3DTSS_TEXCOORDINDEX, ... */ pDevice->SetRenderState( D3DRS_ALPHABLENDENABLE, TRUE ); pDevice->SetRenderState( D3DRS_SRCBLEND, D3DBLEND_ONE ); pDevice->SetRenderState( D3DRS_DESTBLEND, D3DBLEND_ONE );...
  • 71
  • 400
  • 0
Advanced 3D Game Programming with DirectX - phần 10 potx

Advanced 3D Game Programming with DirectX - phần 10 potx

... mapping, 45 6-4 58 Direct3D application, 6 6-6 9 DirectInput application, 11 4-1 18 DirectSound application, 11 4-1 18 Hello World, 7-1 0 inverse kinematics, 35 2-3 54 Mobots Attack!, 50 6-5 12 modified ... 24 7-2 48 network play, implementing, 28 2-2 87 neural networks, 22 9-2 30, 23 2-2 34 AND function, 23 2-2 33 example application, 23 5-2 43 OR function, 233 training, 234 using in games, 23 4-2 35 ... 50 4-5 05 implementing, 505 Pythagorean theorem, 12 0-1 21 Q quadric curves, 355 quadtrees, 48 7-4 88 QueryInterface(), 3 0-3 1 R radiance, 402 682 XOR function, 23 3-2 34 neuron, 23 0-2 32...
  • 67
  • 375
  • 0

Xem thêm

Từ khóa: Nghiên cứu sự biến đổi một số cytokin ở bệnh nhân xơ cứng bì hệ thốngMột số giải pháp nâng cao chất lượng streaming thích ứng video trên nền giao thức HTTPđề thi thử THPTQG 2019 toán THPT chuyên thái bình lần 2 có lời giảiGiáo án Sinh học 11 bài 13: Thực hành phát hiện diệp lục và carôtenôitGiáo án Sinh học 11 bài 13: Thực hành phát hiện diệp lục và carôtenôitPhối hợp giữa phòng văn hóa và thông tin với phòng giáo dục và đào tạo trong việc tuyên truyền, giáo dục, vận động xây dựng nông thôn mới huyện thanh thủy, tỉnh phú thọTrả hồ sơ điều tra bổ sung đối với các tội xâm phạm sở hữu có tính chất chiếm đoạt theo pháp luật Tố tụng hình sự Việt Nam từ thực tiễn thành phố Hồ Chí Minh (Luận văn thạc sĩ)Phát triển du lịch bền vững trên cơ sở bảo vệ môi trường tự nhiên vịnh hạ longNghiên cứu, xây dựng phần mềm smartscan và ứng dụng trong bảo vệ mạng máy tính chuyên dùngNghiên cứu tổng hợp các oxit hỗn hợp kích thƣớc nanomet ce 0 75 zr0 25o2 , ce 0 5 zr0 5o2 và khảo sát hoạt tính quang xúc tác của chúngSở hữu ruộng đất và kinh tế nông nghiệp châu ôn (lạng sơn) nửa đầu thế kỷ XIXKiểm sát việc giải quyết tố giác, tin báo về tội phạm và kiến nghị khởi tố theo pháp luật tố tụng hình sự Việt Nam từ thực tiễn tỉnh Bình Định (Luận văn thạc sĩ)Tăng trưởng tín dụng hộ sản xuất nông nghiệp tại Ngân hàng Nông nghiệp và Phát triển nông thôn Việt Nam chi nhánh tỉnh Bắc Giang (Luận văn thạc sĩ)Giáo án Sinh học 11 bài 15: Tiêu hóa ở động vậtGiáo án Sinh học 11 bài 14: Thực hành phát hiện hô hấp ở thực vậtGiáo án Sinh học 11 bài 14: Thực hành phát hiện hô hấp ở thực vậtBÀI HOÀN CHỈNH TỔNG QUAN VỀ MẠNG XÃ HỘIHIỆU QUẢ CỦA MÔ HÌNH XỬ LÝ BÙN HOẠT TÍNH BẰNG KIỀMMÔN TRUYỀN THÔNG MARKETING TÍCH HỢPQUẢN LÝ VÀ TÁI CHẾ NHỰA Ở HOA KỲ