x

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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Is 64 the lowest lightmap resolution we should use?

I created a square plane. Its lightmap UV is just a box spanning the UV space, snapped to the edges. Due to the sheer simplicity of the mesh, I thought that using a lightmap resolution of 4 would be perfectly fine, but when I baked the lighting the results were horrendous; two identical planes put beside one another looked like they had two different colours. This was present even in production quality lighting.

Thus I cranked up the resolution until I reached 32, which gave a perfectly smooth output in just preview lighting--but only when the planes were 'outdoors' (indoors being them facing inwards like in a room), whereas indoors planes required a resolution of 64. The part I don't understand is why this matters. There is literally nothing going on in the mesh so it's just one UV island--perfectly square for the LM, and yet I get bad results with lower resolutions. Does those planes really need 64 pixels? I've always thought that the resolution should be whatever is lowest that can fit in all the islands with padding and etc, but am I misunderstanding lightmaps in that I should be giving large areas a larger lightmap, no matter how simple they are?

Product Version: UE 4.12
Tags:
more ▼

asked Sep 19 '16 at 04:12 AM in Rendering

avatar image

sgp
166 32 41 56

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

1 answer: sort voted first

Hi sgp,

You'll want to have a look at our troubleshooting wiki for lighting here: https://wiki.unrealengine.com/LightingTroubleshootingGuide

For the specific issues you've run into look at these sections.

Lightmap Resolution: https://wiki.unrealengine.com/LightingTroubleshootingGuide#Lightmap_Resolution_.2F_Shadow_Quality

Shadow Seams/Shading Differences with indirect lighting: https://wiki.unrealengine.com/LightingTroubleshootingGuide#Shadow_Seams.2FShading_Differences_with_Indirect_Lighting

"I've always thought that the resolution should be whatever is lowest that can fit in all the islands with padding and etc, but am I misunderstanding lightmaps in that I should be giving large areas a larger lightmap, no matter how simple they are?"

Lightmap resolution is dependent on the efficient use of the 0,1 UV space when packing the lightmap UV along with the size of the mesh in the scene. Having a large mesh with a low lightmap resolution will generate low quality shadowing. The idea is to keep the lightmap resolution relative to other surfaces to make sure to keep it low enough for your needs and quality bar so that the lightmap density is consistent for the scene. Otherwise, it can break the consistency of the bake. Use the Lightmap Density view mode to check this.

-Tim

more ▼

answered Sep 19 '16 at 03:10 PM

avatar image

Tim Hobson ♦♦ STAFF
48.8k 887 101 878

(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