Irrlicht is nice little renderer, but I was wondering where the AA had gone.
I don't know if anyone has tried this already, but here's how I managed to improve the quality of rendering if you use the DirectX9 driver. It involves a small recompile of the irrlichtDLL.
1. Open CVideoDirectX9.cpp, locate the line (line 190ish)
that sets the swap effect and set ito this:
Code: Select all
present.SwapEffect = D3DSWAPEFFECT_DISCARD;
Code: Select all
present.MultiSampleType = D3DMULTISAMPLE_2_SAMPLES;
3. Go down to the line (281ish) that gets the device capabilities.., and add this afterwards:
//antialiasing ON!
Code: Select all
pID3DDevice->SetRenderState( D3DRS_MULTISAMPLEANTIALIAS , TRUE );
Note1 that this may break other things, I've only tried it with the demos and my amazing rotating cube app.
Note2 You may also want to wrap (3) with a call to CheckDeviceMultiSampleType to make sure that your GFX card supports it, otherwise there could be a small fire, or more likely a crash.
Cheers,
Chips
P.S.
If you are using VC++6 you can only use DX9SDK Oct 2004 and you will need the extras pack from microsoft. This gets rid of that annoying "security cookie" link failure:
Put the extracted libs at the top of your link path before anything else.
http://www.microsoft.com/downloads/deta ... laylang=en