I just downloaded Unity 5, and its been a good 8 months or so since I have used unity, so im def a little rusty. I am trying to bake my lightmaps and they are coming out kind of werid. I remember this happening before, is there something that im forgetting to turn on? All of my objects have static turned on
As you can see from the image attached, there are no shadows being cast, and some of the objects are coming out black
To my knowledge the UV’s were set up correctly. I did it all on Maya. I remember that when i originally set up the scene i was having this issue. I was told that in Unity 5 you can bake the lightmaps in the non pro version, is this correct?
It would be great if you could show a screenshot of the lighting window, but with the object tab selected and the Baked Intensity view mode (and the same object in the scene selected). This way, you can see the UVs overlaid on the lightmap.
I have attached a screen shot of the lighting and object windows, with the object selected in the environment after the light was baked. There is no shadows at all, and also the buildings on either side of it getting darker with no shadows
I was going to make a topic about lightmapping as I don’t know if Unity does things like Unreal 4 where you need to make a 2nd UV channel that the engine would bake light maps to. Can anyone confirm if this is the required way of adding my own lightmap uv’s?
If this is true then I think the problem you might be having is you don’t have padding around your uv’s which can cause shadow issues and seams if thats whats happening. If what I asked is true then that could be the problem, usually you want 2-4px padding between each UV island or else things can bleed onto each other. Anyways hopefully someone can answer my question out since I’m not sure how to use my own lightmap uv’s for accurate results.
well the thing with this project is that it was all ready working. This is a project from about a year ago, and unfortunately my company decided to move away from unity. I reopened it as im trying to get familiar with it again.
When i originally set up the project i ran into the same issue. I remember that it was a real simple fix, but what that fix is I cant remmeber.
So I was able to successfully bake lightmaps all the time in the environment pictured above in unity 4 pro, just cant get it working yet in Unity 5
i went in to project settings and made sure shadows were turned on, they were off by default. I have attached my shadow settings
I also remember a friend telling me that sometimes making sure that the player setting was set to PC/mac
I was reading in the unity 5 manual that issues with shadow could also imply that your hardware cant take it, I have a late 2011 Macbook Pro, im 90% that I have had unity running on here just fine before
I changed the shader to diffuse and the shadows came in.
I was under the impression that Mobile/unlit was to be used for mobile platforms and that it worked with lightmaps, but anways thanks for all your help and all the back and forth!
There is a version of the Unlit shader that works with lightmaps (who came up with that counter intuitive name?) and it is broken in 5.0.0. The good news is that I fixed it and the fix should be available in 5.0.0p4 soon.