Need help baking

I am (relavitly) new to Blender. For months now, I’ve been trying to figure out how to bake this particual lighting into my scene. But despite help from the developer of the Blosm plug-in, I’m at the end of my rope. So as per his suggestion, I’m asking for help here.

I’m trying to download landscapes using the blosm plug-in. Once downloaded I want to add some custom lighting to give my scene some ambiance. But crucially, I need to be able to bake in the lighting in .glb format.

I am able to do this with all the objects I want, but no matter what I do I can’t get the lighting to bake to the trees properly.

The trees I want to bake are the trees downloaded from open streetmap. Now here the thing: as long as I don’t bake the lighting everything exports no problem. But as soon as I try and bake lighting the trees simply don’t work.

Now the weird thing is, if I open a new file in blender file, add a plane with a texture and then place the same trees I downloaded from open streetmap, bake and export the trees come out fine. So there is something in the way Blosm treats the trees, or the terrain that makes exporting the trees something I simplly can’t figure out.

I have made the file available here in my google drive if anyone wants to help. Any suggestions on how to figure this out would be apprepciated. Thank you.

I see a few problems with baking the trees.

  • They are instances. That means only one of them will be bakeable and the other copies will all share the same lighting.

  • There are 2 UV sets. This means the image texture node will need to have its UVs specified in the material editor before the bake.
    bake_UVs

  • The UVs used for the bake will need to be unwrapped and laid out in a cleaner way. Right now, they cover only a tiny fraction of the texture.