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"

How to change the Lightmap step distance for the indirect lighting cache ?


On my current project the default distance of Lightmass for generating the Indirect Lighting Cache samples doesn't suit my level ( https://docs.unrealengine.com/latest/INT/Engine/Rendering/LightingAndShadows/IndirectLightingCache/index.html ). The samples are too far away from each other producing incorrect lighting interpolation on my dynamic actors.

I dug a bit inside the source code but unfortunately I didn't found something that could have helped me. Is there an hardcoded distance somewhere of maybe a console variable to change this default step distance ?

Product Version: Not Selected
more ▼

asked May 18 '14 at 04:00 PM in Rendering

avatar image

260 22 27 37

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

2 answers: sort voted first

Nevermind, I found it ! :)

The values that I was looking for were stored inside the BaseLightmass.ini file (I suggest creating a custom DefaultLightmass.ini file inside your project).


Those are my edited values, the variables names are mostly self-explanatory. FirstSurfaceSampleLayerHeight define the first sample height from the ground, then SurfaceSampleLayerHeightSpacing the incremented step size for the number of additional samples (defined by NumSurfaceSampleLayers).

For the horizontal spacing, you simply need to change SurfaceLightSampleSpacing.

alt text

cache_spacing.jpg (67.3 kB)
more ▼

answered May 18 '14 at 04:24 PM

avatar image

260 22 27 37

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

In 4.5 there will be a new property VolumeLightSamplePlacementScale in the world settings to do this, so you don't have to edit ini's.

more ▼

answered Sep 16 '14 at 02:09 AM

avatar image

1.9k 31 11 72

(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