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"

Lighting won't update while playing preview?

Hello, its me again. :) I have a question concerning Lighting. I have a Custom Blueprint Pointlight, that I want to turn off using Blueprints (light switch) I have tried two variants so far: 1. Turning down intensity and attenuation Radius (the last is important because it determines something in my blueprint considering a light shadow mechanic) 2. Simply Destroying the Actor

First one didn't work at all - the light just stayed the same and I was still detected while walking into it. Second one deleted the Actor, but the lighting in the Engine didn't update. :/

The Point light in my blueprint is a stationary one, so it can theoretically be updated during runtime.

Is it common for the preview of UE4 not to update dynamic lighting and lighting changes? :/

Will this go away when I export the Project?

Its a bit stupid for testing purposes, and I really hope I can somehow get rid of the lighting artifacts ...

Please help ! ; _ ; Thank you in advance!

Product Version: UE 4.7
more ▼

asked Mar 01 '16 at 11:39 AM in Blueprint Scripting

avatar image

1 1 3 4

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

1 answer: sort voted first

Have a read here: Stationary lights

In short: you can only change Brightness and Color of the Stationary light. Keep in mind tho, this only affects direct lighting and everything you already baked into lightmap will stay as it was!

Generally for dynamic lights that are supposed to turn on/off you should consider Movable

more ▼

answered Mar 01 '16 at 01:47 PM

avatar image

1k 38 13 60

avatar image Young-Eagle Mar 01 '16 at 04:15 PM

Thank you! I did try it out with movable, it still didn't work. I had to turn off all prebaked lighting in the world settings ... ._. only then it wouldn't pre bake lightmaps that couldn't be changed anymore - if you have a better solution though, please let me know, I'm not a fan of having to turn off lightmaps completely.

avatar image phoboz Mar 01 '16 at 05:09 PM

Movable shouldn't be baked into lightmaps, but there might be a different light source / lightmap settings that causes that area to be lit even tho you switch the Movable light off. Is the area getting dark, as expected, if you set Visibility of that light to off in the editor?

Things to consider:

  • Check the lightmap settings

  • Check for additional light sources that would affect the area in question (this can be emissive or very bright surfaces as well!)

  • Adjust material lightmap settings

  • Switch to fully dunamic lighting, disable lightmaps completely and use real time GI instead (need to enable it in the PostProcessVolume)

The obvious disadvantage of fully dynamic is the performance cost, but for some games / scenarios it's the only way.

Edit: Just to make sure you're aware of this, lightmaps cannot be changed during the game, that's the whole point of pre-baking it in the editor, so that you do all calculations beforehand and reduce the performance impact as much as possible during play.

(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