• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] A foggy matter - [Fog question]

Status
Not open for further replies.
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.
 
Last edited:
Status
Not open for further replies.
Top