# Solar system lighting?

**URL:** <https://forums.unrealengine.com/t/solar-system-lighting/378254>\
**Category:** Rendering\
**Tags:** vertex-lighting, unreal-engine, lighting-problem, Lighting, question, Blueprint\
**Created:** [December 4, 2016, 10:23am UTC](https://forums.unrealengine.com/t/solar-system-lighting/378254 "2016-12-04T10:23:39Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Annunaki69](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Annunaki69](https://forums.unrealengine.com/u/Annunaki69)\
**Post date:** [December 4, 2016, 10:23am UTC](https://forums.unrealengine.com/t/solar-system-lighting/378254/1 "2016-12-04T10:23:39Z")

</div>

Hi Guys!

The problem I have is that I was using a directional light for the planets to begin with but now that the planets are orbiting the sun the lighting no longer works and looks terrible, I have also tried to fake the lighting using Dot Product in the materials but I can’t seem to update it on the fly. (I have 5 planets orbiting the sun at different rates and then there are moons orbiting those 5 planets so the dot product might end up quite complicated.)

Just to confirm, the orbits aren’t the problem the lighting is.

Any ideas or possible solutions would be a massive help and are all greatly appreciated.

P.S.  
Spotlights or pointlights wouldn’t work due to the scale of the solar system.

Thanks In Advance!

---

<div class="post-metadata">

**Author:** ![A\_GUPTA](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@A\_GUPTA](https://forums.unrealengine.com/u/A_GUPTA)\
**Post date:** [December 4, 2016, 11:17am UTC](https://forums.unrealengine.com/t/solar-system-lighting/378254/2 "2016-12-04T11:17:51Z")

</div>

Increase Dynamic Shadow Distance in Cascaded Shadows options \> 50000 or more.  
set the directional light to movable and Yes other lights won’t work…

---

<div class="post-metadata">

**Author:** ![Annunaki69](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Annunaki69](https://forums.unrealengine.com/u/Annunaki69)\
**Post date:** [December 4, 2016, 11:24am UTC](https://forums.unrealengine.com/t/solar-system-lighting/378254/3 "2016-12-04T11:24:08Z")

</div>

Thanks for the answer but the orbits are vastly different, 2 planets could be at opposite sides of the sun at any one time

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_835301aa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_835301aa](https://forums.unrealengine.com/u/anonymous_user_835301aa)\
**Post date:** [December 5, 2016, 5:28pm UTC](https://forums.unrealengine.com/t/solar-system-lighting/378254/4 "2016-12-05T17:28:15Z")

</div>

Logically it really seems like a point like is what you want since the star is your source of light and should radiate in all directions, not a single direction like a directional light. I don’t understand why the scale of the system should make any difference in your use of a point light.

---

<div class="post-metadata">

**Author:** ![Annunaki69](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Annunaki69](https://forums.unrealengine.com/u/Annunaki69)\
**Post date:** [December 11, 2016, 7:48am UTC](https://forums.unrealengine.com/t/solar-system-lighting/378254/5 "2016-12-11T07:48:30Z")

</div>

the scale means that the shadows struggle to be rendered at a distance that is need for the game, thanks for the idea, I’ll have a play with the pointlight

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_835301aa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_835301aa](https://forums.unrealengine.com/u/anonymous_user_835301aa)\
**Post date:** [December 12, 2016, 5:17pm UTC](https://forums.unrealengine.com/t/solar-system-lighting/378254/6 "2016-12-12T17:17:08Z")

</div>

You should be able to have shadows render at large distances without issue. Check out [This](https://forums.unrealengine.com/showthread.php?6622-Shadows-disappear-with-increased-camera-distance) thread.

---

<div class="post-metadata">

**Author:** ![IntelliToasters](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@IntelliToasters](https://forums.unrealengine.com/u/IntelliToasters)\
**Post date:** [January 9, 2021, 3:50am UTC](https://forums.unrealengine.com/t/solar-system-lighting/378254/7 "2021-01-09T03:50:37Z")

</div>

I agree with @QSBen. If you’re building something like a solar system for use in a space game, maybe you could fake the image by building the solar system in miniature and use a scene capture to get the result for display. You don’t have to render everything at the same scale.
