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?
- (Optional) Open up LUNASolution if you are using my repack
- Open project Renderer
- Now go to folder "device" and open file "CoD3DDevice.cpp"
- 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 );- Just before that add following line
Code:m_d3dpp.MultiSampleType = D3DMULTISAMPLE_4_SAMPLES;- Save and build Renderer project
- 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.




Reply With Quote![[Tutorial]Enabling AA (multisampling)](http://ragezone.com/hyper728.png)


