Previous Thread
Next Thread
Print Thread
Rate This Thread
Hop To
Page 1 of 4 1 2 3 4
#3362361 - 08/08/11 11:52 PM FXAA and Shader tweaks  
Joined: Jan 2009
Posts: 4,737
FearlessFrog Offline
Senior Member
FearlessFrog  Offline
Senior Member

Joined: Jan 2009
Posts: 4,737
I noticed in the ArmA2 forum (and with a reminder from Shia on the 1C forums) people are now playing with enabling effects and shaders by using DX hook DLL's here:

http://simhq.com/forum/ubbthreads.php/topics/3358151/Want_anti_aliasing_but_not_the.html

The way it works is that you can override default graphics by placing an additional set of files and config in your CloD directory. I can't vouch for their safety, but the people originally producing them are legit, i.e. you can use this for inspiration, as it's just as applicable (in DX10) for CloD:

http://a2fxaa.blogspot.com/

The dx10 files do actually work with CloD too, so if people want to fiddle with enabling full screen AA (kinda) then it's all there to play with now. In a quick 5 minute fiddle it seems to have a negligible performance hit with a nice improvement in look.

So, for all those color/shader wannabe's, here's your chance! smile

PS Don't know what impact on MP-VAC, so be careful out there..

Edit: If you use the latest from here: http://hotfile.com/dl/125975700/ef4f3b1/injectFxaa_by_some_dude_9.7z.html

..then don't forget the 'on/off' switch is now 'Pause' and that you use the DX10 files.

Edit2: These effects are applicable to both ATI and Nvidia cards now, and don't forget to turn 'OFF' all native CloD anti-aliasing first - this techniques works much better and is an order of magnitude more efficient.

Last edited by FearlessFrog; 08/09/11 12:28 AM.
Inline advert (2nd and 3rd post)

#3362378 - 08/09/11 12:11 AM Re: FXAA and Shader tweaks [Re: FearlessFrog]  
Joined: Jan 2009
Posts: 4,737
FearlessFrog Offline
Senior Member
FearlessFrog  Offline
Senior Member

Joined: Jan 2009
Posts: 4,737
FXAA Off (check the wing edges and background buildings)




FXAA On



#3362396 - 08/09/11 12:38 AM Re: FXAA and Shader tweaks [Re: FearlessFrog]  
Joined: Feb 2001
Posts: 1,682
ATAG_Snapper Offline
Member
ATAG_Snapper  Offline
Member

Joined: Feb 2001
Posts: 1,682
Kitchener, Ontario, Canada
Nice find, FF!

Just looking at the prop blades or the tall chimneystack in the background shows the huge difference. The blog is a good read.


-------------------------------------------------------------------------------------------------

HP Omen Laptop 15, AMD Ryzen 5 5600H 16 GB DDR4 RAM, NVIDIA GeForce RTX 3060 Laptop GPU 6 GB VRAM Win 11 64 bit, Nvidia GeForce Driver ver 512.95, TrackIR 5, Gear Falcon Trim Box, Gear Falcon Throttle Quadrant, TM16000 joystick, TM Warthog HOTAS, CH Quadrant, Saitek Pro Combat rudder pedals
#3362406 - 08/09/11 12:44 AM Re: FXAA and Shader tweaks [Re: FearlessFrog]  
Joined: Jan 2009
Posts: 4,737
FearlessFrog Offline
Senior Member
FearlessFrog  Offline
Senior Member

Joined: Jan 2009
Posts: 4,737
Yep, the 'shader10.fx' file can be edited to produce a whole range of new effects, include changing the saturation of the lighting. I expect all the 'the grass is too green' shader variants to now come flooding out.. smile

The biggest impact of this is really not so much the ability to now change the colors/effects but that there is now a decent Anti-Aliasing algorithm to run that doesn't have a large performance impact.

#3362414 - 08/09/11 12:52 AM Re: FXAA and Shader tweaks [Re: FearlessFrog]  
Joined: Nov 2002
Posts: 3,984
-Avatar- Offline
Senior Member
-Avatar-  Offline
Senior Member

Joined: Nov 2002
Posts: 3,984
CT, USA
Originally Posted By: FearlessFrog
The biggest impact of this is really not so much the ability to now change the colors/effects but that there is now a decent Anti-Aliasing algorithm to run that doesn't have a large performance impact.


Amen! Thanks for posting this, off to give it a shot now. cheers

