Version: 2022.2
言語: 日本語
ライトマップ UV の生成
Fixing lightmap UV overlap

Visualizing lightmap UVs

It is important to be able to view the lightmap UVs that are being used, and Unity has a visualization tool to help you with this. First, open the Lighting window (menu: Window > Rendering > Lighting) and tick the Auto checkbox at the bottom. This ensures that your bake and precompute are up-to-date, and outputs the data that is needed to view the UVs. Wait for the process to finish (this can take some time for large or complex Scenes).

Visualizing real-time lightmap UVs

To see the UVs for the Realtime Global Illumination system:

  • シーンの Mesh Renderer がアタッチされているゲームオブジェクトを選択します。
  • Lighting ウィンドウを開き、Object タブを選択します。
  • Preview のドロップダウンで Charting を選択します。

これは、このメッシュのインスタンスのうち選択したものが持つリアルタイムライトマップの UV レイアウトを表示します。

  • プレビューでは、チャートは色分けされたエリアで表示されます (上の右側の図)。
  • 選択したインスタンスの UV はチャート上に置かれ、ゲームオブジェクトのメッシュのワイヤーフレームとして表示されます。
  • 濃いグレーのテクセルは、ライトマップの使用されていないエリアです。

複数のインスタンスをリアルタイムのライトマップにパックすることができます。したがって、表示されるチャートの中には、実際には他のゲームオブジェクトに属するものがあります。

Visualizing baked lightmap UVs

To see the UVs for the Baked Global Illumination system:

  • インスタンスを選択します。
  • Lighting ウィンドウ (Window > Rendering > Lighting) を開き、Object タブを選択します。
  • Preview のドロップダウンで Baked Intensity を選択します。

図のように、ベイクした UV は、事前計算されたリアルタイム UV とは大きく異なります。これは、ベイクした UV と事前計算したリアルタイム UV の要件が異なるためです。

ライトマップ UV の生成
Fixing lightmap UV overlap