歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux編程 >> Linux編程 >> Unity3D圖像後處理特效——Antialiasing (PostEffect)

Unity3D圖像後處理特效——Antialiasing (PostEffect)

日期:2017/3/1 10:16:31   编辑:Linux編程

The Antialiasing (PostEffect) offers a set of algorithms designed to give a smoother appearance to graphics. When two areas of different colour adjoin in an image, the shape of the pixels can form a very distinctive "staircase" along the boundary. This effect is known asaliasing and hence antialiasing refers to any measure which reduces the effect.

反走樣 (後處理特效)提供了一套旨在提供更柔順的圖形表現的算法。當兩個不同顏色的區域在圖像中相鄰時,邊界像素的形狀會形成一個非常獨特"樓梯"。這種效應被稱為鋸齒,因此反走樣是指指任何可降低鋸齒效果的措施。

The cube on the left is rendered without antialiasing while the one on the right shows the effect of the FXAA1PresetB algorithm

左邊的立方體並沒有使用反走樣技術來進行渲染,而右邊的立方體使用基於FXAA1PresetB算法的反走樣技術。

The antialiasing algorithms are image based, which is very useful for deferred rendering where traditional multisampling is not properly supported. The algorithms currently supported are NVIDIA's FXAA, FXAA II, FXAA III (tweakable and console optimized), simpler edge blurs (NFAA, SSAA) that blur only local edges and an adaption of the DLAA algorithm that also addresses long edges. SSAA is the fastest technique, followed by NFAA, FXAAII, FXAA II, DLAA and the the other FXAA's. Typically, the quality of antialiasing trades off against the speed of the algorithm but there may be situations where the choice of algorithm makes little difference.

反走樣算法是基於圖像的,這使得它在傳統多級采樣不支持的情況下非常適用於延遲渲染。目前支持的算法有NVIDIA的FXAA、FXAA II、FXAA III(tweakable 和優化的控制台),簡單的僅模糊局部邊界的邊緣模糊算法(NFAA,SSAA)以及自適應地處理長邊界的DLAA算法。SSAA是一種最快的反走樣技術,接下來是NFAA、FXAA III、FXAA II、DLAA和其他FXAA算法。通常情況下,反走樣效果的質量好壞與算法的速度成反比,但也有時候算法的選擇並不會造成多大的差異。

For those especially interested in console and NaCl deployment, the optimizedFXAA III implementation offers the best tradeoff between quality and performance and can furthermore be tweaked towards sharper or blurrier looks.

對於那些對控制台和NaCl發布比較敏感的圖像,優化過的 FXAA III算法提供的質量和性能之間的最佳平衡,此外還可以變得加更清晰或模糊。

As with the otherimage effects, this effect is only available in Unity Pro and you must have the Pro Standard Assets installed before it becomes available.

跟其他圖像後處理特效一樣,該特效目前只在Unity Pro版本中有效,而且在使用之前必須要安裝Pro Standard Assets。

Properties 屬性

AA Technique

反走樣技術

The algorithm to be used.

使用算法

Hardware support 硬件支持

This effect requires a graphics card with pixel shaders (3.0) or OpenGL ES 2.0. PC: NVIDIA cards since 2004 (GeForce 6), AMD cards since 2005 (Radeon X1300), Intel cards since 2006 (GMA X3000); Mobile: OpenGL ES 2.0; Consoles: Xbox 360, PS3.

該特效要求在擁有像素著色器(3.0)或OpenGL ES2.0的顯卡上進行。PC:2004年以後的NVIDIA卡(GeForce6),2005年以後的AMD卡(Radeon X1300),2006年以後的Intel卡(GMA X3000);移動設備:OpenGL ES2.0;控制台:Xbox360,PS3。

All image effects automatically disable themselves when they can not run on end-users graphics card.

所有圖像特效如果不能在用戶終端的顯卡上運行時則會自動關閉。

Copyright © Linux教程網 All Rights Reserved