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"

Stationary lights and static shadows

Hi,

so, i have a scene which i am using for a VR project. It contains some meshes, a landscape and foliage. I cant go full dynamic lighting since this kills the framerate completely. I cant go full static lighting since the foliage wont work correctly with it (all trees i got are much too dark then). So stationary lights for the rescue, to have dynamic lights where needed. The problem is, that for some meshes no static shadows are generated. The meshes are set to static, have "dynamic shadows" set to off and "static shadows" set to on.

Any idea? I already played around with various settings for days but couldnt find anything that works.

Cheers, Indy

Product Version: UE 4.12
Tags:
more ▼

asked Jul 20 '16 at 10:19 AM in Rendering

avatar image

indygoof
830 26 15 41

avatar image dogu189 Jul 20 '16 at 10:21 AM

Same problem

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

1 answer: sort voted first

Hey Indy,

Stationary lights, especially Direcitonal Stationary Lights, are a special breed that have the benefit of using both static and dynamic lighting depending on the actor's set mobility.

With that out of the way, stationary direcitonal lights are neither fully dynamic or fully static. What I mean by that is that is that since they use Cascaded Shadow Maps for their set dynamic shadow casting distance if you disable the dynamic lighting part of the light this does not automatically make it only a statically lit actor. The dynamic shadow casting distance will light everything within it's set distance dynamically. If an actor is set to use only static lighting it will not have any shadow casting until it is outside of the dynamic distance range. In case that was too confusing or I didn't explain it in the clearest form here is an example from a simple scene I set up.

Here is the setup for the Actors in this scene:

  • Stationary Directional Light

  • Dynamic Shadow Distance Stationary Light: 1000


  • Left Pillar

  • Default Settings


  • Middle Pillar

  • Dynamic Shadow disabled


  • Right Pillar

  • Mobility set to Movable

I set a low lightmap resolution of 32 for the Floor so that it is easier to see the transition from the higher quality dynamic shadowing to the low resolution bake of the lightmap.

alt text

I hope this helps.

Tim

more ▼

answered Jul 20 '16 at 06:35 PM

avatar image

Tim Hobson ♦♦ STAFF
48.9k 887 101 877

(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