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

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); ... z*y*(1-c)+(x*s); _33 = z*z*(1-c)+c; _43 = 0; _ 14 = 0; _ 24 = 0; _ 34 = 0; _44 = 1; } matrix4 matrix4::AxisAngle( const point3& axis, float angle...

Ngày tải lên: 08/08/2014, 23:20

71 270 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 ... mtVertex::m_fvfFlags = D3DFVF_XYZ | D3DFVF_NORMAL | D3DFVF_DIFFUSE | D3DFVF_SPECULAR | D3DFVF_TEXCOORDSIZE2(0) | // set 0 is 2-dimensional D3DFVF_TEXCOORDSIZE3(1); // set 1...

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

... 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 ... outside 4 verts 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 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 Dire...

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

... standard, full-screen, 640 x480, 32-bit application: Listing 2.7: Filling in the D3DPRESENT_PARAMETERS structure D3DPRESENT_PARAMETERS d3dpp; ZeroMemory( &d3dpp, sizeof( d3dpp ) ); ... 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 ) d3dp...

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

... //_SOUNDLAYER_H Listing 4. 4: SoundLayer.cpp /******************************************************************* * Advanced 3D Game Programming using DirectX 9.0 144 hwnd Handle to the ... code is in Listing 4. 4. Listing 4. 3: SoundLayer.h /******************************************************************* * Advanced 3D Game Programming using D...

Ngày tải lên: 08/08/2014, 23:20

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 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 ... do cout. printf( " ;Advanced 3D Game Programming using DirectX 9.0\n" ); printf( " \n\n" ); printf( "Neural Net Simulator\n\n&quo...

Ngày tải lên: 08/08/2014, 23:20

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

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

... _21, _22, _23, _ 24; D3DVALUE _31, _32, _33, _ 34; D3DVALUE _41 , _42 , _43 , _44 ; } D3DMATRIX, *LPD3DMATRIX; The Depth Problem (and How Direct3D Solves It) 396 D3DRS_BLENDOP Sets ... struct _D3DVECTOR { union { D3DVALUE x; D3DVALUE dvX; }; union { D3DVALUE y; D3DVALUE dvY; }; union { D3DVALUE z; D3DVALUE dvZ; }; } D3DVECTOR, *LPD3DVECTOR; D3DM...

Ngày tải lên: 08/08/2014, 23:20

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

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

... pDevice->SetTextureStageState( 1, D3DTSS_COLORARG1, D3DTA_TEXTURE ); pDevice->SetTextureStageState( 1, D3DTSS_COLORARG2, D3DTA_CURRENT ); pDevice->SetTextureStageState( 1, D3DTSS_COLOROP, ... TRUE ); pDevice->SetRenderState( D3DRS_SRCBLEND, D3DBLEND_SRCALPHA ); pDevice->SetRenderState( D3DRS_DESTBLEND, D3DBLEND_ONE ); pDevice->DrawPrimitiveUP( D3DPT_TRIANGLESTR...

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

... maps, 44 3 -4 44 setting up using multipass, 44 4- 4 45 setting up using multitexture, 44 4 light types, 17 9-1 81 LightEnable(), 312 lighting, 173 models, 17 6-1 77 lights, using, 31 0-3 14 limit ... clipping, 14 4- 1 45 link ping, 278 listeners, 78 little endian, 24 5-2 46 local coordinate space, 157 location, defining, 14 1-1 43 Lock...

Ngày tải lên: 08/08/2014, 23:20

67 375 0
w