Anti Aliasing

Results 1 to 4 of 4
  1. #1
    Enthusiast ghPer is offline
    MemberRank
    Jul 2013 Join Date
    32Posts

    Anti Aliasing

    /title


  2. #2
    Valued Member aV3PQmCJjM9L is offline
    MemberRank
    Jun 2013 Join Date
    100Posts

    Re: Anti Aliasing

    A lot of snippets released here seems included in National Gunz source (with anti-aliasing).
    Maybe hard to find but you can try.

  3. #3
    Valued Member grandao is offline
    MemberRank
    Feb 2008 Join Date
    RJ - BrasilLocation
    128Posts

    Re: Anti Aliasing

    Code:
    in RealSpace2.cpp
    
    
    function : RResetDevice(const RMODEPARAMS *params)
    
    //before the "HRESULT hr=g_pd3dDevice->Reset(&g_d3dpp);"
    //could be D3DMULTISAMPLE_4_SAMPLES, D3DMULTISAMPLE_8_SAMPLES
    g_d3dpp.MultiSampleType =  D3DMULTISAMPLE_2_SAMPLES;
    
    
    //after HRESULT hr=g_pd3dDevice->Reset(&g_d3dpp);
    RGetDevice()->SetRenderState( D3DRS_MULTISAMPLEANTIALIAS , TRUE );
    
    
    
    function : InitDevice()
    RGetDevice()->SetRenderState( D3DRS_MULTISAMPLEANTIALIAS , TRUE );
    
    
    
    function : RInitDisplay(HWND hWnd, const RMODEPARAMS *params)
    
    change: g_d3dpp.MultiSampleType =  g_MultiSample;
    to: g_d3dpp.MultiSampleType =  D3DMULTISAMPLE_2_SAMPLES;

  4. #4
    Enthusiast ghPer is offline
    MemberRank
    Jul 2013 Join Date
    32Posts

    Re: Anti Aliasing

    Quote Originally Posted by grandao View Post
    Code:
    in RealSpace2.cpp
    
    
    function : RResetDevice(const RMODEPARAMS *params)
    
    //before the "HRESULT hr=g_pd3dDevice->Reset(&g_d3dpp);"
    //could be D3DMULTISAMPLE_4_SAMPLES, D3DMULTISAMPLE_8_SAMPLES
    g_d3dpp.MultiSampleType =  D3DMULTISAMPLE_2_SAMPLES;
    
    
    //after HRESULT hr=g_pd3dDevice->Reset(&g_d3dpp);
    RGetDevice()->SetRenderState( D3DRS_MULTISAMPLEANTIALIAS , TRUE );
    
    
    
    function : InitDevice()
    RGetDevice()->SetRenderState( D3DRS_MULTISAMPLEANTIALIAS , TRUE );
    
    
    
    function : RInitDisplay(HWND hWnd, const RMODEPARAMS *params)
    
    change: g_d3dpp.MultiSampleType =  g_MultiSample;
    to: g_d3dpp.MultiSampleType =  D3DMULTISAMPLE_2_SAMPLES;

    I'm already added anti-aliasing.



Advertisement