朱峰社區(qū)首頁 朱峰社區(qū)

搜索資源 注冊|登陸

等待

返回 展開菜單
按功能 按軟件

繪制真實照片

繪制真實照片

包含9節(jié)視頻教程

這是臨摹的終極表現(xiàn)!在臨摹領(lǐng)域達到真實照片的級別,讓你的繪畫讓別人驚呼吧!這不是照片,真的是繪畫出來的。我們一起來學(xué)習(xí)吧!

關(guān)閉

Unity組件:對比度拉伸圖像特效

關(guān)注:751 留言:0 樓主:杭州流金 發(fā)帖時間:15年11月16日

杭州流金

普通會員

杭州流金

社區(qū)朋友:2級

關(guān)注2512人

  • 積分

    35

  • 登陸

    1

  • 發(fā)帖

    1

  • 作品

    1

間隔線


Contrast Stretch
dynamically adjusts the contrast of the image according to the range of brightness levels it contains. The adjustment takes place gradually over a period of time, so the player can be briefly dazzled by bright outdoor light when emerging from a dark tunnel, say. Equally, when moving from a bright scene to a dark one, the "eye" takes some time to adapt.

對比度拉伸特效根據(jù)亮度級別的范圍來動態(tài)地調(diào)整圖像的對比度。調(diào)整是逐漸變化的,并且會持續(xù)一段時間,就好像是當(dāng)玩家黑暗的隧道出來時,會對明亮的室外光線產(chǎn)生目眩的感覺。同樣,當(dāng)從明亮的畫面進入到黑暗的一面,"眼睛"也要花一些時間來適應(yīng)。

As with the other image 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。

Understanding Contrast Stretch 對比度拉伸特效的理解

The clarity of detail in an image is largely determined by the range of different brightness values it contains. It is difficult for the eye to distinguish between two brightness levels that differ by less than about 2% and above that, the greater the difference, the stronger the detail. The overall separation between the lightest and darkest values in an image is referred to as the contrast of that image.

圖像中的細(xì)節(jié)的清晰度很大程度上取決于它所包含的不同亮度值的范圍。我們很難區(qū)分差異小于2%的兩個亮度級別,亮度差異越大,所表現(xiàn)的細(xì)節(jié)也就越明顯。在圖像中最亮和最暗的值之間的整體分離程度被稱為該圖像的對比度。

It is common for an image to use less than the full range of available brightness values. One way to increase the contrast is to redistribute the pixels' values so as to make better use of the range. The darkest level in the original image is remapped to a even darker level, the brightest to a brighter level and all the levels in between are moved farther apart in proportion. The distribution of levels is then "stretched" out farther across the available range and thus this effect is known as contrast stretch.

一般來說,一張普通的圖像的亮度范圍僅為可用亮度范圍的一部分,所以增加對比度的一種方法是對像素的亮度值進行重新分配,以更好地利用可用的亮度范圍。原始圖像中的最暗的級別會重新映射到一個更黑暗的水平,而最亮的級別則被映射到更亮的級別上,兩者之間各級的間距也成正比地拉伸。這樣,亮度級別的分布就相當(dāng)于在可用范圍內(nèi)進行了拉伸,我們將此效果稱為對比度拉伸。

Contrast stretching is evocative of the way the eye adapts to different light conditions. When walking from an outdoor area to a dimly lit building, the view will briefly appear indistinct until the contrast is stretched to reveal the detail. When emerging from the building, the contrast stretch will have the effect of making the outdoor scene appear dazzling bright until the "eye" of the player adjusts.

對比度拉伸特效可以體現(xiàn)眼睛在適應(yīng)不同光照條件下的調(diào)節(jié)情況。當(dāng)從室外走進昏暗的建筑后,視圖將明顯地變得模糊,直到對比度被拉伸后才能看清細(xì)節(jié)信息。同樣當(dāng)從大樓出來時,對比度拉伸會讓戶外場景更加明亮,造成目眩的效果,這種效果一直持續(xù)到玩家的"眼睛"適應(yīng)了為止。


No Contrast Stretch applied. 沒有應(yīng)用對比度拉伸特效。


Contrast stretch applied with a dark skybox. Note that buildings get brighter.
在一個較暗的天空盒中使用對比度拉伸特效。注意建筑物變得更加明亮。


Contrast stretch applied with a very bright skybox. Note that buildings get darker.
在一個非常明亮的天空盒中使用對比度拉伸特效。注意建筑物變得更加灰暗。

Properties 屬性
  • Adaptation Speed 適應(yīng)速度
    The speed of the transition. The lower this number, the slower the transition
    變換速度,該值越低,變換的越慢
  • Limit Minimum 受限最小值
    The darkest level in the image after adjustment.
    調(diào)整過后圖像的最暗亮度級別
  • Limit Maximum 受限最大值
    The brightest level in the image after adjustment.
    調(diào)整過后圖像的最亮亮度級別
Tips: 提示
  • Since Constrast Stretch is applied over a period of time, the full effect is only visible in Play mode.
    因為對比度拉伸特效需要持續(xù)一段時間,所以該效果只能在運行模式下可見。
Hardware support 硬件支持

This effect requires a graphics card with pixel shaders (2.0) or OpenGL ES 2.0. PC: NVIDIA cards since 2003 (GeForce FX), AMD cards since 2004 (Radeon 9500), Intel cards since 2005 (GMA 900); Mobile: OpenGL ES 2.0; Consoles: Xbox 360, PS3.

這個特效需要顯卡擁有像素著色器(2.0)或者OpenGL ES 2.0。臺式機:2003年以后的NVIDIA顯卡(GeForce FX),2004年以后的AMD顯卡(Radeon 9500),2005年以后的Intel卡(GMA 900);移動設(shè)備:OpenGL ES 2.0;控制臺: Xbox 360、 PS3。

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

所有圖像特效如果無法在用戶顯卡上運行時將會自動被關(guān)閉。

贊0 踩0

未知用戶

2005-2024 朱峰社區(qū) 版權(quán)所有 遼ICP備2021001865號-1
2005-2024 ZhuFeng Community All Rights Reserved

VIP

朱峰社區(qū)微信公眾號

回頂部

1.復(fù)制文本發(fā)給您的QQ好友或群、微信等;好友點擊鏈接以后,轉(zhuǎn)發(fā)就成功了。 2.如朋友點擊您的鏈接,您需要需刷新一下才行;同一個好友僅能點擊一次。
購買VIP,觀看所有收費教程!