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

搜索資源 注冊(cè)|登陸

等待

返回 展開(kāi)菜單
按功能 按軟件

unity3d視頻教程

unity3d視頻教程

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

從零基礎(chǔ)學(xué)習(xí)unity3d游戲引擎,簡(jiǎn)單易學(xué)的視頻教程,讓你快速掌握unity3d,并喜歡上游戲開(kāi)發(fā)的樂(lè)趣。

關(guān)閉

Unity組件:Lens Flare 鏡頭光暈

關(guān)注:10139 留言:2 樓主:levengu 發(fā)帖時(shí)間:15年11月16日

levengu

普通會(huì)員

levengu

社區(qū)新人:1級(jí)

關(guān)注4186人

  • 性別

  • 年齡

    25

  • 積分

    1

  • 登陸

    1

  • 發(fā)帖

    1

間隔線

Lens Flares simulate the effect of lights refracting inside camera lens. They are used to represent really bright lights or, more subtly, just to add a bit more atmosphere to your scene.

鏡頭光暈 模擬相機(jī)鏡頭內(nèi)的折射光線的效果。它們被用來(lái)代表真正的明亮的燈光,更微妙的是,可以在你的場(chǎng)景添加多一點(diǎn)的氣氛。

Lens Flare 鏡頭光暈
The Lens Flare Inspector 鏡頭光暈(Lens Flare)檢視窗口

The easiest way to setup a Lens Flare is just to assign the Flare property of the Light. Unity contains a couple of pre-configured Flares in the Standard Assets package.

建立鏡頭光暈 最簡(jiǎn)單的方法 是 指定光線(Light)的光暈屬性( Flare property)。Unity在Standard Assets package.包含了一些預(yù)設(shè)的光暈(Flares)資源。

Otherwise, create an empty GameObject with GameObject->Create Empty from the menu bar and add the Lens Flare Component to it with Component->Rendering->Lens Flare. Then and choose the Flare in the Inspector.

否則,按照以下步驟: 1. 從菜單欄依次 GameObject - >Create Empty? 來(lái)創(chuàng)建一個(gè)空的游戲?qū)ο?GameObject) 2. 再Component->Rendering->Lens Flare 給這個(gè)空的游戲?qū)ο?GameObject)添加 鏡頭光暈組件(Lens Flare?Component) 3.最后在檢視面板選擇光暈(Flare)

To see the effect of Lens Flare in the Scene View, check the Fx button in the Scene View toolbar:

想要在場(chǎng)景視圖中看到鏡頭光暈的效果,選上場(chǎng)景視圖工具欄中的Fx按鈕。

Lens Flare 鏡頭光暈
Enable the Fx button to view Lens Flares in the Scene View
選上Fx 按鈕才能看到場(chǎng)景視圖上的鏡頭光暈(Lens Flares)效果。

Properties 屬性
  • Flare 光暈
    The Flare to render. The flare defines all aspects of the lens flare's appearance.
    要渲染的光暈(Flare?),光暈定義了鏡頭光暈外觀的所有方面。
  • Color 顏色
    Some flares can be colorized to better fit in with your scene's mood.
    一些光暈可以填上顏色以更加適合你場(chǎng)景的風(fēng)格。
  • Brightness 亮度
    How large and bright the Lens Flare is.
    鏡頭光暈(Lens Flare)的大小和明亮程度。
  • Directional 方向
    If set, the flare will be oriented along positive Z axis of the game object. It will appear as if it was infinitely far away, and won't track object's position, only the direction of Z axis.
    如果設(shè)置了,光暈將以游戲?qū)ο蟮腪軸為方向。它會(huì)看上去好像是無(wú)限遠(yuǎn),而且不會(huì)跟蹤對(duì)象的位置,只沿著Z軸作為方向。
Details 詳情

You can directly set flares as a property of a Light Component, or set them up separately as Lens Flare component. If you attach them to a light, they will automatically track the position and direction of the light. To get more precise control, use this Component.

你可以直接將光暈設(shè)置為光線組件(?Light?Component)的屬性,或者獨(dú)立地在鏡頭光暈組件(Lens Flare component.)建立他們。如果你把它們貼在一個(gè)光線上,他們會(huì)自動(dòng)跟蹤光線的位置和方向。使用這個(gè)組件,得到更精確的控制 。

A Camera has to have a Flare Layer Component attached to make Flares visible (this is true by default, so you don't have to do any set-up).

相機(jī)(Camera?)貼有光暈層組件(Flare Layer Component)?使光暈可見(jiàn)(這是真的,默認(rèn)情況下,因此你不需要做任何設(shè)置)。

Hints 提示
  • Be discrete about your usage of Lens Flares. 使用鏡頭光暈應(yīng)分散(Lens Flares)。(即不要都疊在一起)
  • If you use a very bright Lens Flare, make sure its direction fits with your scene's primary light source.
    如果你用的是一個(gè)很明亮的鏡頭光暈(Lens Flare),保證它的方向與你的場(chǎng)景主要光源的方向相符合
  • To design your own Flares, you need to create some Flare Assets. Start by duplicating some of the ones we provided in the the Lens Flares folder of the Standard Assets, then modify from that.
    你自己的光暈時(shí),你需要?jiǎng)?chuàng)建一些光暈的資源。通過(guò)復(fù)制一些在Standard Assets的文件夾中提供的鏡頭光暈(Lens Flares)的開(kāi)始,然后修改。
  • Lens Flares are blocked by Colliders. A Collider in-between the Flare GameObject and the Camera will hide the Flare, even if the Collider does not have a Mesh Renderer.
    鏡頭光暈會(huì)被碰撞器遮擋。一個(gè)介于光暈游戲?qū)ο?(Flare GameObject)和相機(jī)之間的碰撞器會(huì)把光暈隱藏掉(即使碰撞器沒(méi)有Mesh Renderer)。

贊0 踩0

3樓:有馬公薰 留言時(shí)間:20年2月14日

有馬公薰

普通會(huì)員

有馬公薰

社區(qū)鼻祖:9級(jí)

關(guān)注3742人

  • 性別

  • 年齡

    34

  • 積分

    1276

  • 登陸

    14

  • 回復(fù)

    1

  • 學(xué)習(xí)

    11

間隔線

同問(wèn)

一切才剛剛開(kāi)始

贊0 踩0

2樓:ZengJY 留言時(shí)間:16年12月10日

ZengJY

普通會(huì)員

ZengJY

社區(qū)新人:1級(jí)

關(guān)注2655人

  • 性別

  • 年齡

    20

  • 積分

    2

  • 登陸

    1

  • 回復(fù)

    1

間隔線

請(qǐng)問(wèn)在Scence有顯示光暈 但在Game不顯示  要怎么解決?

贊0 踩0

未知用戶

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

VIP

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

回頂部

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