# Procedural mesh and baked lighting

**URL:** <https://forums.unrealengine.com/t/procedural-mesh-and-baked-lighting/464896>\
**Category:** Rendering\
**Tags:** static-lights, unreal-engine, procedural-mesh, Lighting, question, baked\
**Created:** [May 9, 2020, 3:01am UTC](https://forums.unrealengine.com/t/procedural-mesh-and-baked-lighting/464896 "2020-05-09T03:01:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![theNewGfactor](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@theNewGfactor](https://forums.unrealengine.com/u/theNewGfactor)\
**Post date:** [May 9, 2020, 3:01am UTC](https://forums.unrealengine.com/t/procedural-mesh-and-baked-lighting/464896/1 "2020-05-09T03:01:06Z")

</div>

Hello, I’m generating a procedural mesh in the construction script of a blueprint. I have no problem generating the mesh but when I bake lighting the mesh is not affected at all. If I create a static mesh from the procedural mesh the default lightmap resolution is too small, but once I increase this value the static mesh version bakes just fine.

For testing purposes my procedural mesh is simply a one sided plane with 4 vertices, 2 triangles and a square UV set.

Is there a way to get procedural meshes to be baked with static lights? Or do they already do this and I’m doing something wrong?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_f26c856c1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f26c856c1](https://forums.unrealengine.com/u/anonymous_user_f26c856c1)\
**Post date:** [May 9, 2020, 9:52pm UTC](https://forums.unrealengine.com/t/procedural-mesh-and-baked-lighting/464896/2 "2020-05-09T21:52:19Z")

</div>

Hi!

…I don’t know if it’s relevant but Unreal needs meshes with thickness to calculate proper lighting… if you could try with a simple procedural BOX instead of the plane…

---

<div class="post-metadata">

**Author:** ![theNewGfactor](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@theNewGfactor](https://forums.unrealengine.com/u/theNewGfactor)\
**Post date:** [May 10, 2020, 12:53pm UTC](https://forums.unrealengine.com/t/procedural-mesh-and-baked-lighting/464896/3 "2020-05-10T12:53:23Z")

</div>

Hello, are you sure planes don’t get lit properly? I converted the procedural mesh to a static mesh, and the static mesh version seems to light properly.

---

<div class="post-metadata">

**Author:** ![Cektantwork](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/cektantwork/32/717411_2.png) [@Cektantwork](https://forums.unrealengine.com/u/Cektantwork)\
**Post date:** [November 20, 2020, 3:37pm UTC](https://forums.unrealengine.com/t/procedural-mesh-and-baked-lighting/464896/4 "2020-11-20T15:37:10Z")

</div>

How are you convert procedural in static?
