4

What is the color of the sky depending on the time?

I'm looking for a set of colors (HTML-Code), the sky has during sunrise, morning, forenoon, noon, afternoon, evening and sunset. A formula to calculate the color would be awesome.

dudas
  • 141
  • 1
  • A simple lerp (linear interpolation) between a light and dark blue would work. – Andrew Wilson Nov 13 '17 at 19:39
  • 5
    Even for a given time of day (and a fixed atmospheric turbidity), the color of the sky is different in different directions. Mitsuba uses the model of Hosek and Wilkie, which I assume is the state of the art. –  Nov 13 '17 at 21:49
  • 1
    When you say "sky" do you include clouds and the sun? Just earlier tonight part of the sky was bright pink and peach for a few minutes just before the sun went down. – user1118321 Nov 14 '17 at 05:30
  • 2
    You probably need the altitude, time of year, latitude, longitude, etc. to achieve a perfect result. For instance, there are days on the Arctic, when it's always black – Bálint Nov 15 '17 at 16:56
  • https://www.scratchapixel.com/lessons/procedural-generation-virtual-worlds/simulating-sky/simulating-colors-of-the-sky – Bálint Nov 15 '17 at 17:56
  • 1
    Are you asking about the Earth's sky? – wip Nov 23 '17 at 14:24
  • As the other comments show, there is a very wide range of possible answers here, depending on your requirements. Could you [edit] to explain what you will be using these for, and how accurate they need to be, and whether you just want shades of blue or other sky objects like clouds, stars, sun, moon? – trichoplax is on Codidact now Dec 12 '17 at 20:03
  • https://cgg.mff.cuni.cz/projects/SkylightModelling/HosekWilkie_SkylightModel_SIGGRAPH2012_Preprint.pdf – Trantor Nov 18 '19 at 11:44
  • https://www.cs.utah.edu/~shirley/papers/sunsky/sunsky.pdf – Trantor Nov 18 '19 at 11:47

0 Answers0