🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: rec.games.programmer
Article #681

Help with Solar/Lunar Cycles in a game

#681
From: Floyd Moore
Date: Fri, 11 Sep 1992 15:54
26 lines
1451 bytes
Hello,

I am trying to design some routines for a game system (ok actually it is
a MOO - Mud varient) that handles some things having to do with solar
and lunar cycles.  

My problem is that I need a relatively simple (trig functions are fine)
function that will compute the location of the sun in the sky (approx is
ok, like just the vertical angle above the horizon given the time of day
and the locations latitute).   The same question also applied to lunar
cycles is needed also (what phase is the moon and where in the sky is it
at this time).  Note that I am not trying to develop precise algorithms
for the position, but I also want something a little beter then a simple
gamma*sin(theta + phi) function.  

Does anyone have a good reference on this type of modeling, or better
yet have a sample routine in some high level language (ie C, pascal,
etc) that could be used in this situation.


Any help would be appreciated.

-----
Floyd Moore                           red@fc.hp.com
Entry Systems Operation               
Hewlett Packard Co.                   Fort Collins, Colorado	
Technical Details
Message-ID: <9850007@hpfcso.FC.HP.COM>
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!sdd.hp.com!scd.hp.com!hplextra!hpfcso!red

Show Full Headers
Complete Article Headers
From: red@hpfcso.FC.HP.COM (Floyd Moore)
Date: Fri, 11 Sep 1992 15:54:04 GMT
Subject: Help with Solar/Lunar Cycles in a game
Message-ID: <9850007@hpfcso.FC.HP.COM>
Organization: Hewlett-Packard, Fort Collins, CO, USA
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!sdd.hp.com!scd.hp.com!hplextra!hpfcso!red
Newsgroups: rec.games.programmer
Lines: 26