|
Hi, Edit: Written in java. I'm working on a day/night system and I'd like the transition time to be based off the daylength input. The whole system is in sync with the daylength speed so if the daylength speed is set at 10 it's a 10 second day and so forth. How can I have the timeOfDay transition according to the daylength speed? I need it to be consistently transitioned at whatever speed the days are. Maybe a transition time similar to Skyrim's based off a 24 minute day, then if the speed is set to a 1 minute day then the transitions will be the same, but just sped up. Hopefully I explained it well enough. How can I do this? Here's some of what I've coded you can base it off that.
(comments are locked)
|
|
This is what I came up with. Sorry if it's a bit huge, but I thought it might be useful to make it decent. I tested it and it seems to work fine. Let me know if it doesn't work correctly. My apologies, I should have mentioned it was written in java. I'm not sure how to convert it, but thank you for this though.
Mar 08 '12 at 10:46 PM
BHS
Thanks, but I already have the time counter down base off of the day length. Mine includes mintues, hours, days, months, and years. Thanks though.
Mar 08 '12 at 11:22 PM
BHS
(comments are locked)
|

In your Lerp, you are using the backgroundNightAmbientLight twice. Did you intend that?
Yes, because it's transitioning, unless that's incorrect. I'm still relatively new to programming so I could be mistaken. I've tested it and it all changes properly from day to dusk to night to dawn. I just need a way of smoothly transitioning it based on the timeofday not instantly like its doing now.