Baking lights

Hello, can anybody help me with problem about baking the lights. I have a few tree prefabs but I can't bake lights for all of them. All trees are marked as static (lightmap static), also they are marked Cast Shadows in Mesh Render. A few tree prefabs I have created by duplicating other prefab, than I edited those...

The Console is telling this: "Secondary UV set on Mesh is incorrect. Lightmapper needs UVs inside the [0,1]x[0,1] range. Skipping this mesh... Choose the 'Generate Lightmap UVs' option in the Mesh Import Settings or provide proper UVs for lightmapping from your 3D modelling app"... How can I fixe UVs for tree prefabs, which are created in Unity3D?

Thank you very much, for help Jirkaalt text

more ▼

asked Aug 19, 2013 at 08:33 AM

avatar image

1 1 2 3

I Have just the same problem. If you found a solution please tell me, I'm going crazy!

Jul 28, 2014 at 08:47 PM raflus85
(comments are locked)
10|3000 characters needed characters left

1 answer: sort oldest

Check the following! Are the trees casting a shadow (imported models, like an .OBJ file or so)? Imported models, do have a setting for Generate Lightmap UV:s.

Do this: - Click on the model (that cast shadows) in the Project Window! - Check the Inspector Window, under Model - There you should find a checkbox for Generate Lightmap UVs

If the tree is (for example created in Unity) it doesn´t have this option to be checked.

Now do the same thing and check if the tree that doesn´t have a shadow, if it has the option checkbox for Generate Lightmap UVs or not.

I don´t know of a way (in the Free Unity version) to have shadows from trees made by Tree Creator. If someone does, plz give us help.

more ▼

answered Aug 30, 2013 at 09:52 AM

avatar image

0 1 1788 5

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments



asked: Aug 19, 2013 at 08:33 AM

Seen: 1015 times

Last Updated: Jul 28, 2014 at 08:47 PM