Last edited by -Avatar-; 08/09/11 02:08 AM. Reason: Fix Quote

Avatar

Asus P8Z68 Deluxe, i7 2700k @4.7GHz, EVGA GTX570HD 301.42s, 1x120gb SSD, 2x150gb WD Raptors, 2x200gb SATA, 16gb G.Skill DDR3 2130, 1000W PS, HP DVD-RW, Onboard sound, 32" Sony Bravia XBR, Win7 Pro 64bit, Tai Chi watercooled case
#3362420 - 08/09/11 12:56 AM Re: FXAA and Shader tweaks [Re: FearlessFrog]  
Joined: Dec 2002
Posts: 19,381
Ajay Offline
newbie
Ajay  Offline
newbie
Veteran

Joined: Dec 2002
Posts: 19,381
Brisbane OZ
Nice find sir smile


My il2 page
Seelowe Campaign
Cliffs of Dover page
CloD
My Models
Tanks/Planes/Ships


#3362446 - 08/09/11 01:34 AM Re: FXAA and Shader tweaks [Re: FearlessFrog]  
Joined: Jul 2011
Posts: 41
katdog5 Offline
Junior Member
katdog5  Offline
Junior Member

Joined: Jul 2011
Posts: 41
new algorithms are so sexy


i7-6700K * 16GB DDR4 * 1080GTX * Win 10 *Track IR5* OCZ Agility 3 Series 120 GB
#3362534 - 08/09/11 04:07 AM Re: FXAA and Shader tweaks [Re: FearlessFrog]  
Joined: Apr 2011
Posts: 199
Phazon Offline
Member
Phazon  Offline
Member

Joined: Apr 2011
Posts: 199
Sydney, NSW, Australia
Definately is an improvement. Personally though I'm waiting for the overhaul of the graphics engine first as I'm sure anti-aliasing is on the list of things to fix even though it was not mentioned specifically.


"Rock crushes scissors ... but paper covers rock, and scissors cuts paper! Kif, we have a conundrum." - Zapp Brannigan
#3362612 - 08/09/11 09:05 AM Re: FXAA and Shader tweaks [Re: FearlessFrog]  
Joined: Jul 2009
Posts: 166
FIScott Offline
Member
FIScott  Offline
Member

Joined: Jul 2009
Posts: 166
So we could get banned for using this ?

I'm going to wait for the new patch or some official confirmation that using this doesn't involve being burnt at the stake.

#3362639 - 08/09/11 10:43 AM Re: FXAA and Shader tweaks [Re: FearlessFrog]  
Joined: Dec 2006
Posts: 106
Lurker_71 Offline
Member
Lurker_71  Offline
Member

Joined: Dec 2006
Posts: 106
Works nicely. Thanks for the heads up.

#3362701 - 08/09/11 01:15 PM Re: FXAA and Shader tweaks [Re: FearlessFrog]  
Joined: Nov 2002
Posts: 3,984
-Avatar- Offline
Senior Member
-Avatar-  Offline
Senior Member

Joined: Nov 2002
Posts: 3,984
CT, USA
Seems to work well here, thanks again FearlessFrog!


Avatar

Asus P8Z68 Deluxe, i7 2700k @4.7GHz, EVGA GTX570HD 301.42s, 1x120gb SSD, 2x150gb WD Raptors, 2x200gb SATA, 16gb G.Skill DDR3 2130, 1000W PS, HP DVD-RW, Onboard sound, 32" Sony Bravia XBR, Win7 Pro 64bit, Tai Chi watercooled case
#3362892 - 08/09/11 04:53 PM Re: FXAA and Shader tweaks [Re: FearlessFrog]  
Joined: Apr 2005
Posts: 2,818
BKHZ_Furbs Offline
Senior Member
BKHZ_Furbs  Offline
Senior Member

Joined: Apr 2005
Posts: 2,818
Cheers Frog! its a start but im not seeing that much of a improvement here.

Anyway we can adjust it?

#3362958 - 08/09/11 06:00 PM Re: FXAA and Shader tweaks [Re: FearlessFrog]  
Joined: Dec 2000
Posts: 22,405
letterboy1 Offline
(Heterosexual)Tchaikovsky Ballet Fan
letterboy1  Offline
(Heterosexual)Tchaikovsky Ballet Fan
Lifer

Joined: Dec 2000
Posts: 22,405
Columbus, GA USA
So do you disable the FSAA in-game and then use this dll to enable it? Or do you use both in tandem? I'm at work and my attempts speed up the office clock with the ] key are not successful.


