Planetside Software Forums

General => Terragen Discussion => Topic started by: mr_anderson on July 30, 2015, 11:32:30 AM

Title: 24 Hour Script
Post by: mr_anderson on July 30, 2015, 11:32:30 AM
I am working on a project where we need a skybox render for every hour of the day, allowing us to use a slider in our project to change the time of the day. I was wondering if there is or a way to create a script for moving the position of the sun?
Title: Re: 24 Hour Script
Post by: TheBadger on July 30, 2015, 12:18:38 PM
you can just set up an animation and animate the sun position. I guess you would want to turn off motion blur.

Then move the sun to each place at an hour and make the animation 24 frames.
Title: Re: 24 Hour Script
Post by: paq on July 30, 2015, 12:44:49 PM
http://www.sunearthtools.com/dp/tools/pos_sun.php

If you scroll the page down, there is a little table with sun elevation + azimuth for every hour of a day  ... I suppose azimuth = heading for Terragen.
I have never used this data myself, not sure if it helps !

*edit copy/paste of the table

Date:   30/07/2015   
coordinates:   40.76, -73.984   
location:      
hour      ElevationA   zimuth
5:50:21   -0.833   64.39
6:00:00   0.82   65.96
7:00:00   11.53   75.39
8:00:00   22.7   84.61
9:00:00   34.04   94.4
10:00:00   45.21   105.89
11:00:00   55.62   121.24
12:00:00   64   144.41
13:00:00   67.7   178.49
14:00:00   64.5   213.22
15:00:00   56.36   237.21
16:00:00   46.04   252.99
17:00:00   34.9   264.69
18:00:00   23.55   274.55
19:00:00   12.34   283.78
20:00:00   1.56   293.15
20:13:52   -0.833   295.41



Title: Re: 24 Hour Script
Post by: mr_anderson on July 30, 2015, 04:51:21 PM
@TheBadger: Unfortunately, I do not believe that is what my project manager is looking for. Each time of day has to be a 5 sided skybox.

@paq: Thanks! I will take a look at it.

I have found how to script the suns heading and elevation. Now I need to find out how to script the heading and elevation of Plant 2.
Title: Re: 24 Hour Script
Post by: TheBadger on July 31, 2015, 04:05:21 PM
ah ok. I was thinking spherical renders for lighting 3D, for some reason.