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 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 ) { matrix4 out; out.ToAxisAngle( ... _ 14 = 0; _ 24 = 0; _ 34 = 0; _44 = 1; // now get the new translation vector point3 temp = in.GetLoc(); _41 = -( temp.x * in._11 + temp.y * in._12 + temp.z * in._13); _42 = -( temp.x...
  • 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 is 3-dimensional ... are: 43 5 // 15-bit depth buffer and 1-bit stencil d3dpp.AutoDepthStencilFormat = D3DFMT_D15S1; else // 16-bit depth buffer and no stencil d3dpp.AutoDepthStencilFormat = D3DFMT_D16;...
  • 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] )-& gt;m_vert.loc; out += (-1 .f/16.f) ... qualifying as advanced Direct3D material. Just about every 3D game that has come out in the last few years has used it, so it can't be terribly complex. When drawing your 3D objects with only...
  • 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 DirectInput Chapter 4 - DirectSound Chapter 5 - ... 1 Advanced 3D Game Programming with DirectX 9.0 by Peter Walsh ISBN:1556229682 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

... 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 ) d3dpp.BackBufferFormat ... available r = m_pD3D->CreateDevice( D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, m_hWnd, D3DCREATE_SOFTWARE_VERTEXPROCESSING, &d3dpp, &m_pDevice ); if( FAILED(r)) { throw cGameError( "Could...
  • 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 DirectX 9.0 * * * * * * * * * ... #endif //_SOUND_H Listing 4. 6: Sound.cpp /******************************************************************* * Advanced 3D Game Programming using DirectX 9.0 * * * * * * * * *...
  • 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 28 -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"); 3 24 Creating a successful ... /******************************************************************* * Advanced 3D Game Programming using DirectX 9.0 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
  • 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; D3DMATRIX ... D3DVALUE g; D3DVALUE dvG; }; union { D3DVALUE b; D3DVALUE dvB; }; union { D3DVALUE a; D3DVALUE dvA; }; } D3DCOLORVALUE; This structure is equivalent to the color4...
  • 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_TRIANGLESTRIP, ... pDevice->SetTexture( 1, m_pTextures [4 ]-& gt;GetTexture() ); pDevice->SetTextureStageState(1, D3DTSS_TEXCOORDINDEX, 1 ); SetColorStage( 1, D3DTA_TEXTURE, D3DTA_CURRENT, D3DTOP_MODULATE...
  • 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(), 10 0-1 01, 30 8-3 09 lock, 43 locking, 4 2 -4 3 LockRect(), ... application, 33 4- 3 44 octrees, 48 8 off-screen buffer, 42 origin, 40 , 120 overdraw counter, 47 9 setting stencil buffer for, 47 9 -4 80 P packets, 24 9-2 50 painter's algorithm, 30 3-3 04 paletted...
  • 67
  • 375
  • 0

Xem thêm

Từ khóa: master of 3d web programming3d web programming in webglpro java 6 3d game developmentprogramming with the kinectprogramming with qt 4Nghiê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ố THzNghiên cứu tổ chức chạy tàu hàng cố định theo thời gian trên đường sắt việt namBiện pháp quản lý hoạt động dạy hát xoan trong trường trung học cơ sở huyện lâm thao, phú thọGiáo án Sinh học 11 bài 13: Thực hành phát hiện diệp lục và carôtenôitNGHIÊN CỨU CÔNG NGHỆ KẾT NỐI VÔ TUYẾN CỰ LY XA, CÔNG SUẤT THẤP LPWAN SLIDETrả 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 hiện xâm nhập dựa trên thuật toán k meansNghiê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 về mô hình thống kê học sâu và ứng dụng trong nhận dạng chữ viết tay hạn chếNghiê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úngĐịnh tội danh từ thực tiễn huyện Cần Giuộc, tỉnh Long An (Luận văn thạc sĩ)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ĩ)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ỘITÁI CHẾ NHỰA VÀ QUẢN LÝ CHẤT THẢI Ở HOA KỲ