tamashutter.blogg.se

Realistic colors and real nights
Realistic colors and real nights













realistic colors and real nights

Now that we have that number, we can start scripting. This is calculated byġ440/(“Day length in seconds”/ “time between updates in seconds”)=TimeShift Once we found these numbers, we are going to use those numbers to calculate our timeShift, or how long many “minutes” you want to progress every time you update the time.

realistic colors and real nights

In my example, I want my day to take 15 seconds and I am going to want it to update 30 times a second, though in an actual game I would be updating no more then once per second. There are several ways of doing this, but I have opted to use the old fashion GetMinutesAfterMidnight+1 technique.īefore we can do this though, we need to know both how long we want one day to take, and how often we want to adjust it. The most basic role a day/night script can have it to advance the time. Note3:I have also made the finished script available here to allow easier following along with this guide: Changing the time of day If for some reason shadows are an issue for your game, you can still get very good results by using voxel. Note2: While you can apply this tutorial to compatibility, I would defiantly recommend using shadow map to get the most out of the game visually. Note1: I am not a lua scripter, but I did my best to strike a balance between readability and optimization. Instead my goal is to hopefully show you how to keep your lighting at that standard, regardless of the time. Im not going to show you how to make good looking lighting, this tutorial does a far better job then I could.

realistic colors and real nights realistic colors and real nights

While many games will spend the time making there lighting look good using all the features available, it seems that as soon as the game incorporates any form of day cycle, the lighting reverts to basically stock settings. Im not going to kid myself and say that Roblox’s lighting engine is amazing, but its vastly improved over what we had even a few years ago to the point where you can make things that look “good”, and not just “good for a roblox game”. Of the various tools available to make a game look better, lighting is amongst the most powerful.















Realistic colors and real nights