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

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 ... enumeration D3DRS_FILLMODE The fill mode; specified with the D3DFILLMODE enumeration D3DRS_SHADEMODE The shade mode; specified with the D3DSHADEMODE enumeration D3DRS_LINEPATT...
Ngày tải lên : 08/08/2014, 23:20
  • 71
  • 295
  • 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 ... 1 Advanced 3D Game Programming with DirectX 9.0 by Peter Walsh ISBN:15 562 2 968 2 Wordware Publishing © 2003 (525 pages) Designed for pro...
Ngày tải lên : 08/08/2014, 23:20
  • 71
  • 523
  • 0
Advanced 3D Game Programming with DirectX - phần 2 doc

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

... back buffer d3dpp.BackBufferWidth = width; d3dpp.BackBufferHeight = height; // Set the flags for the bit depth - only supports 1 6- , 2 4-, and 32-bit formats if( bpp == 16 ) d3dpp.BackBufferFormat ... standard, full-screen, 64 0x480, 32-bit application: Listing 2.7: Filling in the D3DPRESENT_PARAMETERS structure D3DPRESENT_PARAMETERS d3dpp; ZeroMemory( &d3dpp,...
Ngày tải lên : 08/08/2014, 23:20
  • 71
  • 486
  • 0
Advanced 3D Game Programming with DirectX - phần 3 pot

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

... " [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( ... /******************************************************************* * Advanced 3D Game Programming using DirectX 9.0 * * * * * * * * * * * * * * * * * * * * *...
Ngày tải lên : 08/08/2014, 23:20
  • 71
  • 408
  • 0
Advanced 3D Game Programming with DirectX - phần 4 ppsx

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

... 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); _33 = z*z*(1-c)+c; ... 263 } return *this; } #endif //_BSPTREE_H Listing 5. 36: BspTree.cpp /******************************************************************* * Advanced...
Ngày tải lên : 08/08/2014, 23:20
  • 71
  • 270
  • 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 2 0 -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 ... // _NEURALNET_H Listing 6. 12: NeuralNet.cpp /******************************************************************* * Advanced 3D Game Programming u...
Ngày tải lên : 08/08/2014, 23:20
  • 71
  • 347
  • 0
Advanced 3D Game Programming with DirectX - phần 7 ppsx

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

... for 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 ... 435 // 15-bit depth buffer and 1-bit stencil d3dpp.AutoDepthStencilFormat = D3DFMT_D15S1; else // 1 6- bit depth buffer and no stencil d3dpp.AutoDepthStencilFormat = D3DFMT_D...
Ngày tải lên : 08/08/2014, 23:20
  • 71
  • 354
  • 0
Advanced 3D Game Programming with DirectX - phần 8 ppsx

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

... data set 26 # top of the room, 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 ... out += (-1 .f/ 16. f) * GetOtherVert( other[0], m_v[0], m_v[1] )-& gt;m_vert.loc; out += (-1 .f/ 16. f) * GetOtherVert( other[0], m_v[1], m_v[0] )-...
Ngày tải lên : 08/08/2014, 23:20
  • 71
  • 328
  • 0
Advanced 3D Game Programming with DirectX - phần 9 pot

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

... D3DTOP_SELECTARG1 ); pDevice->SetRenderState( D3DRS_ALPHABLENDENABLE, FALSE ); pDevice->SetTexture( 0, pBase ); 61 6 SetColorStage( 0, D3DTA_TEXTURE, D3DTA_DIFFUSE, D3DTOP_SELECTARG2 ... TRUE ); pDevice->SetRenderState( D3DRS_SRCBLEND, D3DBLEND_SRCALPHA ); pDevice->SetRenderState( D3DRS_DESTBLEND, D3DBLEND_ONE ); pDevice->DrawPrimitiveUP( D3DPT_TRI...
Ngày tải lên : 08/08/2014, 23:20
  • 71
  • 400
  • 0
Advanced 3D Game Programming with DirectX - phần 10 potx

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

... 23, 2 6- 2 8 modifying, 66 , 91, 114 cBspTree, 19 2-2 02 cDataPacket, 261 cFwdDiffIterator, 36 4-3 66 cGameError, 24 cGraphicsLayer, 55 modifying, 33 3-3 34 chasing algorithm, 20 5-2 06 cHost, ... 44 6- 4 51 error codes, 6 Euler rotation transformation, creating, 16 4-1 65 evading algorithm, 2 06 exact portal rendering, 49 6- 4 97 examples b-s...
Ngày tải lên : 08/08/2014, 23:20
  • 67
  • 375
  • 0

Xem thêm

Từ khóa: