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 2 doc

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

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

... set this to D3DFMT_ A8R8G8B8 for 3 2- 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, 640x480, 3 2- 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 3 2- bit formats if( bpp == 16 ) d3dpp.BackBufferFormat...
  • 71
  • 486
  • 0
Advanced 3D Game Programming with DirectX - phần 1 doc

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

... 1 Advanced 3D Game Programming with DirectX 9.0 by Peter Walsh ISBN:155 622 96 82 Wordware Publishing © 20 03 ( 525 pages) Designed for programmers who are new to graphics and game programming, ... 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 -...
  • 71
  • 523
  • 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 ... D3DMATRIX pointer, as they are laid out in memory the same way. Listing 8.4: The D3DMATRIX structure typedef struct _D3DMATRIX { D3DVALUE _11, _ 12, _13, _14; D3DVALUE _21 , _22 , _23 , ... D3DVALUE _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...
  • 71
  • 295
  • 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 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Desc: Sample application for Direct3D * * copyright (c) 20 02 by ... * Advanced 3D Game Programming using DirectX 9.0 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Desc: Sample application for Direct3D * * copyright (c) 20 02 by ... // Tell Direct3D we are about to start rendering Graphics( )-& gt;GetDevice( )-& gt;BeginScene(); // Output the text Graphics( )-& gt;DrawTextString( 1, 1, D3DCOLOR_XRGB( 0, 25 5, 0), help.c_str()...
  • 71
  • 408
  • 0
Advanced 3D Game Programming with DirectX - phần 4 ppsx

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

... _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); ... = in._11; _ 12 = in. _21 ; _13 = in._31; _21 = in._ 12; _22 = in. _22 ; _23 = in._ 32; _31 = in._13; _ 32 = in. _23 ; _33 = in._33; // fix right column _14 = 0; _24 = 0; _34 = ... in.GetLoc(); _41 = -( temp.x * in._11 + temp.y * in._ 12 + temp.z * in._13); _ 42 = -( temp.x * in. _21 + temp.y * in. _22 + temp.z * in. _23 ); _43 = -( temp.x * in._31 + temp.y * in._ 32 + temp.z * in._33);...
  • 71
  • 270
  • 0
Advanced 3D Game Programming with DirectX - phần 5 pptx

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

... whole number that takes up 2 bytes. In a little endian system, the bytes are 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 ... endian system stores same value the other way around with bits 0-7 representing values 2 8 -2 15 and bits 8-1 5 representing values 2 0 -2 7. 29 7 } } } void cWorld::ShortestPath( sPath* ... // _NEURALNET_H Listing 6. 12: NeuralNet.cpp /******************************************************************* * Advanced 3D Game Programming using DirectX 9.0 * * * * * * * *...
  • 71
  • 347
  • 0
Advanced 3D Game Programming with DirectX - phần 7 ppsx

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

... - only supports 1 6-, 2 4-, and 3 2- bit formats if( bpp == 16 ) d3dpp.BackBufferFormat = D3DFMT_R5G6B5; else if( bpp == 24 ) d3dpp.BackBufferFormat = D3DFMT_R8G8B8; else if( bpp == 32 ... texCoord2 m_tex1; texCoord3 m_tex2; static ulong m_fvfFlags; }; ulong mtVertex::m_fvfFlags = D3DFVF_XYZ | D3DFVF_NORMAL | D3DFVF_DIFFUSE | D3DFVF_SPECULAR | D3DFVF_TEXCOORDSIZE2(0) ... point3(0 ,-4 ,2) .Normalized(), 0.5f * color3::White + 0.2f * color3::Red, 0.7f * color3::White + 0.2f * color3::Red, 0.2f * color3::White + 0.2f * color3::Red); // Set the light pDevice->SetLight(...
  • 71
  • 354
  • 0
Advanced 3D Game Programming with DirectX - phần 8 ppsx

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

