Anisotropic filtering in AC game engine
#1
Anisotropic filtering - texture quality improvement.

In wiki: http://en.wikipedia.org/wiki/Anisotropic_filtering

Compare:
[Image: Anisotropic_compare.png]
[Image: GGDSG_22.jpg]
Aniso in AC (screenshot):
http://ompldr.org/vNncwMg
Take a look on the floor.

Replace original texture.cpp for this file and recompile client:
http://ompldr.org/vNnd5Zw

In game type /aniso 16 and restart engine.
If aniso 16 too slow try 2, 4 or 8

Changes:
http://sourceforge.net/tracker/?func=det...tid=697091
Compare effect in AC: http://screenshotcomparison.com/comparison/18449
Thanks given by:
#2
Is there any difference between doing this from AC and doing it from nvidia CP (other than being more convenient)?
Thanks given by:
#3
No, you right: you can set AF in NVIDIA CP, but it affects on ALL games. In some games AF may be slow as hell. For example I can't play Sauerbraten with AF 16x on some maps.
Thanks given by:
#4
Newer drivers let you have different configurations for different games, but GJ!
Thanks given by:
#5
On Linux driver still doesn’t:(
Thanks given by:
#6
Haha, people are always looking for things they can neglect to make their FPS increase. Good job!
Thanks given by:
#7
Come on, guys. It really makes a difference (if you care about such things), and for the size of the patch, it's definitely worth it. F1 for adding this to the official code.

One small improvement: instead of
VARP(aniso, 0, 0, 16);
use this:
VARFP(aniso, 0, 0, 16, initwarning("texture filtering", INIT_LOAD));
so you won't have to restart AC for changes to apply.
Thanks given by:
#8
Looks good, but are you going to implement this?
Thanks given by:
#9
@Andrez: He already did.
(09 Jan 11, 07:03PM)RPG Wrote: Changes:
http://sourceforge.net/tracker/?func=det...tid=697091

Just looking at the fancy images, huh?
;D
Thanks given by:
#10
Yes
(09 Jan 11, 07:38PM)flowtron Wrote:great work. this'll become official code - thanks man!
Thanks given by:
#11
’tempest’ pid=’31719′ dateline=’1294613194′ Wrote:so you won’t have to restart AC for changes to apply.
Adding this feature in menu solves the problem of restarting game:
Quote:To add Anisotropic filtering in menu:
1. Open config/menu_settings.cfg
2. find 'menuitemslider "Antialiasing (FSAA): ...' (line 310)
3. Paste after this line:
alias aniso_valuemap "0 1 2 4 8 16"
menuitemslider "Anisotropic filtering: " 0 5 "(findlist $aniso_valuemap
$aniso)" 1 "Off 1x 2x 4x 8x 16x" "aniso (at $aniso_valuemap $arg1)"

Then you need to select just «Apply changes!».
Thanks given by:
#12
I thought the "apply changes" button was just resetgl
Thanks given by:
#13
Yes, to apply anisotropic filtering you have to reload all textures.
Thanks given by:
#14
Some people prefer to use the console, though.
Thanks given by: