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. 

Why the shadows appear wavy?

Hey devs,

I've a simple level setup to test out lighting. It consists of a stationary directional light, a cube as the floor and a test building mesh.

Whenever I build light in my level which is set to production quality. My shadows are getting distorted and wavy.

Before Light Build alt text

After Light Build alt text

LightMap Resolution for both the building and the floor is 64.

Directional Light is at default setting except for the intensity, which is set to 5.

The result is same for a simple cube as well. Below are the results

Before alt text

After alt text

Why is this happening? How can I fix this?

Thanks.

Product Version: UE 4.11
Tags:
more ▼

asked Apr 06 '16 at 07:07 AM in Rendering

avatar image

Amaresh
208 29 35 44

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

2 answers: sort voted first

Hi!

Resolution of Lightmap 64 is very low. Try to increase it to 256 or higher.

Both objects has Lightmap 64

alt text

Both objects has Lightmap 256

alt text

If you have more questions about lights and shadows, that please read this troubleshooter.

https://wiki.unrealengine.com/LightingTroubleshootingGuide

lightmap_lo.png (330.7 kB)
lightmap_hi.png (424.4 kB)
more ▼

answered Apr 06 '16 at 10:06 AM

avatar image

svv3dUDN
8.4k 254 41 399

avatar image Amaresh Apr 06 '16 at 11:00 AM

@svv3dUDN Thanks man...It worked...but I want this for a mobile game...will it be ok to have a lightmap resolution of 256?

It might not affect the performance as the shadows are static.

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

The answer is definitely the lightmap resolution but here's a slide show that I made to demonstrate what is actually causing the problem and a solution: alt text

Short answer is; Your "floor mesh" is just too large for a low res lightmap. Scale the mesh down to 1/4 the size and then build it out of 16 meshes instead (4x4). You should always build your levels out of several smaller static meshes instead of scaling meshes to fill the entire scene. As you scale a mesh up, it requires a higher lightmap resolution to give you the same visual fidelity. The higher lightmap resolution will affect performance on mobile more than instancing your floor mesh will.

more ▼

answered Feb 05 '17 at 01:38 AM

avatar image

TorQueMoD
1.2k 82 112 145

(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