Jump to content

Antialising working perfectly using ReShade and SMAA shaders


Recommended Posts

Hi, I'm new to the OAD, and don't know if this issue had been solved, but since I've discovered this game a month ago, it constantly bothered me to not have AA. (As much as I forced my ATI vga to do it, nothing happened). So, when I discovered reShade (free from https://reshade.me/), it was a no brainer to try and it seems it works perfectly with SMAA antialising shader (tested on win7x64 - select opengl when asked). Also, with reShade you can enable a ton of other eye candy stuff, including stereoscopic support for VR, cardboard included. If someone makes a cool shader preset, just post it here.

So, here you have it - hope you enjoy it as much as I do. Cheers.

0AD-antialising-smaa.png.a64ad51beaebfa4b2334b68d5cc0d73e.png

  • Like 2
Link to comment
Share on other sites

10 hours ago, Siramods said:

Hi, I'm new to the OAD, and don't know if this issue had been solved, but since I've discovered this game a month ago, it constantly bothered me to not have AA. (As much as I forced my ATI vga to do it, nothing happened). So, when I discovered reShade (free from https://reshade.me/), it was a no brainer to try and it seems it works perfectly with SMAA antialising shader (tested on win7x64 - select opengl when asked). Also, with reShade you can enable a ton of other eye candy stuff, including stereoscopic support for VR, cardboard included. If someone makes a cool shader preset, just post it here.

I see a strange artifact there:

image.png

AA is good thing, but it requires a precise work to not add new artifacts (e.g. artifacts on textures with thin lines).

 

1 hour ago, gameboy said:

Will this long-awaited new feature be available for us to experience at Christmas?

Time will tell.

Link to comment
Share on other sites

@vladislavbelov : an informed observation, but it only affects boundaries of straight interface elements, and only in some cases, depending on background. In my opinion, a very acceptable trade off for the improved overall image quality. The shader has its source code editable from the game (maybe you can have a source of inspiration there) and can use various strategies, having several parameters configurable by interface - it might be possible to obtain a better result tinkering with it.

@gameboy: the beauty of it is that reShade is free and OPEN SOURCE, is here now, it installs over the game in less than 5 minutes (it simply puts some files along the executable) and can be removed at will. Also it offers a treasure of additional plugins and effects, that can be used to enhance the graphics of the game beyond any future development you might have hoped. While no doubt AA is a very important quality feature, this is a free development, and having to do a small customization yourself, is a little price to pay. Not to mention the fun you can have modding yourself..

Here is a short tutorial on how to install reShade as to enable SMAA anti-aliasing:

1. Go to https://reshade.me/ and download the setup. Direct link: https://reshade.me/downloads/ReShade_Setup_4.0.2.exe
2. run the setup, it will ask you to locate the game executable. ("..0 A.D. alpha\binaries\system\pyrogenesis.exe")
3. when asked to select engine type, you click on OpenGL radio button (possibly already checked)
(also repeat those steps to un-install if needed, or add new shaders)
4. will ask if to download shaders library, say yes, and from the list select ONLY SMAA for start - click next - etc.
it will say that it succeded instalation, and you can close the window at this point.
5. Start the game normally - even start a skirmish session
6. Use HOME key to bring/hide reShade interface from within the game
7. Check the SMAA checkbox, check Performance mode, maybe hit reload. The AA should be visible by now
8. hit HOME to hide the interface
9. Have fun.

There are gamers out there reShading every game they have. As for myself, I love the thing, I already install it on varius games to play with Depth3D. A must for every PC hardcore gamer out there - and a wonderful exmple why PC gaming is great.

Trivia: SMAA is opensource and was developed at Technical University of Zaragoza, my city. Makes me proud a little.

Peace.

  • Like 2
Link to comment
Share on other sites

14 minutes ago, Siramods said:

In my opinion, a very acceptable trade off for the improved overall image quality.

If you'll select many units, artifacts would be noticed well. Also reshade touches our texts, so they became blurry. About image quality: on high density display I don't see the aliasing at all, on low density display I see both (aliasing and SMAA artifacts). So the image quality is pretty subjective. It'd be good to give a choice in options.

1 hour ago, Siramods said:

the beauty of it is that reShade is free and OPEN SOURCE

That's good. To use any line of its code they should have a compatible license, and it has BSD 3-Clause license. So, probably it's compatible.

Link to comment
Share on other sites

On 12/7/2018 at 9:33 AM, ffffffff said:

@aeonios

 

eae

eh? I have no idea when I'm going to be able to get any work done again. I honestly want to do a more sophisticated AA using depth and normals to detect edges more precisely and for less cost than MSAA. I dunno about ReShade I'll have to check that out to see how that works.

  • Like 1
Link to comment
Share on other sites

Well at least some pressure had been taken off, now that there is an option for the "can't live without AA" people.
You take it easy, and when the day comes you wake up thinking "Hmm.. that's a day I feel like the best possible thing that I should do is AA for 0AD!" you WILL do it, and it will be AMAZING :)  

- "Lagertha, bring us our laptop and our morning meal .. !" 

 

Link to comment
Share on other sites

17 hours ago, Siramods said:

Well at least some pressure had been taken off, now that there is an option for the "can't live without AA" people.
You take it easy, and when the day comes you wake up thinking "Hmm.. that's a day I feel like the best possible thing that I should do is AA for 0AD!" you WILL do it, and it will be AMAZING :)

 

ReShade actually has a depth-based SMAA which would be a great reference for building a depth/normals based one, so I may end up doing that sooner than expected.

  • Like 1
Link to comment
Share on other sites

Please note that individual shaders for reShade are written by third parties.

SMAA authors and a trove of information can be found here: http://www.iryoku.com/smaa/ 

This might be also worth looking at: http://mrhaandi.blogspot.com/p/injectsmaa.html (adds "Subpixel Morphological Antialiasing" to an application)

Also mailed them a link to this post.. ;)

Link to comment
Share on other sites

17 minutes ago, Siramods said:

Please note that individual shaders for reShade are written by third parties.

As far as I see reShade has own modification (or implementation) of the SMAA: https://github.com/crosire/reshade-shaders/blob/master/Shaders/SMAA.fx

But the original one is present there as well: https://github.com/crosire/reshade-shaders/blob/master/Shaders/SMAA.fxh

 

Link to comment
Share on other sites

Hmm, you lost me there. I was under the strong impression those files are a whole. Like fxh being "headers" for fx. In fact, if I remove the fxh only, reShades starts with an arror: "failed to compile" and SMAA becomes unavailable.. maybe is not "another implementation" just that the library (fxh) is made by "iryoku.com" people and the calls by reShade.... just guessing.

Edited by Siramods
Link to comment
Share on other sites

6 minutes ago, Siramods said:

Hmm, you lost me there. I was under the strong impression those files are a whole. Like fxh being "headers" for fx. In fact, if I remove the fxh only, reShades starts with an arror: "failed to compile" and SMAA becomes unavailable...

It'd be good that they're the same. Anyway thanks for the links!

Link to comment
Share on other sites

4 minutes ago, gameboy said:

We will wait for the big Christmas present.

Personally, I hope it’s before Christmas 2019. That’s as close this feature would ever come to being commited before a Christmas.

Link to comment
Share on other sites

  • 2 weeks later...
  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...