smaa : enhanced morphological anti-aliasing
DESCRIPTION
smaa 테크닉에 대한 pptTRANSCRIPT
SMAA Enhanced Subpixel Morphological Antialiasing
엔씨소프트
이재윤
http://cafe.naver.com/shader
| Abstract
• Image-based post-processing AA technique
– 좋은 edge detection
– Simple and effective way to handle sharpness
• Geometric features
• Diagonal lines
• Works with MSAA / SSAA
• CryEngine3에 적용
http://cafe.naver.com/shader
| Introduction
• CG에서의 숙원사업 anti-aliasing
– Spatial domain
– Temporal domain
• MSAA/SSAA
– 이제는 진부한 퀄리티와 (메모리+속도)의 trade-off
• MLAA에서 착안
– Practical MLAA의 모든 step을 rebuilding
http://cafe.naver.com/shader
| Previous MLAA
Original Image
Edges texture
Blending weights texture
Antialiased Image
http://cafe.naver.com/shader
| SMAA
• Edge detection
– Local contrast adaptation
• Pattern handling
– Sharp geometric features
– Diagonal patterns
– Accurate distances search
• Sub-pixel rendering
• Temporal re-projection
http://cafe.naver.com/shader
| Edge detection
• Luminance 사용
– RGB 보다 빠름
– Shading aliasing에도 적용 가능
• Top Right edge에 대해서만 검출
http://cafe.naver.com/shader
| Edge detection
Crossing edges Using Local contrast SMAA
http://cafe.naver.com/shader
| Edge detection
http://cafe.naver.com/shader
| Pattern handling
No AA MLAA SMAA
• Sharp geometric features
http://cafe.naver.com/shader
| Pattern handling
• Sharp geometric features
http://cafe.naver.com/shader
| Pattern handling
• Sharp geometric features
http://cafe.naver.com/shader
| Pattern handling
• Diagonal patterns
– 기존의 filter-based techniques
• Orthogonal pattern에 대해서만 고려
• 대각선에 대해 좋지 않은 aliased 결과
http://cafe.naver.com/shader
| Pattern handling
• Diagonal patterns
http://cafe.naver.com/shader
MLAA SMAA
| Pattern handling
• Diagonal patterns
http://cafe.naver.com/shader
Pattern map Area texture
| Pattern handling
• Accurate distances search
– 정확한 edge dist.를 찾는 것이 key point
http://cafe.naver.com/shader
| Sub-pixel rendering
MLAA
Single sample / pixel
http://cafe.naver.com/shader
SMAA + @
More samples / pixel
| Sub-pixel rendering
http://cafe.naver.com/shader
| Temporal Re-projection
• TSSAA
– sub-pixel rendering에 효과적
– But, ghosting artifact 존재
• Prev. frame re-projection
http://cafe.naver.com/shader
| Temporal re-projection
http://cafe.naver.com/shader
TSSAA Re-projection Velocity weighting
| Temporal re-projection
http://cafe.naver.com/shader
TSSAA Re-projection Velocity weighting
| Results
• NVIDIA GeForce GTX 470
• 1080p Images
http://cafe.naver.com/shader
techniques Execution times
SMAA 1x 1.02ms
SMAA T2x 1.32ms
SMAA S2x 2.04ms
SMAA 4x 2.34ms
| Conclusions
• Tackles all the weak points remaining in filter-
based antialiasing solutions
• Shown how to combine a filter-based AA with
MSAA/SSAA
http://cafe.naver.com/shader