I wanted to animate a “sunset” on the moon. I used a tutorial to get the right textures for the earth (land, clouds, atmospheric glow). I experimented with material nodes to get the effect of city lights appearing only on the dark side of the earth.
The sunset on the moon took a bit of thinking to get right. The moon rotates at the same rate as its revolution around the earth. That is why the same part of the moon always faces the earth. The earth rotates but never appears to move across the sky from the moon’s perspective. The sun does appear to move, however, so there can still be a sunset on the moon; it happens once every “day” on the moon, which is one month on earth.
So, as far as I know, this video is a fairly accurate depiction of a sunset on the moon.
EDIT: The only thing I got wrong was that the earth should be quite a bit smaller.
Then I took a few still renders:
I plan to use this model in future projects.