- Joined
- Dec 6, 2007
- Messages
- 2,228
Heyho, i got a little challenge for you!
I´m currently creating a kind of a fog system.
But i´m currently not very creative currently and that´s why i´d like to ask you for helping me out.
I have to determine a real every second.
No problem so far.
The real should be 0.00 at midnight (=0.00 ingame time of day ).
Up till midday to (=12.00 itod) from 0.00 itod, the real should grow until it reaches 100.00.
From 12.00 midday till 24.00/0.00 itod, the real value should decrease until it reaches 0.00 again at midnight.
I´d be great to have an exponential function to determine the real, but a linear function might help aswell.
Useful help will be honoured.
EDIT: Found a solution, a nice function, problem solved.
I´m currently creating a kind of a fog system.
But i´m currently not very creative currently and that´s why i´d like to ask you for helping me out.
I have to determine a real every second.
No problem so far.
The real should be 0.00 at midnight (=0.00 ingame time of day ).
Up till midday to (=12.00 itod) from 0.00 itod, the real should grow until it reaches 100.00.
From 12.00 midday till 24.00/0.00 itod, the real value should decrease until it reaches 0.00 again at midnight.
I´d be great to have an exponential function to determine the real, but a linear function might help aswell.
Useful help will be honoured.
EDIT: Found a solution, a nice function, problem solved.
Last edited: