Jump to content
Sign in to follow this  
-=seany=-

Add FXAA support to OA and Arma3- Many AA bugs fixed

Recommended Posts

The only thing keeping me from using this regularly is the stupid delete-key-screenshot thing. Anyone know how to fix that?

Share this post


Link to post
Share on other sites

Hi there ,

BETA 9 just released :

http://hotfile.com/dl/125975700/ef4f3b1/injectFxaa_by_some_dude_9.7z.html

SOURCE : 3DCenter :

[some dude]

First of all, thanks Blaire for fiding the "Arcania" bug and linking to the demo. Took me some time to fix it (started the download after your first post). There is a slight chance that GTA4 is affected again (always those *overtuned* engines).

I also improved d3d10 stability a little (may fix game crashes). I hope to be able to inject FXAA into all games which do not show "pDevice->CreateDeferredContext failed" behaviour in the logfile.

Additionally for those games which require you to put shader files into different directories - now they don't crash but just refuse to start and write more information to the logfile (e.g. in Crysis I get "try to use "D:\Games\Crytek\Crysis SP Demo" for shader files" when I misplace the shader files).

For those of you who write own shaders, if you write incorrect shadercode the logfile should tell you exactly what is wrong.

@RangerPL

Hotkeys are now PAUSE and PRINT SCREEN.

Share this post


Link to post
Share on other sites

Nice hotkey change and the sharpening filter looks pretty good as well.

Share this post


Link to post
Share on other sites

I´m working on a custom shader file for ARMA2 now ..will post screens and seetings later today hopefully :-)

In the meantime i found some good infos on settings :

// Only used on FXAA Quality.

// This used to be the FXAA_QUALITY__SUBPIX define.

// It is here now to allow easier tuning.

// Choose the amount of sub-pixel aliasing removal.

// This can effect sharpness.

// 1.00 - upper limit (softer)

// 0.75 - default amount of filtering

// 0.50 - lower limit (sharper, less sub-pixel aliasing removal)

// 0.25 - almost off

// 0.00 - completely off

FxaaFloat fxaaQualitySubpix,

//

// Only used on FXAA Quality.

// This used to be the FXAA_QUALITY__EDGE_THRESHOLD define.

// It is here now to allow easier tuning.

// The minimum amount of local contrast required to apply algorithm.

// 0.333 - too little (faster)

// 0.250 - low quality

// 0.166 - default

// 0.125 - high quality

// 0.063 - overkill (slower)

FxaaFloat fxaaQualityEdgeThreshold,

//

// Only used on FXAA Quality.

// This used to be the FXAA_QUALITY__EDGE_THRESHOLD_MIN define.

// It is here now to allow easier tuning.

// Trims the algorithm from processing darks.

// 0.0833 - upper limit (default, the start of visible unfiltered edges)

// 0.0625 - high quality (faster)

// 0.0312 - visible limit (slower)

just play with the settings ;-)

Share this post


Link to post
Share on other sites

not working for me too, just tried it for the first time.

Win7 x64, Arma2 - OA retail.

Ah its working after all, i forgot i was running the beta :D

Edited by Hellhound

Share this post


Link to post
Share on other sites

I must say i'm not overly impressed by this technique, i still prefer regular AA by a long shot. However it's another options and nice to have. I did notice that my MSI afterburner overlay (GPU temp) disappeared, so i guess there's a conflict.

Share this post


Link to post
Share on other sites
not working for me

x64 win 7 and steam arma 2 oa

Oh, i think you just made that up.

1. regular download

2. Unpack archive, should be 2 folders and readme inside.

3. Content of d3d9 folder:

d3d9.dll , Fxaa3_11.h , shader.fx , Sharpen.h

Copy these 4 files to:

a.) the main game directory, (the same where arma2oa.exe) is.

b.) if you run beta patch, copy it also to expansion\beta\

4.To enable sharpening filter, you have to modify:

line 33 of shader.fx file, in main game directory (not the expansion\beta)

so it looks like this:

#include "Sharpen.h" //adds a sharpening pass

Share this post


Link to post
Share on other sites
I must say i'm not overly impressed by this technique, i still prefer regular AA by a long shot. However it's another options and nice to have. I did notice that my MSI afterburner overlay (GPU temp) disappeared, so i guess there's a conflict.

No Overlays work ATM ... maybe in the future.

But for me , i found FXAA great ... no loss of performance to normal AA and the result for a BETA ist very good ATM.

One more Hint :

You can edit the settings "on the fly" .. just tap out of ARMA and edit the shader file with notepad ..tap back and you have your results instantly !

Share this post


Link to post
Share on other sites
Hi,

working on custom shader settings for ARMA2 ATM ...

some screen of my WIP :

Hey, you can't have 2.5MB images in a post like that.

Forum rules.

I bet moderator's gonna take them down.

Post just a link, or a thumbnail.

§15) Do not hotlink images over 100kb (102400 bytes) in size

Do not link images over 100kb using the IMG tags to display an image in your post. If you wish to post an image larger then 100 kb feel free to post the URL instead of hotlinking.

Edited by GROM64

