Its possible to add support to CMAA?(Intel)

  • Posts: 5
4 years 5 months ago - 4 years 5 months ago #1 by andrew
Was looking for anti-aliasing techniques, and found that,one called CMAA, the the quality is close to MSAA 4x with the perfomance lower of MSAA 2x, I even downloaded Intel's source code, there was a file called CMAA.h, similar to Reshade files, , but i dont know much about programming, but it seems to be easy to include this effect in Reshade.

https://software.intel.com/en-us/articles/conservative-morphological-anti-aliasing-cmaa


Please Log in or Create an account to join the conversation.

  • Posts: 101
4 years 5 months ago #2 by v00d00m4n
There is updated version, would be nice if someone will port it to reshade
software.intel.com/en-us/articles/conser...aliasing-cmaa-update

Please Log in or Create an account to join the conversation.

  • Posts: 177
4 years 5 months ago - 4 years 5 months ago #3 by kingeric1992
Judging from the file, it need RWtexture2d for UAV (unordered access view) mapping in pixel shader and currently it is not provided in reshade.

There might be some workaround with multiple render target, but such adaption will require some deeper look.

Please Log in or Create an account to join the conversation.

  • Posts: 527
3 years 9 months ago #4 by lowenz
Up (for ReShade 3.0)!

Please Log in or Create an account to join the conversation.

  • Posts: 97
3 years 1 month ago - 3 years 1 month ago #5 by NoMansReshade
github.com/justinow/CMAA_Reshade_3 found this, but im getting errors!

error X3548: in ps_3_0 uints can only be used with known-positive values, use int if possible

Please Log in or Create an account to join the conversation.

  • Posts: 1221
3 years 1 month ago - 3 years 1 month ago #6 by Marty McFly
Whoever ported this is a tiny bit crazy:
// avoid doing pow and look up an array of 1024 values instead.
return LstarLookup(colour);

So to spare one simple ASM instruction that maybe costs a single nanosecond or whatever - he goes ahead and sets up an insanely large array of data. This won't work in DX9 at all and the amount of constant registers used are larger than anything I've seen before.

Please Log in or Create an account to join the conversation.

  • Posts: 3723
3 years 1 month ago #7 by crosire
Well, on the CPU that would likely be a lot faster. But as you said, on GPUs not, they are architectured very differently. It's a common mistake that developers new to GPU programming simply apply their CPU knowledge in the same way.

Please Log in or Create an account to join the conversation.

  • Posts: 221
3 years 1 week ago #8 by Sunesha
I tested this CMAA shader. Though I got it in the Lstar curve mode so it changed brightness overall. I had hard time judge it but overall still prefer the stock SMAA that is in the stock shader pack. I mostly had hope that do a better job on stuff moving or while you self is moving. I really hope that in future there will be shader handling that kind of aliasing. Downsampling helps a lot but my current GPU doesn't have the muscle for that. Guess 4k will help too.

Please Log in or Create an account to join the conversation.