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. 

Unable to generate indirect light rays on almost any level

On any level with more than one or two meshes and/or some custom materials, Lightmass reports:

Couldn't gather the requested number of indirect photon paths! 0 gathered

and fails to bake any indirect lighting. I've tried numerous times to reset every possible lightmass settings, but I can't find any reason behind this.

Furthermore, it appears to always work with built-in engine materials, and sometimes it works with any built-in engine material and one custom material, but will not work with one or two custom materials reliably.

To test this, I even created a stupidly simple level with two planes 300 units apart, facing each other, representing a floor and a ceiling. I placed a bright spotlight facing the floor. Additionally, I created a blank material with its base color set to white.

I should expect to see the spotlight reflected off the pure-white ground and onto the ceiling, back again, and so forth.

However, I don't see that. I see nothing, because it gathers zero indirect photon paths, for some reason. If I revert all meshes back to their default WorldGridMaterial or BasicShapeMaterial, it magically works again.

I've built lighting so many times over the past two days trying to figure this out before a deadline that I can't remember if I had any successful lighting builds after updating to 4.20, but for the same levels this issue never occurred in 4.19.

Further notes:

  • CPU: AMD Threadripper (in case this is an issue with Lightmass using Intel-specific instructions)

  • UE4 is set up to use forward rendering and VR.

  • These failures behave the same with or without using normals for static lighting option.

  • Fails with or without material layers enabled. I had original thought that was the issue.

  • All Lightmass options are default

  • Fails with or without planar reflections

  • Fails with or without high-quality reflections

  • Fails with or without two-sided lighting/shadows

I cannot think of a reason for this. This is absurd.

Product Version: UE 4.20
Tags:
more ▼

asked Jul 29 '18 at 10:58 AM in Rendering

avatar image

novacrazy
11 1 3 7

avatar image novacrazy Jul 29 '18 at 12:35 PM

Upon further investigation, it appears that even touching material layers permanently breaks static lighting builds on all levels.

avatar image DanDC1 Jul 29 '18 at 08:25 PM

Must you use forward rendering? It may work without it enabled. Though after updating to 4.2 I too cannot see any indirect bounces, even without forward rendering, it's pretty annoying. Perhaps you must use stationary lights. Meanwhile, I suggest a sky light with shadows turned off

avatar image novacrazy Jul 30 '18 at 02:30 AM

It's a VR project, so forward rendering is highly preferred, if not required. Still, forward or deferred shouldn't matter at all for static lighting, and I only mentioned it because it changes how shaders are compiled and could influence the material export process to Lightmass.

avatar image DanDC1 Jul 30 '18 at 07:48 PM

Try updating to 4.20.1, they addressed an issue with forward rendering, it might just work now. If it doesn't, could you please post some screenshots? Mostly interested in Lighting only mode

avatar image novacrazy Jul 31 '18 at 10:14 PM

I did update to 4.20.1, and no changes. I don't think they even touched the code related to static lighting. Also, as far as screen shots, that's kind of pointless. It's the same as either setting the indirect bounces to 0, or using movable lights (but with the resolution of the lightmaps).

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

0 answers: sort voted first
Be the first one to answer this question
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