Share this post


Link to post
Share on other sites
Hey, you can't have 2.5MB images in a post like that.

Forum rules.

I bet moderator's gonna take them down.

Post just a link, or a thumbnail.

sorry :eek:, post edited .... :j:

Share this post


Link to post
Share on other sites

Looks good! Looks like you're fixing the issue we were having where things in the distance weren't looking AA enough. It's hard to tell from the screencaps but it seems improved from the current shader.

Share this post


Link to post
Share on other sites
Looks good! Looks like you're fixing the issue we were having where things in the distance weren't looking AA enough. It's hard to tell from the screencaps but it seems improved from the current shader.

Ya very nice. Sweet about being able to tweak on the fly. That makes life way easier.

Are you the guy who actually is making this FXAA mod, EOOQE?

Share this post


Link to post
Share on other sites

Are you the guy who actually is making this FXAA mod, EOOQE?

No , I´m not .... just an ARMA and FXAA Fan ;-)

More WIP Screens of my Shader´s :

FXAA OFF

screenshot308752c8r.png

FXAA ON

screenshot30955xcpb.png

Edited by EOOQE

Share this post


Link to post
Share on other sites

there's a small problem,when i use ALT+TAB and go back to game i have loading menu and black screen,then the game continues ...

Thanks Gossamer by the way

Share this post


Link to post
Share on other sites

Nice thread and since I'm allergic to "jaggies" I would like to try but can't download from Hotfile.com (say I'm downloading but I aint?) anyone have a mirror for the latest version?

EDIT: Found a mirror here http://www.mediafire.com/?k2k8bk7dqqa30wm

/KC

Edited by KeyCat

Share this post


Link to post
Share on other sites
Just maden an Blog on Blogspot for my Custom Shaders.

Postet some new Screenshots there :)

http://a2fxaa.blogspot.com/

Excellent idea that blog, and all info you posted in FXAA Settings.

I have some questions, though.

Correct me if I'm wrong, but you don't seem to have sharpening filter enabled, in pictures you posted.

Don't you like it ? I reduced in game texture settings from high to normal, and

anitroscopic filtering to x4, that gave me some extra boost also.

Are you planning to upload any files, with modified settings and explain why are your settings better then vanilla's ?

I'm not trying to be picky, just asking.

thanks.

Share this post


Link to post
Share on other sites
Excellent idea that blog, and all info you posted in FXAA Settings.

I have some questions, though.

Correct me if I'm wrong, but you don't seem to have sharpening filter enabled, in pictures you posted.

Don't you like it ? I reduced in game texture settings from high to normal, and

anitroscopic filtering to x4, that gave me some extra boost also.

Are you planning to upload any files, with modified settings and explain why are your settings better then vanilla's ?

I'm not trying to be picky, just asking.

thanks.

Yes , sharpening is off in those pics. I´m playing with settings ATM and getting some nice results without it. But I plan to add it. The ARMA2 Engine is diffrent from other 3D Engines like GTAIV or Shift2 ... so a lot of try and error is to do :cool:

Another method to activate all the after effects is in dev. ATM :

/ / comment these to the deaktivate Functions
# define USE_SHARPENING
# define USE_TONEMAP
# define USE_BLOOM
# define USE_LIMITER

And Yes, i plan to upload my settings on my Blog. Actually my settings work nice on ARMA2 1.59 and the latest Beta Build 83363

EDIT: some new Screens with BLOOM enabled : http://a2fxaa.blogspot.com/2011/08/shader-v02-screens.html

Edited by EOOQE

Share this post


Link to post
Share on other sites

Whether this anti-aliasing method benefits you at all depends on your system and settings.

I took these shots on Zargabad, where FPS is limited by CPU and system RAM (because ARMA2 is still only a 32bit application) due to the large number of in-game objects of the city. Clearly, the in-game "Very High" AA setting looks the best, but requires more video power. If you have power to spare, it's still the best option to use. The overhead power wires illustrates this best.

Click on pictures for the non-scaled, full-resolution screen captures.

No AA, GPU 1439MB VRAM, 45% load, 38FPS

FXAA, GPU 1439MB VRAM, 50% load, 38FPS

"Very High" AA, GPU 1750MB VRAM, 75% load, 37FPS

Edited by W0lle
3 insanely huge images removed

Share this post


Link to post
Share on other sites
Whether this anti-aliasing method benefits you at all depends on your system and settings.

I took these shots on Zargabad, where FPS is limited by CPU and system RAM (because ARMA2 is still only a 32bit application) due to the large number of in-game objects of the city. Clearly, the in-game "Very High" AA setting looks the best, but requires more video power. If you have power to spare, it's still the best option to use. The overhead power wires illustrates this best.

Yes, AA is still the best filtering , sure. But high AA needs alot of power as you now. I´m on an GTX460M with 1,5GB and and Intel I7 at 3GHz and in full HD max AA cost me a lot of frames ..

ATM im working on an shader to remove the problem with the power wires in FXAA ... i´m on an good way ..but the result will clearly not as good as normal AA , but will cost only 1-2 fps :cool:

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×