fppf
09-24-2005, 12:30 AM
I'm working on the timer part of my tank controler and I added the sun rise/set easy. Basiclly the sun will rise and set at almost the same times from year to year. The micro I'm using can't do floating point math so I will be using lookup tables for the year of rise and set times.
Now the Moon is a whole other story. The Luner phase cycles is not bad, it happens on an almost linear periodic function. Its the rise and set times that are a headach. How important do you think accurite rise and set times are for the moon. I will be simulating moon lighting in hopes of spawning someday. But just because there is a full moon does not mean its visable. There are times the moon will not rise and also not set.
Doing the rise/set calculations for the Moon are VERY in depth. Its not on a nice orbiting plain with the earth so you need to account for the parallax and a whole bunch of other stuff. Needless to say, its not a problem that can be put simply into a lookup table. So what do you think? If needed how close does it need to be??
Thoughts?
Now the Moon is a whole other story. The Luner phase cycles is not bad, it happens on an almost linear periodic function. Its the rise and set times that are a headach. How important do you think accurite rise and set times are for the moon. I will be simulating moon lighting in hopes of spawning someday. But just because there is a full moon does not mean its visable. There are times the moon will not rise and also not set.
Doing the rise/set calculations for the Moon are VERY in depth. Its not on a nice orbiting plain with the earth so you need to account for the parallax and a whole bunch of other stuff. Needless to say, its not a problem that can be put simply into a lookup table. So what do you think? If needed how close does it need to be??
Thoughts?