[Tutorial]Enabling AA (multisampling)

Results 1 to 4 of 4
  1. #1
    (oO (||||) (||||) Oo) jM2.me is offline
    MemberRank
    Aug 2009 Join Date
    USA (Fuck Yeah)Location
    2,527Posts

    [Tutorial]Enabling AA (multisampling)

    I always hated how AA (multisampling) is disabled in luna.
    Now it can be fixed.

    What it does? It makes edges on objects (models) smooth instead of having choppy ones.

    Example (AAx4) (warning 2MB pic)


    So how do we do it?

    1. (Optional) Open up LUNASolution if you are using my repack
    2. Open project Renderer
    3. Now go to folder "device" and open file "CoD3DDevice.cpp"
    4. Around line 722 you will find following
      Code:
      hr	=	m_pD3D->CreateDevice( D3DADAPTER_DEFAULT,D3DDEVTYPE_HAL,
      					GetDesktopWindow(),
      					m_dwBehaviorFlags|D3DCREATE_MULTITHREADED,
      					&m_d3dpp, &m_pD3DDevice );
    5. Just before that add following line
      Code:
      m_d3dpp.MultiSampleType = D3DMULTISAMPLE_4_SAMPLES;
    6. Save and build Renderer project
    7. Copy new renderer.dll to client and test


    Notes
    • You can change sample rates to 2, 4, 8, 16
    • AA (multisampling) can cause some minor graphical UI glitches
    • This is not the best way to do this since you are forcing everyone to have AA set to x4. Some might have low end graphics card that will not be able to handle AA at all. I would suggest you add it as a option to 'DISPLAY_INFO' struct and load it from config file or wherever you want.
    • Do this on your own risk
    • Yes, advanced players/users can force AA in graphics card settings.


  2. #2
    Valued Member elcapo is offline
    MemberRank
    Sep 2004 Join Date
    hereLocation
    111Posts

    Re: [Tutorial]Enabling AA (multisampling)

    Excelent. Thanks

  3. #3
    Valued Member gozex is offline
    MemberRank
    Feb 2013 Join Date
    122Posts

    Re: [Tutorial]Enabling AA (multisampling)

    Im Trying to use AA MultiSampling but it cause glitches in graphical UI
    and can't use screenshot say "screenshot failed" whats wrong?

  4. #4
    I play it straight up, yo pokchop1 is offline
    MemberRank
    May 2012 Join Date
    Emporia, KSLocation
    933Posts

    Re: [Tutorial]Enabling AA (multisampling)

    Quote Originally Posted by gozex View Post
    Im Trying to use AA MultiSampling but it cause glitches in graphical UI
    and can't use screenshot say "screenshot failed" whats wrong?
    Thats for you to figure out, and he did point out in the notes part of his post that it may cause it.



Advertisement