# ライトマップビルド時のUVオーバーラップエラー

**URL:** <https://forums.unrealengine.com/t/uv/298263>\
**Category:** Rendering\
**Tags:** uv, overlap, unreal-engine, FBX, Lighting, question\
**Created:** [November 6, 2014, 12:29am UTC](https://forums.unrealengine.com/t/uv/298263 "2014-11-06T00:29:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![x68user](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@x68user](https://forums.unrealengine.com/u/x68user)\
**Post date:** [November 6, 2014, 12:29am UTC](https://forums.unrealengine.com/t/uv/298263/1 "2014-11-06T00:29:02Z")

</div>

[環境]UE4.5.1 [モデラー]LightWave11.6.2  
基本Unity使いですが、UE4も使いたいと思い勉強中です。  
表題にある通り、FBXモデルをインポートしライトマップをビルドするとUVオーバーラップエラーが発生します。  
これはモデルのUVを手動で修正するしか方法が無いのでしょうか？

 ![20196-uv.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/2/e/72e4d0719f032c372f7cb6aa0a993ad1c7ca6323.jpeg)

もちろんUVをずらしたり、別チャンネルでUVを作るなどすればエラーが回避できることは知っていますが、すでに数万ポリゴンあるモデルのUVを全て調整するのは不可能に近い状態です。  
Unityで同一モデルに対し、ライトマップUVを生成する場合エラーは特に起きず正常に動作します。

UE4のドキュメントにも左右対称のモデルの場合、マップがオーバーラップするのは有効だと書かれているのでいまいち納得できません。エラーの再現方法を画像で添付しております。  
そもそもライトマップUVとテクスチャUVを別チャンネルで生成していても、元々のUVはライトマップに依存するのでしょうか？  
その辺りの細かいドキュメントが無いので困っています。  
なにをもってUVオーバーラップと言う判定になるのか明確なガイドラインがあると良いのですが。

[![](https://d3kjluh73b9h9o.cloudfront.net/original/3X/5/c/5cbc5a826b41b2720dcce4f4fd2a5898d5967330.jpeg) ](https://docs.unrealengine.com/udk/Three/rsrc/Three/ImportingSkeletalMeshTutorialJP/StackedUVsJP.jpg)

---

<div class="post-metadata">

**Author:** ![sinocof](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@sinocof](https://forums.unrealengine.com/u/sinocof)\
**Post date:** [March 23, 2015, 12:01am UTC](https://forums.unrealengine.com/t/uv/298263/2 "2015-03-23T00:01:09Z")

</div>

遅い回答なので、既に解決しているかもしれませんが、ライトマップ解像度が低いと同じライトマップUVでもオーバーラップしてると出ることがありました。低いライトマップ解像度で作成したいのであれば、ライトマップUVのUVシェル（ひとつながりのUV)の間隔を広くする必要があるとおもいます。  
ライトマップの解像度はLight Map Resolutionで変更できます。

StaticMeshEditorのLight Map Corrdinate Indexが1になっていればUVチャンネル1が使用されるのでカラーUVの情報が参照されることはないです。

![35394-lightmapsetting.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/f/b/9fbbc3339e8ae8d2cb1ffc6cd16dc3c5fc724d71.jpeg)

Unityでは検出されないというのはオーバーラップの検出方法が違うからではないでしょうか（Unity使ったことないからわからないですが…）

---

<div class="post-metadata">

**Author:** ![x68user](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@x68user](https://forums.unrealengine.com/u/x68user)\
**Post date:** [September 3, 2015, 3:25am UTC](https://forums.unrealengine.com/t/uv/298263/3 "2015-09-03T03:25:30Z")

</div>

sinocof様、遅れましたが回答有難うございました。  
結果から言いますと、アドバイス通りの方法では解決しませんでした。  
もうちょっと調査を続けたいと思います。

---

<div class="post-metadata">

**Author:** ![alwei](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/alwei/32/1194579_2.png) [@alwei](https://forums.unrealengine.com/u/alwei)\
**Post date:** [September 5, 2015, 4:33am UTC](https://forums.unrealengine.com/t/uv/298263/4 "2015-09-05T04:33:45Z")

</div>

ライティング周りのトラブルはこのページに一通り書かれています。※英語しかありませんが

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — ue4community.wiki! You will be able to find content from the official...

オーバーラップに関しては一度以下に書かれている内容を一通り読んでみてください。それでも解決しない場合にはモデルのUV側の修正も必要になります。

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — ue4community.wiki! You will be able to find content from the official...
