LightMapping bake button

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/
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


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/
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

Hi @Nofil_khan,

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

image

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

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

Any Updates? @Leonidas

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

1 Like

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.

2 Likes

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

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

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.

2 Likes

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

This seems related to this: Lightmap will lose shadow data when bake it again

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

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

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.