The issue is not p*ssy. The issue is monkey.
#3362985 - 08/09/11 06:31 PM Re: FXAA and Shader tweaks [Re: letterboy1]  
Joined: Jan 2009
Posts: 4,737
FearlessFrog Offline
Senior Member
FearlessFrog  Offline
Senior Member

Joined: Jan 2009
Posts: 4,737
Originally Posted By: letterboy1
So do you disable the FSAA in-game and then use this dll to enable it? Or do you use both in tandem? I'm at work and my attempts speed up the office clock with the ] key are not successful.


Yep, disable in-game AA in the Video options, as the two effects together won't really work plus you'll get no performance gain.

#3362999 - 08/09/11 06:43 PM Re: FXAA and Shader tweaks [Re: BKHZ_Furbs]  
Joined: Jan 2009
Posts: 4,737
FearlessFrog Offline
Senior Member
FearlessFrog  Offline
Senior Member

Joined: Jan 2009
Posts: 4,737
Originally Posted By: BKHZ_Furbs
Cheers Frog! its a start but im not seeing that much of a improvement here.

Anyway we can adjust it?


Should be possible, yes. As there isn't much explanation on-line what this stuff does, here's my summary:

- Inside the 'injectFxaa_by_some_dude_9' zip file there are a couple of directories. CloD on Windows 7 uses DirectX 10 so look in the 'd3d10' directory for the three files.

- The file dxgi.dll is the 'hook' library, i.e. something that will get called by the game as it runs. It looks to see if the effect is enabled (on and off with the Pause key, and it starts 'on' (don't forget your F-lock key if on a keyboard that needs Pause like that)).

- The file 'shader.hlsl' is the instructions or source of the effect. High Level Shader Language (hlsl) is a DirectX intermediary programming language for graphics cards. It's human-readable (ish) and contains the specialized instructions that GPU's are so good at, i.e. en-masse transformations and whole screen effects.

- The file 'Fxaa3_11.h' is referenced by the above file and is the 'meat' of the algorithm to render the FXAA. FXAA is a 'brute force' technique that doesn't use depth and vertices but is a 'pixel shader', i.e. it will go pixel by pixel on the screen (called a 'frame') and attempt to find and soften edges. What it loses out by inaccuracy (i.e. your text and instruments have 'edges' that shouldn't be blurred but are) it gains on efficiency, i.e. GPU's are *really* good at instructions involving the whole screen, hence you can use this without negligible performance impact.

The FXAA was produced by an engineer at Nvidia, and as it's written in HLSL works on all graphics cards that support those pixel shaders. ATI have an alternative algorithm already in their drivers called 'MSAA' (similar technique) that you could use if you don't want to use this (and have an ATI card of course). I haven't played with MSAA yet with CloD.

So, in summary you copy these three files and put them from the zip file into where CloD runs, i.e.

C:\Program Files (x86)\Steam\steamapps\common\il-2 sturmovik cliffs of dover

..and then toggle the 'Pause' button to see if it worked ok.

I haven't had time to fiddle with the shader, but it won't do any harm if you change some values, i.e. in shader.hlsl the line:

#define FXAA_QUALITY__PRESET 39

..looks like it controls the 'impact/performance' ratio, so you could try higher/lower figures in that. You'll need to restart the game on each change I expect.

Hope that helps, and apologies to WWII aviation fans for the tech offtopicnessness.

#3363002 - 08/09/11 06:46 PM Re: FXAA and Shader tweaks [Re: FearlessFrog]  
Joined: Feb 2001
Posts: 1,682
ATAG_Snapper Offline
Member
ATAG_Snapper  Offline
Member

Joined: Feb 2001
Posts: 1,682
Kitchener, Ontario, Canada
Hi FF,

Here's a quick look at the default injectFXAA. Haven't pissed around with any of the files yet (and may not...but I'm tempted! smile ). It looks pretty good right off the rack. Have to remember to knock out these files if I plan to go online.



-------------------------------------------------------------------------------------------------

HP Omen Laptop 15, AMD Ryzen 5 5600H 16 GB DDR4 RAM, NVIDIA GeForce RTX 3060 Laptop GPU 6 GB VRAM Win 11 64 bit, Nvidia GeForce Driver ver 512.95, TrackIR 5, Gear Falcon Trim Box, Gear Falcon Throttle Quadrant, TM16000 joystick, TM Warthog HOTAS, CH Quadrant, Saitek Pro Combat rudder pedals
#3363016 - 08/09/11 06:58 PM Re: FXAA and Shader tweaks [Re: ATAG_Snapper]  
Joined: Jan 2009
Posts: 4,737
FearlessFrog Offline
Senior Member
FearlessFrog  Offline
Senior Member

Joined: Jan 2009
Posts: 4,737
Cool demo video Snapper - yes, it looks like that pre-AA Spitfire was modeled in Minecraft! smile

The next step for this is that now there is a generic hook then non-AA effects can be added, i.e. in ArmA II there have been some nice spot.h and saturation.h files added to do things like improve the HDR (dynamic lighting) and general color saturation (filter out greens etc).

If the next patch doesn't fix everything we are all dreaming of smile then it's good to know there are other ways to configure to taste.

For online play, I'm hoping that MG take a look at this stuff and then just either build it in as an option or start to rely on the underlying driver support better (both NVidia and ATI have stuff like this in their latest drivers).

#3363071 - 08/09/11 07:50 PM Re: FXAA and Shader tweaks [Re: FearlessFrog]  
Joined: Aug 2011
Posts: 9
EOOQE Offline
Junior Member
EOOQE  Offline
Junior Member

Joined: Aug 2011
Posts: 9
Hi there ,
i´m the one from http://a2fxaa.blogspot.com/ bananadance

Cool thing to find out that my blog is mentioned here :-)
Just want to introduce myself and if you need any help with settings on the FXAA Shaders feel free to ask ....
Maybe i can get a copy IL-2 and can check out what is possible with this Engine. Will check the local gamestop tomorrow :-)



