Hello!
I have some problem with lightmapping.
What I do:
Before importing model I checked checkboxes: Swap Uv’s, Generate Lightmap UVs
I put my model into scene.
Create new layer (ex. HouseLayer)
Changed my model layer to HouseLayer.
Add to my model some point lights.
Change point lights layer to HouseLayer.
Select necessary point lights
Open Lightmapping window and start baking selected point lights.
After baking I’ve got such error:
Something went wrong in the Beast lightmapper: Job Execution Failure - Nothing to do in job This is a bug - please report it with a scene reproducing the issue. UnityEditor.DockArea:OnGUI()
I have read that this problem rises when Generate Lightmap UVs is unchecked. But in my case I checked it.
Here are some screens:
[attach=full]58028[/ATTACH
]
Thanks fow your’s answers! I am new to lightmapping so there are a lot of questions:
maybe there is another way to light my models inside without putting lights on a separate layer? I dont want to bake all terrain, I just want to bake only my house inside.
To use Lightmapping, you check Lightmap static on whatever objects you want lightmapped. If you do not want the terrain to be lightmapped ensure lightmap static is unchecked.
You can also use bake selected, select your house and use bake selected.
Thanks this really helps me, now my house lights are baked normally without any errors! My mistake was in that I choose not house but lights in it and press Bake Selected.
And one moe question: should I have to select all children components of house or just main parental house object (I have seen there are some difference between these two ways of selection and lightmapping effect).
Not sure what you mean to do, but usually when selecting the parent and setting an option such as Static, it will ask if you want to apply it to all children, which then you click yes.
If you want to Generate UV’s, you need to do it to each individual object in the Project pannel.