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"

Can't refresh skysphere material after moving light

When I select direct light as an actor used for the skysphere and I move the light, I can't refresh the material (sun stays at the same position and different from the direct light). I would like the sun light to automatically follow the direct light.alt text

Product Version: UE 4.10
screenshot.jpg (261.9 kB)
more ▼

asked Mar 22 '16 at 12:50 AM in Using UE4

avatar image

97 9 10 26

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

2 answers: sort voted first

Hi Aravil01,

In this particular BP you will need to hit the Refresh Material checkbox for the Sky Sphere to update the location of the Directional Light. When this button is hit it will update the material of the sky sphere to set the sun disk where the directional lights position would be.

If you need something like a moving sun in your game for day/night cycle there are a number of tutorials on YouTube and a free project I have here for download after setting up Gregdumb's version from the UE4 Wiki and making some adjustments. https://forums.unrealengine.com/showthread.php?56777-TUTORIALS-Photons-Be-Free-Mini-tutorials-and-other-curiosities&p=209224&viewfull=1#post209224

I hope this helps.


more ▼

answered Mar 22 '16 at 02:44 PM

avatar image

Tim Hobson ♦♦ STAFF
48.7k 888 103 880

avatar image Aravil01 Mar 22 '16 at 03:52 PM

the problem is that the checkbox doesn't react (I can't click it), but I will look at the link you provided. Thanks

avatar image Tim Hobson ♦♦ STAFF Mar 22 '16 at 04:49 PM

The checkbox will not stay checked. As soon as it's clicked it just refreshes the material for the Sky Sphere. I should have been clear about that. So if you rotate the light. and hit the Refresh Material box it will simply update the material to move the position of the sun disc to the new location.

avatar image Aravil01 May 17 '16 at 07:16 PM

after several attempts, it finally works

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

I know it started working for you but i have a trick you can use if you run into this problem again.

you have to link your sky sphere to your directional light. to do this look under the default menu in the details panel, underneath the refresh material button. there you will see directional light. click the eyedropper symbol next to the magnifying glass. then click on the directional light you want it to link to.

Once you have done that, click the refresh material button again and everything should work out just fine. :)

more ▼

answered May 31 '19 at 05:54 AM

avatar image

1 1 2

(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