I adapted NFAA(Normal Filter Antialiasing) for Unity 3.0.
I think it looks better than the included Edge Blur,which always ends up losing all the sharpness in the edges.
Compare the edges of the guns in the attached screen,to see how it smoothes out aliasing.(Left side is NFAA,right has no smoothing)
I didn’t register much of an effect on performance,but it probably takes about as much as default edge blur,possibly a little less as it has only one iteration.
I do subpixel offsets in the shader and it seems they are sometimes clamped to zero in Unity editor when window is not maximized.
So try it maximized or published,if it doesn’t seem to work in Editor window.
Another comparison with no antialiasing,it actually emulates forward rendering antialiasing pretty well:smile:
One thing it cannot do though, is invent detail where there is none, so e.g. thin wires in the distance won’t look as good as with MSAA.
I am using also color correction and when the CC filter is above the nfaa filter in the script stack the nfaa doesn’t work …
If I put the cc filter after the nfaa filter it works.
yeah,its the same approach,I made some improvements though,I should probably post them in that thread.
the version posted in the thread doesn’t really give good results,but with some better sampling patterns and subpixel offsets it works really well.
Doesn´t seem to work with me. I only get a blue screen. Deactivating the Debug mode seems to turn the effect off(?), because I can´t see any difference. What exactly do you mean by “play around with the effect´s position in the stack” ?
Thanks, but I´m still having problems with the filter script. I´ve removed all ther effects from the camera, but if I look at the scene in “game-mode” I just see a blue screen.
If I compile the game and run it as “standalone” I can see the blue normal map, but that´s all.
Yeah, if I turn the debugmode off, I can see the image, but I don´t see any kind of “antialias”-effect. It looks exactly like the version without the effect.
Well, I got it running in my scene, but when I try it in the bootcamp project all I get is just a black screen. I´ve deactivated all other effects on the soldier cam and built the project.
So this is kind of a substitue for anti alising… So should we be setting the game to 4x AA and then using this or does it even matter if we use 16x, it would look really crisp on the edges.