# Lets create a complex lightmap - Open discussion

**URL:** <https://forums.unrealengine.com/t/lets-create-a-complex-lightmap-open-discussion/62485>\
**Category:** Architectural and Design Visualization\
**Tags:** unreal-engine\
**Created:** [April 29, 2016, 12:13pm UTC](https://forums.unrealengine.com/t/lets-create-a-complex-lightmap-open-discussion/62485 "2016-04-29T12:13:35Z")\
**Posts on this page:** 20\
**Page:** 4

<div class="post-metadata">

**Author:** ![ZacD](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ZacD](https://forums.unrealengine.com/u/ZacD)\
**Post date:** [May 29, 2016, 12:36pm UTC](https://forums.unrealengine.com/t/lets-create-a-complex-lightmap-open-discussion/62485/61 "2016-05-29T12:36:09Z")

</div>

> [@dylan86.exe;537831](#):
>
> This is my normal map. I think there might me some issues with the mesh because I can’t get it looking like a proper normal map.
> 
> [http://i.imgur.com/KGBE3jC.png](http://i.imgur.com/KGBE3jC.png)
> 
> Hi POly
> 
> [http://i.imgur.com/l4PIbFn.png](http://i.imgur.com/l4PIbFn.png)
> 
> Low Poly
> 
> [http://i.imgur.com/aiP2t9C.png](http://i.imgur.com/aiP2t9C.png)
> 
> Cage
> 
> [http://i.imgur.com/rDxqhUe.png](http://i.imgur.com/rDxqhUe.png)

What does it look like if you try to bake without the cage.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_5ab72736](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_5ab72736](https://forums.unrealengine.com/u/anonymous_user_5ab72736)\
**Post date:** [June 5, 2016, 4:35am UTC](https://forums.unrealengine.com/t/lets-create-a-complex-lightmap-open-discussion/62485/62 "2016-06-05T04:35:16Z")

</div>

Ok I’m pretty close now. I used a different method to make a cage and it’s much better. I still have an issue though. There’s some kind of projection issue with the Normals map when I apply it to the mesh. I don’t know how to explain it other than it’s not mapping properly. Take a look at the pics…

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/9/8/998da952a174955c85cca440a3b709662c5218e5.png)

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/8/1/f818b20103f4c0ce7aa1f18d3a13f0a484ec659b.jpeg)

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/d/f/2df2791d07772a2ffdbd0cc8c6bc2915d93a51e7.png)

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/0/5/8050da8107f29b0ea5c0e3868cb7c58760ad88f2.png)

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/f/f/5ffd6fe03b6aa0b6b37bd772f182759997d946b1.png)

![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/f/5/7f5a80059eb49166d98decb9f834c7c36c3df23b.png)

---

<div class="post-metadata">

**Author:** ![ZacD](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ZacD](https://forums.unrealengine.com/u/ZacD)\
**Post date:** [June 5, 2016, 5:48am UTC](https://forums.unrealengine.com/t/lets-create-a-complex-lightmap-open-discussion/62485/63 "2016-06-05T05:48:05Z")

</div>

Delete UV channel 0 in your 3d modeling application, you have 2 UV channels when you only need 1.

You could also just tell UE4 to use the UVs of the second channel in the material editor with the TexCord node.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_5ab72736](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_5ab72736](https://forums.unrealengine.com/u/anonymous_user_5ab72736)\
**Post date:** [June 5, 2016, 12:14pm UTC](https://forums.unrealengine.com/t/lets-create-a-complex-lightmap-open-discussion/62485/64 "2016-06-05T12:14:46Z")

</div>

[QUOTE=  
Delete UV channel 0 in your 3d modeling application, you have 2 UV channels when you only need 1.

You could also just tell UE4 to use the UVs of the second channel in the material editor with the TexCord node.  
[/QUOTE]

i thought UE needs 2 channels when you import?! 1 channel for texture mapping and the other for lightmaps?

---

<div class="post-metadata">

**Author:** ![ZacD](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ZacD](https://forums.unrealengine.com/u/ZacD)\
**Post date:** [June 5, 2016, 7:32pm UTC](https://forums.unrealengine.com/t/lets-create-a-complex-lightmap-open-discussion/62485/65 "2016-06-05T19:32:29Z")

</div>

UE4 will automatically make a light map based off your first UV channel. If your model is unwrapped like mine in the guide, the auto generated one will work well.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_5ab72736](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_5ab72736](https://forums.unrealengine.com/u/anonymous_user_5ab72736)\
**Post date:** [June 6, 2016, 8:07am UTC](https://forums.unrealengine.com/t/lets-create-a-complex-lightmap-open-discussion/62485/66 "2016-06-06T08:07:37Z")

</div>

> [@ZacD;542448](#):
>
> UE4 will automatically make a light map based off your first UV channel. If your model is unwrapped like mine in the guide, the auto generated one will work well.

Thanks heaps Zac! Finally, success.  
I’m still a little confused though because every tutorial I’ve watched and forum I’ve read has drilled into people you need 2 channels. One for texture mapping, and one for Light maps. I know you said that Unreal can generate light maps too, but isn’t it better that I do this manually in 3Ds? I’ve read that Unreal can be a bit funny generating light maps at times. Also, how do I go about telling Unreal to use the 2nd channel using a TexCord node in the material editor?

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/c/d/6cd07c8d805786fb6fcfc870fefd52e5c8c2424a.jpeg)

---

<div class="post-metadata">

**Author:** ![ZacD](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ZacD](https://forums.unrealengine.com/u/ZacD)\
**Post date:** [June 6, 2016, 9:42am UTC](https://forums.unrealengine.com/t/lets-create-a-complex-lightmap-open-discussion/62485/67 "2016-06-06T09:42:25Z")

</div>

Generally there’s a few things that don’t lightmap well without custom uvs. Walls, and things that have overlapping uvs (that aren’t separate islands), and things with lots of unneeded UV splits for light maps. In my guide for this model I kept the number of UV splits low, and generally in areas you don’t see, so you don’t need to mess with having a custom lightmap channel. The light fixture in this thread also did not have custom uvs in my example, i just let UE4 auto generate them.

To change the UV channel for a texture, all you have to do is plug a texture coordinate node in the material editor into your textures and set the channel. Super easy and straightforward.

---

<div class="post-metadata">

**Author:** ![Stockbrot](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Stockbrot](https://forums.unrealengine.com/u/Stockbrot)\
**Post date:** [July 4, 2016, 8:36pm UTC](https://forums.unrealengine.com/t/lets-create-a-complex-lightmap-open-discussion/62485/68 "2016-07-04T20:36:28Z")

</div>

A small little video tutorial on this would be highly appreciated! 🙂

---

<div class="post-metadata">

**Author:** ![ZacD](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ZacD](https://forums.unrealengine.com/u/ZacD)\
**Post date:** [July 5, 2016, 12:19am UTC](https://forums.unrealengine.com/t/lets-create-a-complex-lightmap-open-discussion/62485/69 "2016-07-05T00:19:46Z")

</div>

I could make a video tutorial, but I’m not sure what it would add. If I was to make one, would you want me to use this couch model, or something else?

---

<div class="post-metadata">

**Author:** ![Raghu](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Raghu](https://forums.unrealengine.com/u/Raghu)\
**Post date:** [July 5, 2016, 8:43am UTC](https://forums.unrealengine.com/t/lets-create-a-complex-lightmap-open-discussion/62485/70 "2016-07-05T08:43:38Z")

</div>

> [@ZacD;525733](#):
>
> Here’s a quick guide of how it’s done, might make a video in the future but was short on time.
> 
> Images in album: [Guide for making and baking low poly for UE4 - Album on Imgur](http://imgur.com/a/PNuMq)
> 
> 1. Get your model.
> 2. Explode it into the simplest pieces.
> 3. Create the low poly parts.
> 4. Reuse stuff if possible to save time. (Note I did not use enough geometry for the side arms of the couch, look at picture 25 and you’ll see the issue. This could of been easily fixed by starting with more geometry along where the bars would go. I did not have this issue the first time in the above posts because I checked before putting the asset in the engine.
> 5. Shrink wrap
> 6. Relax just a bit so the geometry isn’t too tight or almost over lapping.
> 7. We are just unwrapping cubes here, it’s pretty simple, put a seam on every corner edge, and then remove 5 that would be in obvious places. That will help hide any tiling you do with a fabric detail texture.
> 8. Done unwrapping the 8 cushions.
> 9. Make sure it’s one smoothing group and there’s no hard edges. (Experience artists may want to put hard edges on UV seams, it can reduce artifacts on certain assets, but isn’t needed here).
> 10. No more hard edges.
> 11. Since we are using xNormal it’s best to use a cage along with the baking process, artists on Polycount have found Substance Designer/Painter do an amazing job even without cages, but I’d always suggest one if using xNormal).
> 12. To create a cage you take the low poly model and push it past the over lapping high poly model.
> 13. Make sure the high poly does not stick through the lowpoly anywhere. If it does, no detail will be baked there.
> 14. Triangulate and export. Also I cannot spell. Also make sure you are exporting the normals
> 15. Make sure this setting is checked in the plug-in settings, click the plug to get to these settings.
> 16. Import the high poly, low poly, and cage.
> 17. Where you add the cage.
> 18. Make sure Y- for UE4
> 19. Bake.
> 20. Recombine mesh and export for UE4.
> 21. Import normals and tangents.
> 22. Make sure the normal map imported as a normal map (it should if it has normal or \_n in the name, you don’t have to do this ever time, but it’s good to double check if it’s your first time).
> 23. Create a material, I added a cavity map for AO, it adds a bit of extra shadowing on the wrinkles in indirect light. The multiple is there to adjust the strength.
> 24. You can check the light map UVs and make sure they look good. Set the light map resolution to 512.
> 25. Bake lighting and your done, this is showing the issue mentioned on step 4. The metal does not have any light map UVs so it’s completely black from the baked lighting. Didn’t have enough time to explain how to unwrap that.
> 26. Close up
> 27. Distance

Need a video tutorial for noobs like me.

---

<div class="post-metadata">

**Author:** ![mhnoni](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mhnoni](https://forums.unrealengine.com/u/mhnoni)\
**Post date:** [July 6, 2016, 12:46pm UTC](https://forums.unrealengine.com/t/lets-create-a-complex-lightmap-open-discussion/62485/71 "2016-07-06T12:46:53Z")

</div>

> [@ZacD;559241](#):
>
> I could make a video tutorial, but I’m not sure what it would add. If I was to make one, would you want me to use this couch model, or something else?

yeah pls make one 🙂

---

<div class="post-metadata">

**Author:** ![tc22\_LEOCHOU](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tc22_leochou/32/491291_2.png) [@tc22\_LEOCHOU](https://forums.unrealengine.com/u/tc22_LEOCHOU)\
**Post date:** [July 12, 2016, 8:35am UTC](https://forums.unrealengine.com/t/lets-create-a-complex-lightmap-open-discussion/62485/72 "2016-07-12T08:35:05Z")

</div>

[http://imgur.com/a/0uYjW](http://imgur.com/a/0uYjW)

i make some Res model, but not low poly  
in mudbox and look good!

---

<div class="post-metadata">

**Author:** ![heartlessphil](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@heartlessphil](https://forums.unrealengine.com/u/heartlessphil)\
**Post date:** [January 25, 2017, 3:41pm UTC](https://forums.unrealengine.com/t/lets-create-a-complex-lightmap-open-discussion/62485/73 "2017-01-25T15:41:28Z")

</div>

I started to learn substance painter and it has some very cool baking tools (as ZacD suggested already). 1st, you don’t need to explode anything in 3ds max/maya/blender, whatever. You can bake by mesh name. You must name all your meshes with the \_low / \_high suffix (for example cushion1\_low, cushion1\_high, cushion2\_low, cushion2\_high, etc) . You also don’t need to make a cage. Instead with the frontal and rear distance you make a virtual envelope around your highpoly/lowpoly and it will be used to cast rays to make your normal map.

 ![baking.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/d/e/debb3dd76207ef7ed5333df07669f731aadefe55.jpeg)

I just tought i’d share, it simplifies the workflow for me.

---

<div class="post-metadata">

**Author:** ![S-Dot](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/s-dot/32/1194599_2.png) [@S-Dot](https://forums.unrealengine.com/u/S-Dot)\
**Post date:** [January 28, 2017, 5:00am UTC](https://forums.unrealengine.com/t/lets-create-a-complex-lightmap-open-discussion/62485/74 "2017-01-28T05:00:00Z")

</div>

One little tip here: When you made the effort of baking a normal map already, then why not bake the AO map at the same time? Unreal 4 has a dedicated slot for AO. It applies it differently depending if the objects gets direct light or not. I think it will make your model look better, especially from a little distance where detailed shadow might just disappear otherwise.

---

<div class="post-metadata">

**Author:** ![S-Dot](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/s-dot/32/1194599_2.png) [@S-Dot](https://forums.unrealengine.com/u/S-Dot)\
**Post date:** [January 29, 2017, 3:55am UTC](https://forums.unrealengine.com/t/lets-create-a-complex-lightmap-open-discussion/62485/75 "2017-01-29T03:55:16Z")

</div>

> [@dylan86.exe;542688](#):
>
> Thanks heaps Zac! Finally, success.  
> I’m still a little confused though because every tutorial I’ve watched and forum I’ve read has drilled into people you need 2 channels. One for texture mapping, and one for Light maps. I know you said that Unreal can generate light maps too, but isn’t it better that I do this manually in 3Ds? I’ve read that Unreal can be a bit funny generating light maps at times. Also, how do I go about telling Unreal to use the 2nd channel using a TexCord node in the material editor?

Unreal needs a lightmap that is not overlapping, has no stitched hard edges, has good sized gaps and doesn’t stick out of the main uv square. If your regular/first uv channel does all that then you don’t need a 2nd one for the lightmap. You can set the channel in the mesh property window in the static mesh section. No need to do anything in the material.

---

<div class="post-metadata">

**Author:** ![migs24](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@migs24](https://forums.unrealengine.com/u/migs24)\
**Post date:** [June 18, 2017, 8:58am UTC](https://forums.unrealengine.com/t/lets-create-a-complex-lightmap-open-discussion/62485/76 "2017-06-18T08:58:00Z")

</div>

sorry for the noob question but how do you reduce the poly without damaging the model, im following your tutorial but using a fabric

---

<div class="post-metadata">

**Author:** ![Orkney](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Orkney](https://forums.unrealengine.com/u/Orkney)\
**Post date:** [June 19, 2017, 1:54pm UTC](https://forums.unrealengine.com/t/lets-create-a-complex-lightmap-open-discussion/62485/77 "2017-06-19T13:54:35Z")

</div>

Am I correct in thinking the optimal way to do Piping at the corners of fabrics should be done using a normal map to avoid issues with light baking? Up to now I have been using a thickened spline in 3ds max then deleting faces which point inwards but you still do get some shadow artifacts.

Also would baking the normal map in 3ds max pick up the mesh for the piping and add that to the normal map?

---

<div class="post-metadata">

**Author:** ![ZacD](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ZacD](https://forums.unrealengine.com/u/ZacD)\
**Post date:** [June 19, 2017, 2:52pm UTC](https://forums.unrealengine.com/t/lets-create-a-complex-lightmap-open-discussion/62485/78 "2017-06-19T14:52:53Z")

</div>

Kinda along what Orkney said, I would make the mesh one sided and use the double sided settings in UE4. The automatically decimated geometry should be fine, hopefully you can get a flat, clean, single piece UV island without much work.

---

<div class="post-metadata">

**Author:** ![Farshid](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/farshid/32/874107_2.png) [@Farshid](https://forums.unrealengine.com/u/Farshid)\
**Post date:** [December 24, 2017, 8:23am UTC](https://forums.unrealengine.com/t/lets-create-a-complex-lightmap-open-discussion/62485/79 "2017-12-24T08:23:36Z")

</div>

how to unwrap this complex objects ue4 ?  
pelt mapping does not help me with this !

screenshots of ue4 and 3ds max attached  
there is some blacks on object after rendering

> **[Dropbox - File Deleted](https://www.dropbox.com/s/lsn8pc49hijjzel/Farshid.fbx?dl=0)**
>
> Dropbox is a free service that lets you bring your photos, docs, and videos anywhere and share them easily. Never email yourself a file again!

---

<div class="post-metadata">

**Author:** ![ZacD](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ZacD](https://forums.unrealengine.com/u/ZacD)\
**Post date:** [December 24, 2017, 11:52am UTC](https://forums.unrealengine.com/t/lets-create-a-complex-lightmap-open-discussion/62485/80 "2017-12-24T11:52:10Z")

</div>

Ideally, you’d unwrap a piece of cloth like that before you performed a cloth sim on it. It looks like that did happen because there are clean tiling UVs for the cloth pattern.

[Previous page](https://forums.unrealengine.com/t/lets-create-a-complex-lightmap-open-discussion/62485.md?page=3)

[Next page](https://forums.unrealengine.com/t/lets-create-a-complex-lightmap-open-discussion/62485.md?page=5)
