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"

Directional light stops at midday in day/night cycle

Hi there. I have a day/night cycle created using this tutorial - https://wiki.unrealengine.com/Tutorial:_Time_of_Day

Here is what it looks like in my blueprints -

alt text alt text alt text

It works when the sun speed is set high enough, usually 2 digits like 10 or 30, but when set to something like 3 or .3 to which the sun speed is a lot more realistic, it stops rotating at midday for a certain amount of time. When set to 3 I've found it stops for about 30 seconds. Lower than 3 (e.g: 0.3) can stop it completely until i move the camera and character around, maybe look at the sky and stuff. This leads me to believe it has something to do with the frames updating?

If someone could shed some light on the matter i would be extremely grateful.

if you need a video demonstration i can gladly provide one for visual representation of the issue.

Thanks in advance!

Product Version: UE 4.19
Tags:
screenshot-1.png (204.1 kB)
screenshot-2.png (125.5 kB)
screenshot-3.png (210.5 kB)
more ▼

asked Jun 11 '18 at 02:11 PM in Blueprint Scripting

avatar image

the_tubby1
28 7 7 12

avatar image the_tubby1 Jun 11 '18 at 04:57 PM

It also stops at midnight when it starts with a night time cycle. sun height is 1 at midday and -1 at midnight

avatar image mightyenigma Jun 12 '18 at 05:58 PM

Maybe it can only cover a 180-degree vertical arc. Maybe you have to move it from -1 to 1 then rotate its yaw and then go 1 back to -1 on the other side?

avatar image the_tubby1 Jun 12 '18 at 06:27 PM

I don't know exactly how I would do this without effecting the cycle...

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

2 answers: sort voted first

So the best i could do to fix this is to completely redo the Cycle. I stopped using the level blueprint to do it and instead did it through the use of an actor in the world and timelines which has public references to my fog, sun, skysphere, post process volume and skylight for everything i needed to do.

more ▼

answered Jun 13 '18 at 05:03 PM

avatar image

the_tubby1
28 7 7 12

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

Okay so I just found a weird work around for this. I left everything in the Level Blueprint and did exactly what the tutorial said to do and it got stuck just like you said.

So I just changed the Make Rotator node in your first picture from the Y input to the Z input. This makes the Sun rotate around the horizon. Then I changed the Y Rotation of my Direction Light -100 which lined it back up but a bit off and it works at any speed. Something with the perfect 90 degrees makes it stop it seems. Not sure if i even had to flip the Make Rotator to Z.

more ▼

answered Jan 11 '19 at 06:04 AM

avatar image

AndyHitch
6 1 4

avatar image mightyenigma Jan 11 '19 at 06:47 AM

Oh so it might have beem gimbal lock and it missed the gimbal lock condition when it moved faster because it skips past the perfect 90 degrees :)

(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