+
1 3 123
1 10 24

:

  1. #1
    G007       G007
    24.08.2007
    1,192
    ()
    0
    : 0 (: 0).


    ACTION

  2. #2
    Maniac       Maniac
    08.09.2007
    175
    ()
    0
    : 0 (: 0).


  3. #3
    G007       G007
    24.08.2007
    1,192
    ()
    0
    : 0 (: 0).






  4. #4
    PROflooder at work Ari       Ari
    21.09.2007
    267
    ()
    0
    : 0 (: 0).

    G007, ?
    1. , , , ..
    . - , 95.
    , , .

    2. , 3 . .

    3. 3 /. 3 .

    4. . . .

    .
    , .

  5. #5
    DUKe       DUKe
    31.03.2007
    367
    ()
    0
    : 0 (: 0).

    G007, IMHO, Action - , , .. , , , . - , , ( ).

    , .

  6. #6
    PROflooder at work Ari       Ari
    21.09.2007
    267
    ()
    0
    : 0 (: 0).

    DUKe
    - , , ( ).
    . .

    1

    , , //, , , .

    4

    , , . .

    :
    unit dxfunc;
    
    interface
    
    uses
     Direct3D9, D3Dx9, windows;
    
    function DX3DInit(var ppiD3D9 : IDirect3D9;
       var ppiD3DDevice9 : IDirect3DDevice9;
       hWnd : THandle;
       iWidth, iHeight: integer;
       var bFuulScreen : boolean) : boolean;
    
    implementation
    
    function DX3DInit(var ppiD3D9 : IDirect3D9;
       var ppiD3DDevice9 : IDirect3DDevice9;
       hWnd : THandle;
       iWidth, iHeight: integer;
       var bFuulScreen : boolean) : boolean;
    var
     d3dpp               : TD3DPresentParameters;
     iRes                : integer;
     wndRect, clientRect : TRect;
     d3ddm               : TD3DDISPLAYMODE;
     Flags               : DWORD;
     hRes                : HRESULT;
     Aspect              : real;
     matProjection       : TD3DMATRIX;
    begin
     Result := false;
    
    // Direct3D
    ppiD3D9 := Direct3DCreate9(D3D_SDK_VERSION);
    if ppiD3D9 = nil then exit;
    
    //   
    ZeroMemory(@d3dpp, sizeof(d3dpp));
    
    d3dpp.BackBufferWidth  := iWidth;
    d3dpp.BackBufferHeight := iHeight;
    
    //     
    if (bFullScreen = false) then
     iRes := MessageBox(hWnd, '  ?', 'Screen',
        MB_YESNO or MB_ICONQUESTION)
    else
     iRes := IDYES;
    if (iRes = IDYES) then
      begin
       {FullScreen Mode}
       //   
       d3dpp.BackBufferFormat           := D3DFMT_R5G6B5;
       d3dpp.SwapEffect                 := D3DSWAOEFFECT_FLIP;
       d3dpp.Windowed                   := FALSE;
       d3dpp.FullScreen_RefreshRateInHz := D3DPRESENT_RATE_DEFAULT;
       d3dpp.PresentationInterval       := D3DPRESENT_INTERVAL_DEFAULT;
      end
     else
      begin
       {Windowed Mode}
       //To)l(e caMoe
       GetWindowRect(hWnd, &wndRect);
       GetClientRect(hWnd, &clientRect);
    
       iWidth := iWidth+ (wndRect.right - wndRect.left) -
              (clientRect.right - clientRect.left);
       iHeight := iHeight + (wndRect.bottom - wndRect.top) -
              (clientRect.bottom - clientRect.top);
    
       MoveWindow(hWnd, wndRect.left, wndRect.top, iWidth, iHeight, TRUE);
    
       //  
       ppiD3D9.GetAdapterDisplayMode(D3DADAPTER_DEFAULT, &d3ddm);
    
       // 
       d3dpp.BackBufferFormat := d3ddm.Format;
       d3dpp.SwapEffect       := D3DSWAPEFFECT_DISCARD;
       d3dpp.Windowed         := TRUE;
      end;
    
     Flags := D3DCREATE_MIXED_VERTEXPROCESSING;
    
     // 3D 
     hRes := ppiD3D9.CreateDevice(D3DADAPTER_DEFAULT,
             D3DDEVTYPE_HAL, hWnd, Flags, @d3dpp, ppiD3DDevice9);
    
     if (FAILED(hRes)) then exit;
    
     // 
     Aspect := d3dpp.BackBufferWidth / d3dpp.BackBufferHeight;
     D3DMatrixPerspectiveFovLH(&matProjection, D3DX_PI/4.0, Aspect,
        0.1, 1000.0);
     ppiD3DDevice9.SetTransform(D3DTS_PROJECTION, &matProjection);
    
     // 
     ppiD3DDevice9.SetRenderState(D3DRS_LIGHTING, DWORD(FALSE));
     Result := true;
    end;
    
    end.

  7. #7
    Maniac       Maniac
    08.09.2007
    175
    ()
    0
    : 0 (: 0).

    3D. action. 3D. , .

    Ari
    //
    ppiD3D9.GetAdapterDisplayMode(D3DADAPTER_DEFAULT, &d3ddm);
    . , . . +1

  8. #8
    PROflooder at work Ari       Ari
    21.09.2007
    267
    ()
    0
    : 0 (: 0).

    Maniac
    3D. action. 3D. , .
    flash =)

  9. #9
    Maniac       Maniac
    08.09.2007
    175
    ()
    0
    : 0 (: 0).

    Flash , . , DirectX 3D. - 2D 3D. 2D .
    , 3D 2d , , , , . 2D 3D , . . . , . ?

  10. #10
    PROflooder at work Ari       Ari
    21.09.2007
    267
    ()
    0
    : 0 (: 0).

    Maniac, , ?
    . , .
    3 .

    Maniac
    , DirectX 3D.
    , . .

    Maniac
    .

    Maniac
    , 3D 2d , , , , .
    , , .
    , , 3 2, , . HUD 2 .


    Maniac
    2D 3D
    2 , ? . - 2 =)

    .
    , , , / ? , , , , ? , ? .
    ( ), , .