World sunlight map

This is an implementation using vectors. It is discussed in the article 'Math behind a world sunlight map' published at eDesign.nl. A form to render maps using custom dates and times is provided below. Also links are included to the source code of the files needed to run this example application yourself.

Set a custom date (format: yyyy-mm-dd):

Set a custom time (format: hh:mm:ss):

Generate bigger map

World sunlight map implementation using vectors by eDesign.nl
Sources: this file | map.php | sphere.class.php | vec3.class.php
Images(Source: Nasa): night_live.png | day_live.png | night.png | day.png

Also countermeasures are installed to limit cpu load to eDesign visitors only. You can see how this is done by viewing nodeeplink.php. If you want this sunlight map on your site there are two options: 1) download and install the php scripts yourself, or 2) do deeplink to this image, but this will result in a cached image (which is not guaranteed up to date).

Valid XHTML 1.0 Strict

The map

World sunlight map by eDesign.nl
Rendered: July 27th, 2024 06:21:24