Moon Phase. A new method

I’ve seen several brilliant ways of doing moon phase and have been bewildered by many of the more accurate ones.
The main ones that caught my eye for a basic representation were:

  1. 28 stacked images with opacity expressions
  2. Two moons rotating behind a mask

I didn’t like the idea of 28 separate elements in the first. The second was nice and simple but the moon moved and I wanted it to be static. Also, I thought it would be a challenge to make my own version.

I started with the 28 images from @russellcresser and cropped them for easy sizing.
I dropped them in one at a time and adjusted a masking arc to match the shadow as close as possible and recorded X Position, Radius, Inner Radius, Fill in an excel spreadsheet for each image. Opacity is only zero on full moon and rotation/fill only count at half moon.

I then made an expression generator for the big 3 so you can enter stating X and radius: Dropbox

The only other thing needed is a hole of the right size in a backing image or another giant arc of the relevant backing colour.

I’m bound to have made a mistake somewhere and not sure if it will be useful for others but it does the job for me.

Here is the result

5 Likes

That’s great work, but WAY too complicated for my feeble brain to wrap around it.

5 Likes

That’s why I made the expression generator (linked above).
28 X Positions, 28 radii, 28 inner radii. I didn’t want to have to work this out for each position and size I used it with:

X Position

$(round(#MOONAGEPERCENT#*27))==27?160:$$(round(#MOONAGEPERCENT#*27))==26?159:$$(round(#MOONAGEPERCENT#*27))==25?156:$$(round(#MOONAGEPERCENT#*27))==24?151:$$(round(#MOONAGEPERCENT#*27))==23?142:$$(round(#MOONAGEPERCENT#*27))==22?124:$$(round(#MOONAGEPERCENT#*27))==21?71:$$(round(#MOONAGEPERCENT#*27))==20?160:$$(round(#MOONAGEPERCENT#*27))==19?229:$$(round(#MOONAGEPERCENT#*27))==18?193:$$(round(#MOONAGEPERCENT#*27))==17?179:$$(round(#MOONAGEPERCENT#*27))==16?171:$$(round(#MOONAGEPERCENT#*27))==15?163:$$(round(#MOONAGEPERCENT#*27))==14?161:$$(round(#MOONAGEPERCENT#*27))==13?160:$$(round(#MOONAGEPERCENT#*27))==12?159:$$(round(#MOONAGEPERCENT#*27))==11?157:$$(round(#MOONAGEPERCENT#*27))==10?149:$$(round(#MOONAGEPERCENT#*27))==9?141:$$(round(#MOONAGEPERCENT#*27))==8?127:$$(round(#MOONAGEPERCENT#*27))==7?71:$$(round(#MOONAGEPERCENT#*27))==6?160:$$(round(#MOONAGEPERCENT#*27))==5?249:$$(round(#MOONAGEPERCENT#*27))==4?196:$$(round(#MOONAGEPERCENT#*27))==3?178:$$(round(#MOONAGEPERCENT#*27))==2?169:$$(round(#MOONAGEPERCENT#*27))==1?164:$$(round(#MOONAGEPERCENT#*27))==0?161:$

4 Likes

So, I worked off the images provided, and that exist in topics here such as Previous , New Moon Tags 28 Phases , See Updated Topic

I have notice that the wax/wane seem to be inverted to the stock phases. I’ll trust @russellcresser over stock in this but is it a location thing?

2 Likes

You have found the older Topic I posted . I have used these images and tested against a couple of favourite Apps including Time and Date . I will check through and see if they are in the correct order .

2 Likes

It’s an easy fix if so. I would just go through the sheet and change + to minus on the X and vice versa. I suppose I could even add it as an option or, if relevant set it by north/south hemisphere. Don’t think I could bend my head to do X and Y calculations for inclination though.

2 Likes

I had an idea to have one moon shadow image with 28 images as a ribbon and one image of the moon and then move the ribbon image across the moon imageusing moonagepercent and conditionals for x (or y). But I don’t have the graphic skill to make an acceptable ribbon of shadow images. So at the moment it is only an idea i was investigating as an educational exercise.

3 Likes

Yeah . I was making a Raster grid 4x7 but gave up with it . Still need a Mask hole in the Face . The strip is a nice Idea but be aware that a Wide strip will be Rendered by Facer . The Squarish resources are Best if they are big .

I dont think I am at liberty to share the resources but I saw this as a good example of the Grid Type Moon phase .
.
Digital Dual Time JO3-3 by G7

I did make a 4x7 to practice . Not sure if I came up with any Formulas .
.

RASTER 4X7 GREY

2 Likes

You mean like this?

Let me add XY calculations to the expression generator for this and run up a demo.

Nope. Really doesn’t like shrinking something that wide.
image

Grid would be the way to go but I would say squarer to make both dimensions as small as possible.

2 Likes

Looks like a Challenge to me . Here is a Grid thing . I will make a grid with pictures on . Might be useful to have a 6x4 with Earth Pics For The Time Zones .
.
.

3 Likes

Nice One Rob .

3 Likes

Yes exactly, but it seems not to be the best way because of the way dacer works

3 Likes

4x7 is the squarest division of 28 . See I have added your strip to my grid test . Anyone interested in the Project keep an Eye on the TEST . I am going to see if i can make this work .
.
.

4 Likes

Brilliant @russellcresser

3 Likes

Wasn’t sure if x7 might cause resolution issues if shrunk so 5x6 with 2 gaps may work better size wise of final issue. XY still easy I think would work on any grid if the images were in order of moon phase rather than phase 27=image0, phase0=image27

2 Likes

Looking at this the images are southern hemisphere: Does the moon look the same all round the world?.

I have adjusted the expression generator so it flips the phase if north of the equator and leaves it as is if south: $(round(#MOONAGEPERCENT#*27))==26?160+1*#LAT#/abs(#LAT#):$

2 Likes

I used this in Rotation to flip the moon images for the Sothern Hemisphere . Of Course in reality it swings round looking more horizontal at the equator .
.
$#LAT#>0?0:180$

2 Likes

In examle below are two ways I think better than built in complication.
First is using font with 8 shade images, that can have rotation applied.

The other, I have seen somewhere interesting method for continuous shade developement, but can not find the source, nor whether it was here or on GWD forum. So I had to recreate it from scratch
It uses 2 squares one circle and one half circle cutout mask.

The formula for shade progression is linear, but maybe could be improved with some sine implementation.

3 Likes

I like the inginuity there on both.
If I were to choose it would be the 2nd as it does not require the creation of a custom font.
The squishy half circle image mask is probably a more accurate shape representation than the arc method too as the curve flattens towards centre more truly representing the moon curvature.

3 Likes

I am sorry I skipped past this Before. Fantastic work Peter . Some nice ways of doing the Moon .

4 Likes