Menu
News
All News
Dungeons & Dragons
Level Up: Advanced 5th Edition
Pathfinder
Starfinder
Warhammer
2d20 System
Year Zero Engine
Industry News
Reviews
Dragon Reflections
Columns
Weekly Digests
Weekly News Digest
Freebies, Sales & Bundles
RPG Print News
RPG Crowdfunding News
Game Content
ENterplanetary DimENsions
Mythological Figures
Opinion
Worlds of Design
Peregrine's Next
RPG Evolution
Other Columns
From the Freelancing Frontline
Monster ENcyclopedia
WotC/TSR Alumni Look Back
4 Hours w/RSD (Ryan Dancey)
The Road to 3E (Jonathan Tweet)
Greenwood's Realms (Ed Greenwood)
Drawmij's TSR (Jim Ward)
Community
Forums & Topics
Forum List
Latest Posts
Forum list
*Dungeons & Dragons
Level Up: Advanced 5th Edition
D&D Older Editions
*TTRPGs General
*Pathfinder & Starfinder
EN Publishing
*Geek Talk & Media
Search forums
Chat/Discord
Resources
Wiki
Pages
Latest activity
Media
New media
New comments
Search media
Downloads
Latest reviews
Search resources
EN Publishing
Store
EN5ider
Adventures in ZEITGEIST
Awfully Cheerful Engine
What's OLD is NEW
Judge Dredd & The Worlds Of 2000AD
War of the Burning Sky
Level Up: Advanced 5E
Events & Releases
Upcoming Events
Private Events
Featured Events
Socials!
Twitch
YouTube
Facebook (EN Publishing)
Facebook (EN World)
Twitter
Instagram
TikTok
Podcast
Features
Top 5 RPGs Compiled Charts 2004-Present
Adventure Game Industry Market Research Summary (RPGs) V1.0
Ryan Dancey: Acquiring TSR
Q&A With Gary Gygax
D&D Rules FAQs
TSR, WotC, & Paizo: A Comparative History
D&D Pronunciation Guide
Million Dollar TTRPG Kickstarters
Tabletop RPG Podcast Hall of Fame
Eric Noah's Unofficial D&D 3rd Edition News
D&D in the Mainstream
D&D & RPG History
About Morrus
Log in
Register
What's new
Search
Search
Search titles only
By:
Forums & Topics
Forum List
Latest Posts
Forum list
*Dungeons & Dragons
Level Up: Advanced 5th Edition
D&D Older Editions
*TTRPGs General
*Pathfinder & Starfinder
EN Publishing
*Geek Talk & Media
Search forums
Chat/Discord
Menu
Log in
Register
Install the app
Install
Community
General Tabletop Discussion
*Geek Talk & Media
Moon Orbit/Phase Generator?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="MonkeyBoy" data-source="post: 624619" data-attributes="member: 1229"><p><strong>Moon Phases</strong></p><p></p><p>OK.</p><p></p><p>Firt things first; you are going to need to simplify a lot of the maths for real moon phases to keep yourself sane while doing this. Remember that our real calendar and its relation to the moon phases is pretty complex, calendar months all being different lengths from the lunar month, it being related to orbits etc etc. (none of which I really understand, anyway!)</p><p></p><p>So begin with a few simple assumptions, which it being a fantasy game, you are at leaisure to make. This allows a "fantasy physics" form of phase calculation, if you want more, take up traveller, or make friends with an astronomer <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p><p></p><p>0</p><p>Assume Moons do not affect each others phases! This is a rank inaccuracy; assuming you want multiple moons with different cycles, one must orbit faster than the other; anyway one or other moon is likely to at least partially eclipse the other at various times, which would be likely to factor into phases; we will ignore this, as its officially a Hard Problem...</p><p></p><p>1</p><p>Circular Orbits; this means that all phases are of equal length for any given moon.</p><p></p><p>2</p><p>Use 8 Phases, numbered from 0:</p><p>0 New Moon (No Moon)</p><p>1 1st Quarter</p><p>2 Waxing Gibbous</p><p>3 Waxing Half</p><p>4 Full</p><p>5 Waning Half</p><p>6 Waning Gibbous</p><p>7 4th Quarter</p><p></p><p>Moons will pass through these phases in sequence, returning to 0 when exiting the 4th Quarter phase. One cycle from the beginning of being a New Moon to the very end of being a 4th Quarter moon is one lunar cycle, the number of days this takes is your lunar month.</p><p>You must also be able to track what part of each phase the moon is in if the lunar cycle is anything other than 8 days. i.e. to be able to say that the moon is in the third day of the Full Moon, etc.</p><p></p><p>3</p><p>Set yourself a "source date" being the nominal date from which all your calculations begin.</p><p></p><p>Moons:</p><p>You need to know 2 things about a moon to calculate its phase on a given date:</p><p>What its phase was on the source date</p><p>Its lunar cycle</p><p></p><p>You can freely pick the source date's phase for your world, and set the lunar cycle. Remember that there are 8 phases; making your lunar cycle a multiple of 8 makes the maths easier, and avoids having some days where the moon is "on the cusp". Our moon has a cycle of approx 28 days, giving an irritating 3.5 ish days per phase... Resist the urge to have a lunar cycle shorter than 8 days...</p><p></p><p>Lets consider a source date (0), and a Moon X (with lunar cycle 24 days (3 days / phase) and which was on the 2nd day of being full on day 0).</p><p></p><p>OK, once we know that we can calculate the phase of the moon if we can express the desired date in "days since day 0".</p><p></p><p>Lets consider day 365 in our demo system. 365 / 24 = 15 (integer division) and 365 % 24 = 5. This tells us that 15 full months have passed (which would have left the phase unchanged), plus another 5 days. Since we have a 24 day cycle, that means 3 days per phase, giving us a 1 phase and 2 day advance in phase. We began on the second day of being full, so 1 phase advances us to the second day of being a Waning Gibbous moon, two days will advance us into the first day of the Waning Half Moon phase.</p><p></p><p></p><p>Now, setting a single source date for the world, and then setting moons with source phases and lunar cycles (and being sure to keep track of progression within the phase) means you can calculate phases for any number of moons, at any given date.</p><p></p><p>When I did this work for my game, I simply used excel:</p><p>I ran a date column down the page, and then entered phases into the following columns for each moon, one cell per day of each phase. Once you have a year's worth you can just cut and paste.</p><p>This lets you easily read off the phase for a given day.</p><p></p><p>The hard part is, if you're like me, when you want to use plot devices such as "only when all the moons are full" etc. Calculating a phase is easy; designing a set of lunar cycles and start dates to get such conjunctions at a frequency you want is HARD!</p><p></p><p>I have seen a moon phase calculator for eath online, but I forget where. You've intrigued me now, so I'll try to knock together a quick bit of javascript to spit out a phase (and day within a phase) for any date and moon information as stated above. Will take a day or two though <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p></blockquote><p></p>
[QUOTE="MonkeyBoy, post: 624619, member: 1229"] [b]Moon Phases[/b] OK. Firt things first; you are going to need to simplify a lot of the maths for real moon phases to keep yourself sane while doing this. Remember that our real calendar and its relation to the moon phases is pretty complex, calendar months all being different lengths from the lunar month, it being related to orbits etc etc. (none of which I really understand, anyway!) So begin with a few simple assumptions, which it being a fantasy game, you are at leaisure to make. This allows a "fantasy physics" form of phase calculation, if you want more, take up traveller, or make friends with an astronomer :) 0 Assume Moons do not affect each others phases! This is a rank inaccuracy; assuming you want multiple moons with different cycles, one must orbit faster than the other; anyway one or other moon is likely to at least partially eclipse the other at various times, which would be likely to factor into phases; we will ignore this, as its officially a Hard Problem... 1 Circular Orbits; this means that all phases are of equal length for any given moon. 2 Use 8 Phases, numbered from 0: 0 New Moon (No Moon) 1 1st Quarter 2 Waxing Gibbous 3 Waxing Half 4 Full 5 Waning Half 6 Waning Gibbous 7 4th Quarter Moons will pass through these phases in sequence, returning to 0 when exiting the 4th Quarter phase. One cycle from the beginning of being a New Moon to the very end of being a 4th Quarter moon is one lunar cycle, the number of days this takes is your lunar month. You must also be able to track what part of each phase the moon is in if the lunar cycle is anything other than 8 days. i.e. to be able to say that the moon is in the third day of the Full Moon, etc. 3 Set yourself a "source date" being the nominal date from which all your calculations begin. Moons: You need to know 2 things about a moon to calculate its phase on a given date: What its phase was on the source date Its lunar cycle You can freely pick the source date's phase for your world, and set the lunar cycle. Remember that there are 8 phases; making your lunar cycle a multiple of 8 makes the maths easier, and avoids having some days where the moon is "on the cusp". Our moon has a cycle of approx 28 days, giving an irritating 3.5 ish days per phase... Resist the urge to have a lunar cycle shorter than 8 days... Lets consider a source date (0), and a Moon X (with lunar cycle 24 days (3 days / phase) and which was on the 2nd day of being full on day 0). OK, once we know that we can calculate the phase of the moon if we can express the desired date in "days since day 0". Lets consider day 365 in our demo system. 365 / 24 = 15 (integer division) and 365 % 24 = 5. This tells us that 15 full months have passed (which would have left the phase unchanged), plus another 5 days. Since we have a 24 day cycle, that means 3 days per phase, giving us a 1 phase and 2 day advance in phase. We began on the second day of being full, so 1 phase advances us to the second day of being a Waning Gibbous moon, two days will advance us into the first day of the Waning Half Moon phase. Now, setting a single source date for the world, and then setting moons with source phases and lunar cycles (and being sure to keep track of progression within the phase) means you can calculate phases for any number of moons, at any given date. When I did this work for my game, I simply used excel: I ran a date column down the page, and then entered phases into the following columns for each moon, one cell per day of each phase. Once you have a year's worth you can just cut and paste. This lets you easily read off the phase for a given day. The hard part is, if you're like me, when you want to use plot devices such as "only when all the moons are full" etc. Calculating a phase is easy; designing a set of lunar cycles and start dates to get such conjunctions at a frequency you want is HARD! I have seen a moon phase calculator for eath online, but I forget where. You've intrigued me now, so I'll try to knock together a quick bit of javascript to spit out a phase (and day within a phase) for any date and moon information as stated above. Will take a day or two though :) [/QUOTE]
Insert quotes…
Verification
Post reply
Community
General Tabletop Discussion
*Geek Talk & Media
Moon Orbit/Phase Generator?
Top