Arma2 FXAA Blog : a2fxaa.blogspot.com
#3363075 - 08/09/11 07:53 PM Re: FXAA and Shader tweaks [Re: FearlessFrog]  
Joined: Dec 2000
Posts: 22,405
letterboy1 Offline
(Heterosexual)Tchaikovsky Ballet Fan
letterboy1  Offline
(Heterosexual)Tchaikovsky Ballet Fan
Lifer

Joined: Dec 2000
Posts: 22,405
Columbus, GA USA
Well, if I was interested before, Snapper's video sold me. smile


The issue is not p*ssy. The issue is monkey.
#3363078 - 08/09/11 07:57 PM Re: FXAA and Shader tweaks [Re: EOOQE]  
Joined: Jan 2009
Posts: 4,737
FearlessFrog Offline
Senior Member
FearlessFrog  Offline
Senior Member

Joined: Jan 2009
Posts: 4,737
Originally Posted By: EOOQE
Hi there ,
i´m the one from http://a2fxaa.blogspot.com/ bananadance

Cool thing to find out that my blog is mentioned here :-)
Just want to introduce myself and if you need any help with settings on the FXAA Shaders feel free to ask ....
Maybe i can get a copy IL-2 and can check out what is possible with this Engine. Will check the local gamestop tomorrow :-)



Hi EOOQE,

Yep, great blog - and a nice collection of shaders on ArmAII. Don't forget if you do visit gamestop, this is 'IL2 - Cliffs of Dover' in DX10 we are talking about here, as there is an earlier IL-2 1946 title too. This is the one we are trying FXAA on:

http://store.steampowered.com/app/63950/

Page 1 of 4 1 2 3 4

Moderated by  RacerGT 

Quick Search
Recent Articles
Support SimHQ

If you shop on Amazon use this Amazon link to support SimHQ
.
Social


Recent Topics
Whitey Herzog was 92
by F4UDash4. 04/16/24 04:41 PM
Anyone can tell me what this is?
by NoFlyBoy. 04/16/24 04:10 PM
10 Years ago MV Sewol
by wormfood. 04/15/24 08:25 PM
Pride Of Jenni race win
by NoFlyBoy. 04/15/24 12:22 AM
It's Friday: grown up humor for the weekend.
by NoFlyBoy. 04/12/24 01:41 PM
OJ Simpson Dead at 76
by bones. 04/11/24 03:02 PM
They wokefied tomb raider !!
by Blade_RJ. 04/10/24 03:09 PM
Good F-35 Podcast
by RossUK. 04/08/24 09:02 AM
Gleda Estes
by Tarnsman. 04/06/24 06:22 PM
Copyright 1997-2016, SimHQ Inc. All Rights Reserved.

Powered by UBB.threads™ PHP Forum Software 7.6.0