Posts: 72
Threads: 11
Joined: Jan 2011
09 Jan 11, 07:03PM
(This post was last modified: 09 Jan 11, 07:28PM by RPG.)
Anisotropic filtering - texture quality improvement.
In wiki:
http://en.wikipedia.org/wiki/Anisotropic_filtering
Compare:
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
Posts: 1,823
Threads: 20
Joined: Jun 2010
Is there any difference between doing this from AC and doing it from nvidia CP (other than being more convenient)?
Posts: 72
Threads: 11
Joined: Jan 2011
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.
Posts: 1,823
Threads: 20
Joined: Jun 2010
Newer drivers let you have different configurations for different games, but GJ!
Posts: 72
Threads: 11
Joined: Jan 2011
On Linux driver still doesn’t:(
Posts: 3,780
Threads: 33
Joined: Jun 2010
Haha, people are always looking for things they can neglect to make their FPS increase. Good job!
Posts: 1,436
Threads: 7
Joined: Jun 2010
09 Jan 11, 11:46PM
(This post was last modified: 09 Jan 11, 11:46PM by tempest.)
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
use this:
VARFP(aniso, 0, 0, 16, initwarning("texture filtering", INIT_LOAD));
so you won't have to restart AC for changes to apply.
Posts: 1,038
Threads: 96
Joined: Jun 2010
Looks good, but are you going to implement this?
Posts: 1,436
Threads: 7
Joined: Jun 2010
@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
Posts: 192
Threads: 0
Joined: Jun 2010
Yes
(09 Jan 11, 07:38PM)flowtron Wrote:great work. this'll become official code - thanks man!
Posts: 72
Threads: 11
Joined: Jan 2011
’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!».
Posts: 1,823
Threads: 20
Joined: Jun 2010
I thought the "apply changes" button was just resetgl
Posts: 72
Threads: 11
Joined: Jan 2011
Yes, to apply anisotropic filtering you have to reload all textures.
Posts: 1,436
Threads: 7
Joined: Jun 2010
Some people prefer to use the console, though.