# Day and night cycle with moon

**URL:** <https://forums.unrealengine.com/t/day-and-night-cycle-with-moon/395949>\
**Category:** Blueprint\
**Tags:** Sky, real-time, unreal-engine, Blueprint, question\
**Created:** [June 9, 2017, 4:58pm UTC](https://forums.unrealengine.com/t/day-and-night-cycle-with-moon/395949 "2017-06-09T16:58:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_5c4f42811](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_5c4f42811](https://forums.unrealengine.com/u/anonymous_user_5c4f42811)\
**Post date:** [June 9, 2017, 4:58pm UTC](https://forums.unrealengine.com/t/day-and-night-cycle-with-moon/395949/1 "2017-06-09T16:58:37Z")

</div>

Hello, I’m trying to make a real time game. I’m pretty new to unreal and its blueprints. I’d like to get started on a day/night cycle but I can’t. I’m not too sure about where to start and I’m not too sure what to do. I need help. I really want this Day/Night cycle because the game is supposed to be realistic.

Is there anyone who can help me?  
I would also like a moon in the sky because there is none, so is there a possibility that I can have that to along with the night?

---

<div class="post-metadata">

**Author:** ![redbox](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@redbox](https://forums.unrealengine.com/u/redbox)\
**Post date:** [June 9, 2017, 6:31pm UTC](https://forums.unrealengine.com/t/day-and-night-cycle-with-moon/395949/2 "2017-06-09T18:31:52Z")

</div>

Its very complicated, and requires some advanced knowledge how engine features work.

You can find few examples of it in forums, wiki and marketplace.

But anyway you need good knowledge of lightning, materials, post processing, blueprints or c++ to understand, use and modify them for your purposes.

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — ue4community.wiki! You will be able to find content from the official...

> **[Day/Night Cycle Moon Troubles...](https://forums.unrealengine.com/showthread.php?29142-Day-Night-Cycle-Moon-Troubles)**
>
> So I’m still poking about with my Day/Night Cycle and it’s coming along nicely: The Issue: I want to do something cool/interesting with it by adding a moon, but unlike the sun (which was a simple sphere mask material effect) I want to...

---

<div class="post-metadata">

**Author:** ![AURORA\_GAMEWORKS](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AURORA\_GAMEWORKS](https://forums.unrealengine.com/u/AURORA_GAMEWORKS)\
**Post date:** [October 28, 2018, 2:55am UTC](https://forums.unrealengine.com/t/day-and-night-cycle-with-moon/395949/3 "2018-10-28T02:55:08Z")

</div>

I haven’t gotten into doing the moon using the starter content skybox, at least not yet. I figure there should be a way to replicate the code that puts the sun in the sky, but changing the visuals to a moon and inverting the location on the sphere relative to the sun.

There should things you can purchase from the marketplace if you’re able to spend money on the solution, otherwise I would do some searching on some wiki’s and YouTube as to creating a realistic day night cycle.

Here’s a 3 part playlist on day/night cycle stuff I’ve found. I hope its useful.  
[https://www.youtube.com/watch?v=dO4\_y3W4Uw0&index=2&t=0s&list=PLkHUTGhGe\_p1JaxgCONvn\_8tRY1lVuGmz](https://www.youtube.com/watch?v=dO4_y3W4Uw0&index=2&t=0s&list=PLkHUTGhGe_p1JaxgCONvn_8tRY1lVuGmz)

---

<div class="post-metadata">

**Author:** ![KunLan](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KunLan](https://forums.unrealengine.com/u/KunLan)\
**Post date:** [November 10, 2018, 1:20am UTC](https://forums.unrealengine.com/t/day-and-night-cycle-with-moon/395949/4 "2018-11-10T01:20:29Z")

</div>

Really great, thank you!

---

<div class="post-metadata">

**Author:** ![Thilina\_arimac](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/thilina_arimac/32/1068821_2.png) [@Thilina\_arimac](https://forums.unrealengine.com/u/Thilina_arimac)\
**Post date:** [November 20, 2018, 5:50pm UTC](https://forums.unrealengine.com/t/day-and-night-cycle-with-moon/395949/5 "2018-11-20T17:50:51Z")

</div>

I made a video on how to setup a simple time of day system with a moon.  
this part explains the time of day system and the next video explains how to add a moon.

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/6/e/16e43c6e41d9d54092f35f86bd14e0f6d297dc29.jpeg "Unreal Time of Day - UE4 Open World Tutorials #21") ](https://www.youtube.com/watch?v=5G7tqLMwTF0)