... Graphics( )-& gt;GetDevice( )-& gt;CreateVertexBuffer( m_nVerts * sizeof( sVertex ), D3DUSAGE_WRITEONLY, D3DFVF_XYZ | D3DFVF_NORMAL | D3DFVF_TEX1, D3DPOOL_DEFAULT, &m_pVertexBuffer ); 524 This ... pOther = m_v[prim ]-& gt;m_edgeList[i ]-& gt;Other( m_v[prim] ); if( pOther == m_v[sec] ) out += (5.f/ 12. f) * pOther->m_vert.loc; else out += (-1 .f/ 12. f) * pOther->m_vert.loc; } ... out += (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 9 pot

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

... pDevice->SetRenderState( D3DRS_SRCBLEND, D3DBLEND_SRCALPHA ); pDevice->SetRenderState( D3DRS_DESTBLEND, D3DBLEND_INVSRCALPHA ); pDevice->DrawPrimitiveUP( 5 92 pDevice->SetTexture( ... TRUE ); pDevice->SetRenderState( D3DRS_SRCBLEND, D3DBLEND_SRCALPHA ); pDevice->SetRenderState( D3DRS_DESTBLEND, D3DBLEND_ONE ); pDevice->DrawPrimitiveUP( D3DPT_TRIANGLESTRIP, ... COLORARG1, D3DTA_DIFFUSE ); pDevice->SetTextureStageState( 1, COLORARG2, D3DTA_CURRENT ); pDevice->SetTextureStageState( 1, COLOROP, D3DTOP_MODULATE ); pDevice->SetRenderState( D3DRS_ALPHABLENDENABLE,...
  • 71
  • 400
  • 0
Advanced 3D Game Programming with DirectX - phần 10 potx

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

... 681motivation, 20 4, 22 4 motor skills, 20 4 MSG structure, 5 MTUDP, 25 1 classes, 26 1 -2 67, 27 4 -2 75, 27 9 -2 82 functions, 25 5 -2 61, 26 8 -2 74, 27 5 -2 79 MTUDP(), 25 6 MTUDPMSGTYPE, 27 1 -2 72 multipass, ... multithreading, 25 0 -2 51 mutexes, 25 2- 2 54 N nameless struct, 123 network models, 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 ... patches, 354, 4 02 path, finding shortest, 21 9 -2 20 path following, 21 2 path planning, 21 2- 2 18 example application, 22 0 -2 23 pattern, 20 6 pattern-based algorithm, 20 6 -2 07 peer-to-peer configuration,...
  • 67
  • 375
  • 0

Xem thêm

Từ khóa: cậu bé vô song phần 2 đọc onlinevray for sketchup vietnamese phần 2 docxgame and graphics programming for ios and android with opengl es 2 0 pdf downloadgame and graphics programming for ios and android with opengl es 2 0 pdfgame and graphics programming for ios and android with opengl es 2 0 wrox programmer to programmergame and graphics programming for ios and android with opengl es 2 0 ebookNghiên cứu sự biến đổi một số cytokin ở bệnh nhân xơ cứng bì hệ thốngchuyên đề điện xoay chiều theo dạngNghiên cứu sự hình thành lớp bảo vệ và khả năng chống ăn mòn của thép bền thời tiết trong điều kiện khí hậu nhiệt đới việt namMộ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 HTTPNghiên cứu vật liệu biến hóa (metamaterials) hấp thụ sóng điện tử ở vùng tần số THzGiá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ô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ôitĐỒ ÁN NGHIÊN CỨU CÔNG NGHỆ KẾT NỐI VÔ TUYẾN CỰ LY XA, CÔNG SUẤT THẤP LPWANPhố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ọPhát triển mạng lưới kinh doanh nước sạch tại công ty TNHH một thành viên kinh doanh nước sạch quảng ninhNghiên cứu khả năng đo năng lượng điện bằng hệ thu thập dữ liệu 16 kênh DEWE 5000Thơ nôm tứ tuyệt trào phúng hồ xuân hươngThiết kế và chế tạo mô hình biến tần (inverter) cho máy điều hòa không khíKiể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ĩ)Quản lý nợ xấu tại Agribank chi nhánh huyện Phù Yên, tỉnh Sơn La (Luận văn thạc sĩ)Giá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ậtGiáo án Sinh học 11 bài 14: Thực hành phát hiện hô hấp ở thực vậtQUẢN LÝ VÀ TÁI CHẾ NHỰA Ở HOA KỲ