Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Weird shadows and lighting on blender made static mesh

Really weird shadows and lighting are appearing on a simple blender made Static Mesh, I have no idea why. I've been searching the forums for hours, and took all the steps I can to remove the shadows like --

  1. Extra UV Channel for lightmap information.

  2. Using Calculate Normals option while importing the mesh.

  3. Unwrapping using lightmap pack option in Blender.

But still there are lot of weirdness going on as shown in the pictures below -> Before Building lighting:

Before Building Lighting

After building lighting:

After Building

Here is the blend file used. I have no idea whats going wrong in my mesh, Please explain the cause and how to fix the problem. Thank You!

Product Version: Not Selected
beforelighting.png (649.9 kB)
afterlighting.png (686.9 kB)
blendfile.zip (391.6 kB)
more ▼

asked Dec 21 '14 at 07:44 AM in Using UE4

avatar image

11 2 3 5

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

you need a second uv channel on your object and lightmapCoordinateIndex should be 1, but you shouldn't use lightmap pack in blender, because it does not create enough space between the UV islands. you need to unwrap and pack the UVs manually, with a few pixels between each island, and you need to split all hard corners (90 degree angles) into separate islands, or else you will get artifacts and bleeding. the big black L shape on your roof looks like you have overlapping UVs, which is bad for lightmaps,

check this out and see if it helps: https://answers.unrealengine.com/questions/130779/how-do-i-correctly-generate-or-create-a-lightmap-f.html

more ▼

answered Dec 21 '14 at 10:18 AM

avatar image

9.6k 320 205 450

avatar image TheNoob Dec 21 '14 at 10:45 AM

Thanks for the reply Omnicypher! I Tried to unwrap UVs as you said, it would be great if you can inspect my blend file and tell if the light map is correct or not. And how can I make sure that my lightmapCoordinateIndex is one, Is that a setting in UE4 or blender? How can I set which UV Channel to Use for lightmap information? Also, Is blender the right program to UV unwrap things, or I should use some other program like 3ds max or C4D?? Here is the file.

blendfile.zip (397.7 kB)
avatar image ScottSpadea Dec 21 '14 at 08:20 PM

if you have 3ds max, its automatic uv packing is better than blender, because it has padding, but you still should hand pack your UVs, so either software works just as well as the other, and blender's unwrap is faster than 3ds max's pelt unwrap, because you don't have to relax by edges/faces/centers manually, it just does it automatically when you hit unwrap.

in UE4, right click on your object, and choose "Edit House_01" or whatever its called, and it will open the static mesh editor. in there, you can search for lightmapCoordinateIndex. lightmapCoordinateIndex IS the way you choose wich UV channel to use for light maps.

avatar image ScottSpadea Dec 21 '14 at 08:40 PM

i looked at your blend file. your UV islands are way too small, and your geometry is very wasteful. your window frames and shutters have faces on the insides that no one will ever see, and they are wasting space on your UVs. you should delete those faces, and turn the corner edges of your window shutters into seams so it will unwrap nicely. after you unwrap 1 window, you can copy it around the house, then move their UVs to make sure each copy is not overlapping. if you don't want to delete those inside faces for some reason, you should go through each face that will not be seen in game, and collect all of them, shrink them down and shove them into the corner, taking up less than a pixel. if they overlap it doesn't matter, because no one will see them.

avatar image ScottSpadea Dec 21 '14 at 08:49 PM

put this image in your UV editor. anything you want to have lighting information needs to be at least as large as a pixel on this grid, and padding between islands needs to be at least as wide as a pixel on this grid. this is for a lightmap resolution of 64:

alt text

grid_62.png (268 B)
avatar image TheNoob Dec 23 '14 at 05:06 AM

Ah, It finally seems to work out for me. Thank you so much for the help. :)

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

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

Answers to this question