Jump to content

URP time of day - Sun/Moon odd behaviour


RobsonSwiss

Recommended Posts

Hi, 

 

I'm experiencing a strange issue when turning on time of day, the size of the Sun/Moon changes in a cycle so if you would imagine it starts off small, then grow to large, jumps back to small and repeats. This causes a flicker, of course the faster the time of day moves the faster the flicker, but if matching real-time it's a fairly high frequency. 

 

Is this a known issue, is it related to Gaia or Unity? Any idea how to fix it? I've tried setting sun size and convergence size to a fixed value to see if that was the cause but it made no difference.

 

I'm using 2022.2.1f1

Link to comment
Share on other sites

Honestly no its been a long time since I have seen it, I just googled it and found it through Unity's known issues. 
It has to do with the sharpness of the light change (12:59 to 00:00).
By adjusting the tod profile you can make so it doesnt do that by cutting out that time zone. 

Great example of this would be Escape from tarkov (if you have heard of this game), made by Unity they have the same issue. 
 

Link to comment
Share on other sites

Thanks, I don't think we are talking about the same issue. I can reproduce it manually when changing the minutes only the slightest. Is there a way to upload pictures here? 

Link to comment
Share on other sites

Okay so I've looked at the cycle. The distinct jumps happen at a little bit of an inconsistent timeframe if we look at the minute scale. But I think if we can tweak the time update to only update in specific chunks it would clean up the flickering. 

 

So the way it works is that the Sun/Moon are increased instantly from smallest to largest size, then reduced back to the smaller size a little slower, but it's never smooth, always in steps with dead areas between where the size doesn't change. To be more clear, in the afternoon at 16:30ish here is the exact times it jumps from large size to small size:

 

29.8231
30.1156 
30.4089 

 

Each time the increment is exactly the difference between the previous steps + 0.0008

 

In the morning at 7:30ish it looks different

30.0018
30.3046
30.6078

 

So my thinking is if we only update in minute sizes of 0.3 there will be a flicker here and there but for the most part is should be clean. Can you please babysit me with which script controls the TOD settings? I'll give it a go and see if I can sort it out.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Tell a friend

    Love Canopy - Procedural Worlds? Tell a friend!
  • Need help?

    We work with some of the biggest brands in global gaming, automotive, technology, and government to create environments, games, simulations, and product launches for desktop, mobile, and VR.

    Our unique expertise and technology enable us to deliver solutions that look and run better at a fraction of the time and cost of a typical project.

    Check out some of our non-NDA work in the Gallery, and then Contact Us to accelerate your next project!

×
×
  • Create New...