# LightMapping bake button

**URL:** <https://forum.playcanvas.com/t/lightmapping-bake-button/32190>\
**Category:** Help & Support\
**Tags:** graphics\
**Created:** [July 15, 2023, 4:24pm UTC](https://forum.playcanvas.com/t/lightmapping-bake-button/32190 "2023-07-15T16:24:14Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nofil\_khan](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/nofil_khan/32/24423_2.png) [@Nofil\_khan](https://forum.playcanvas.com/u/Nofil_khan)\
**Post date:** [July 15, 2023, 4:24pm UTC](https://forum.playcanvas.com/t/lightmapping-bake-button/32190/1 "2023-07-15T16:24:14Z")

</div>

I was trying light mapping in play canvas and really confused as I cannot find the light bake or mapping button  
I followed this page  
[https://developer.playcanvas.com/en/user-manual/graphics/lighting/runtime-lightmaps/](https://developer.playcanvas.com/en/user-manual/graphics/lighting/runtime-lightmaps/)  
but after all the settings still unable to find light mapping button the final button to make light maps

My second question is why Lightmaps imported from external tools like blender looks good in view mode but in render look very dim

here are images

 ![image](https://forum-files-playcanvas-com.s3.dualstack.eu-west-1.amazonaws.com/original/3X/c/e/cef3236440fff781921c1fcf3c070e41c5cef8ae.jpeg)  
 ![image](https://forum-files-playcanvas-com.s3.dualstack.eu-west-1.amazonaws.com/original/3X/5/3/53020aeedc2d9c0a51d7f9099fd602630665ab2c.jpeg)

---

<div class="post-metadata">

**Author:** ![Nofil\_khan](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/nofil_khan/32/24423_2.png) [@Nofil\_khan](https://forum.playcanvas.com/u/Nofil_khan)\
**Post date:** [July 18, 2023, 2:19pm UTC](https://forum.playcanvas.com/t/lightmapping-bake-button/32190/2 "2023-07-18T14:19:07Z")

</div>

**I posted this earlier but got no replies !**

**Again posting this**

I was trying light mapping in play canvas and really confused as I cannot find the light bake or mapping button  
I followed this page  
[https://developer.playcanvas.com/en/user-manual/graphics/lighting/runtime-lightmaps/](https://developer.playcanvas.com/en/user-manual/graphics/lighting/runtime-lightmaps/)  
but after all the settings still unable to find light mapping button the final button to make light maps

My second question is why Lightmaps imported from external tools like blender looks good in view mode but in render look very dim

here are images

 ![image](https://forum-files-playcanvas-com.s3.dualstack.eu-west-1.amazonaws.com/original/3X/7/1/7153b6466548874741083cc0a1fb618bdd3f2f0f.jpeg)

 ![image](https://forum-files-playcanvas-com.s3.dualstack.eu-west-1.amazonaws.com/original/3X/f/7/f7c0989222efdf45c1bdfe42c5129e9b394bbf82.jpeg)

---

<div class="post-metadata">

**Author:** ![Leonidas](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/leonidas/32/6495_2.png) [@Leonidas](https://forum.playcanvas.com/u/Leonidas)\
**Post date:** [July 18, 2023, 2:54pm UTC](https://forum.playcanvas.com/t/lightmapping-bake-button/32190/3 "2023-07-18T14:54:16Z")

</div>

Hi @Nofil_khan,

If you are asking about the Autobake button, you can find it on the left sidebar:

![image](https://forum-files-playcanvas-com.s3.dualstack.eu-west-1.amazonaws.com/original/3X/0/7/07e29cc579f8237793b9e1dcb9395d93996fa8f1.png)

PS Please don’t open new threads about the same topic, post on the same one.

---

<div class="post-metadata">

**Author:** ![Nofil\_khan](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/nofil_khan/32/24423_2.png) [@Nofil\_khan](https://forum.playcanvas.com/u/Nofil_khan)\
**Post date:** [July 18, 2023, 5:50pm UTC](https://forum.playcanvas.com/t/lightmapping-bake-button/32190/4 "2023-07-18T17:50:19Z")

</div>

Okay, thanks, man!

But I used the same button but again issue is the same here.  
I baked the light . and again issues are same,the light is dim in render viewport

![image](https://forum-files-playcanvas-com.s3.dualstack.eu-west-1.amazonaws.com/original/3X/f/0/f07de611aaee267e47f1460aee1c03266e726ca3.png)

 ![image](https://forum-files-playcanvas-com.s3.dualstack.eu-west-1.amazonaws.com/original/3X/f/c/fc5f7192867c39770192844044771c9eaff53aa8.jpeg)

---

<div class="post-metadata">

**Author:** ![Nofil\_khan](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/nofil_khan/32/24423_2.png) [@Nofil\_khan](https://forum.playcanvas.com/u/Nofil_khan)\
**Post date:** [July 19, 2023, 7:36am UTC](https://forum.playcanvas.com/t/lightmapping-bake-button/32190/5 "2023-07-19T07:36:41Z")

</div>

Any Updates? @Leonidas

---

<div class="post-metadata">

**Author:** ![mvaligursky](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/mvaligursky/32/11681_2.png) [@mvaligursky](https://forum.playcanvas.com/u/mvaligursky)\
**Post date:** [July 19, 2023, 8:03am UTC](https://forum.playcanvas.com/t/lightmapping-bake-button/32190/6 "2023-07-19T08:03:38Z")

</div>

I just set up simple lightmapping scene here, and it seems to work fine for me in all cases. Does this work for you?

If not, see what the difference is in your project perhaps in the setup.

[https://playcanvas.com/project/1101715/overview/lightmapping-test](https://playcanvas.com/project/1101715/overview/lightmapping-test)

 ![Screenshot 2023-07-19 at 09.03.24](https://forum-files-playcanvas-com.s3.dualstack.eu-west-1.amazonaws.com/original/3X/2/5/25ef646063a70b2f7829a6833159aa8740f46717.jpeg)

---

<div class="post-metadata">

**Author:** ![mvaligursky](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/mvaligursky/32/11681_2.png) [@mvaligursky](https://forum.playcanvas.com/u/mvaligursky)\
**Post date:** [July 19, 2023, 8:13am UTC](https://forum.playcanvas.com/t/lightmapping-bake-button/32190/7 "2023-07-19T08:13:03Z")

</div>

One more idea - are your meshes set to be preloaded? If not, and they’re not loaded in the first frame when the baking takes place, you might need to trigger the baking manually from script when those are loaded.

---

<div class="post-metadata">

**Author:** ![Nofil\_khan](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/nofil_khan/32/24423_2.png) [@Nofil\_khan](https://forum.playcanvas.com/u/Nofil_khan)\
**Post date:** [July 19, 2023, 10:19am UTC](https://forum.playcanvas.com/t/lightmapping-bake-button/32190/8 "2023-07-19T10:19:39Z")

</div>

@mvaligursky how to trigger baking,and would it on every material?

---

<div class="post-metadata">

**Author:** ![Nofil\_khan](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/nofil_khan/32/24423_2.png) [@Nofil\_khan](https://forum.playcanvas.com/u/Nofil_khan)\
**Post date:** [July 20, 2023, 2:13pm UTC](https://forum.playcanvas.com/t/lightmapping-bake-button/32190/9 "2023-07-20T14:13:18Z")

</div>

Updates @mvaligursky?  
actually in your project! I saw that the light is still there but in my case I delete the object as like in other software light data is already baked and need it no more ,is that causing the trouble

@Leonidas

---

<div class="post-metadata">

**Author:** ![mvaligursky](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/mvaligursky/32/11681_2.png) [@mvaligursky](https://forum.playcanvas.com/u/mvaligursky)\
**Post date:** [July 20, 2023, 2:30pm UTC](https://forum.playcanvas.com/t/lightmapping-bake-button/32190/10 "2023-07-20T14:30:46Z")

</div>

The baking takes place at runtime, so when you run the game, the light needs to be there as its used to bake it on the first frame.  
We don’t bake and store textures. You can bake externally in Blender and bring in your lightmaps if you want. But if you bake in PlayCanvas, the light needs to stay, but be configured for baking instead of realtime light. Or at least hybrid, where its used to bake some meshes (building) but also used at realtime for characters.

---

<div class="post-metadata">

**Author:** ![Seb\_Hirsch](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/seb_hirsch/32/34455_2.png) [@Seb\_Hirsch](https://forum.playcanvas.com/u/Seb_Hirsch)\
**Post date:** [October 11, 2024, 12:42pm UTC](https://forum.playcanvas.com/t/lightmapping-bake-button/32190/11 "2024-10-11T12:42:01Z")

</div>

Hi The Scene looks like this on my machine, after baking.  
I can’t seem to get properly baked lightmaps. Any Idea?

 ![image](https://forum-files-playcanvas-com.s3.dualstack.eu-west-1.amazonaws.com/original/3X/8/5/850f6e5c9fea5bd482770dd84b43cb4e56c3fa8e.png)

---

<div class="post-metadata">

**Author:** ![mvaligursky](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/mvaligursky/32/11681_2.png) [@mvaligursky](https://forum.playcanvas.com/u/mvaligursky)\
**Post date:** [October 11, 2024, 1:25pm UTC](https://forum.playcanvas.com/t/lightmapping-bake-button/32190/12 "2024-10-11T13:25:10Z")

</div>

This seems related to this: [Lightmap will lose shadow data when bake it again](https://forum.playcanvas.com/t/lightmap-will-lose-shadow-data-when-bake-it-again/37883)

---

<div class="post-metadata">

**Author:** ![Seb\_Hirsch](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/seb_hirsch/32/34455_2.png) [@Seb\_Hirsch](https://forum.playcanvas.com/u/Seb_Hirsch)\
**Post date:** [October 11, 2024, 1:31pm UTC](https://forum.playcanvas.com/t/lightmapping-bake-button/32190/13 "2024-10-11T13:31:09Z")

</div>

Maybe, but the difference is, that here the light map never looked correct. In the other example, the shadow data get’s lost, when baked a second time. Here it’s wrong the first time.  
[https://playcanvas.com/editor/scene/1798748](https://playcanvas.com/editor/scene/1798748)

---

<div class="post-metadata">

**Author:** ![mvaligursky](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/mvaligursky/32/11681_2.png) [@mvaligursky](https://forum.playcanvas.com/u/mvaligursky)\
**Post date:** [October 11, 2024, 1:38pm UTC](https://forum.playcanvas.com/t/lightmapping-bake-button/32190/14 "2024-10-11T13:38:48Z")

</div>

Can you tried the scene from the other thread - does that work for you on the first bake?

---

<div class="post-metadata">

**Author:** ![jack\_ma](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/jack_ma/32/30302_2.png) [@jack\_ma](https://forum.playcanvas.com/u/jack_ma)\
**Post date:** [October 12, 2024, 1:25am UTC](https://forum.playcanvas.com/t/lightmapping-bake-button/32190/15 "2024-10-12T01:25:20Z")

</div>

When you set ‘Lightmapper Auto Bake’ to true. (In SETTINGS → EDITOR-\>‘Lightmapper Auto Bake’ )  
It will bake at the start of the app automatically. So when you bake it by script it’s the second time by default. Also, lightmap will not work well with batch group.
