• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Trigger] A foggy matter - [Fog question]

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