# sun position, realistic shadow (longitude, latitude, date and time)

**URL:** <https://forums.unrealengine.com/t/sun-position-realistic-shadow-longitude-latitude-date-and-time/99533>\
**Category:** Architectural and Design Visualization\
**Tags:** unreal-engine\
**Created:** [September 4, 2017, 6:55pm UTC](https://forums.unrealengine.com/t/sun-position-realistic-shadow-longitude-latitude-date-and-time/99533 "2017-09-04T18:55:05Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![pcxx](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@pcxx](https://forums.unrealengine.com/u/pcxx)\
**Post date:** [September 4, 2017, 6:55pm UTC](https://forums.unrealengine.com/t/sun-position-realistic-shadow-longitude-latitude-date-and-time/99533/1 "2017-09-04T18:55:05Z")

</div>

Hello.  
I use unreal engine 4.16.  
I want to have a realistic shadow based on the geographical position (longitude and latitude) of a building, its orientation (relative to the north), and the date and time. How to do ? Thank you for your help.

---

<div class="post-metadata">

**Author:** ![ZacD](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ZacD](https://forums.unrealengine.com/u/ZacD)\
**Post date:** [September 5, 2017, 3:52am UTC](https://forums.unrealengine.com/t/sun-position-realistic-shadow-longitude-latitude-date-and-time/99533/2 "2017-09-05T03:52:43Z")

</div>

[https://www.esrl.noaa.gov/gmd/grad/s…lcdetails.html](https://www.esrl.noaa.gov/gmd/grad/solcalc/calcdetails.html)

Turn the math behind these spread sheets into a blueprint.

I’m currently working on this myself, not finished quite yet.

---

<div class="post-metadata">

**Author:** ![pcxx](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@pcxx](https://forums.unrealengine.com/u/pcxx)\
**Post date:** [September 5, 2017, 4:58am UTC](https://forums.unrealengine.com/t/sun-position-realistic-shadow-longitude-latitude-date-and-time/99533/3 "2017-09-05T04:58:46Z")

</div>

this seems to be very hard, thanks a lot.  
From now, there is no plugin ?

---

<div class="post-metadata">

**Author:** ![pcxx](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@pcxx](https://forums.unrealengine.com/u/pcxx)\
**Post date:** [September 5, 2017, 5:50am UTC](https://forums.unrealengine.com/t/sun-position-realistic-shadow-longitude-latitude-date-and-time/99533/4 "2017-09-05T05:50:55Z")

</div>

perhap, it is possible to use xls or csv file in unreal ?  
in unreal : you select location , date and time  
unreal go to xls to make calculations  
and return sun position (elevation and azimut)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_3a97b38d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_3a97b38d](https://forums.unrealengine.com/u/anonymous_user_3a97b38d)\
**Post date:** [September 5, 2017, 10:29am UTC](https://forums.unrealengine.com/t/sun-position-realistic-shadow-longitude-latitude-date-and-time/99533/5 "2017-09-05T10:29:30Z")

</div>

Depending on your exact requirements you can pull fbx data from say a 3dsmax daylight system and drive the sun position by a umg slider. I’ve done this for a few things… Its a fairly simple work around if say you want daylight data for one day between two times.

---

<div class="post-metadata">

**Author:** ![pcxx](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@pcxx](https://forums.unrealengine.com/u/pcxx)\
**Post date:** [September 5, 2017, 3:11pm UTC](https://forums.unrealengine.com/t/sun-position-realistic-shadow-longitude-latitude-date-and-time/99533/6 "2017-09-05T15:11:33Z")

</div>

i want to :

- design a house with a good north orientation

- set the latitude and longitude of the house (variables in a blueprint)

- interior lighmapping with artificials lights

- have a menu with 3 sliders :

- one for the date, from January 1th to December 31th)

- an another for the time of the day ( 00:00 to 24:00)

- a third for Time zone

- package for windows 64 bytes

- launch exe

- use of the 3 sliders

- my calculations in the blueprint with  
[https://www.esrl.noaa.gov/gmd/grad/s…lcdetails.html](https://www.esrl.noaa.gov/gmd/grad/solcalc/calcdetails.html)

- the result : Elevation and azimut of the sun  
to have good position for the lens flare  
and good shadows on the ground and through the windows

---

<div class="post-metadata">

**Author:** ![pcxx](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@pcxx](https://forums.unrealengine.com/u/pcxx)\
**Post date:** [September 5, 2017, 3:20pm UTC](https://forums.unrealengine.com/t/sun-position-realistic-shadow-longitude-latitude-date-and-time/99533/7 "2017-09-05T15:20:31Z")

</div>

One more thing :

I have bought the plugin Ultra dynamic Sky  
if it is possible, the choice with a check box to have or not clouds

---

<div class="post-metadata">

**Author:** ![pcxx](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@pcxx](https://forums.unrealengine.com/u/pcxx)\
**Post date:** [September 6, 2017, 10:11am UTC](https://forums.unrealengine.com/t/sun-position-realistic-shadow-longitude-latitude-date-and-time/99533/8 "2017-09-06T10:11:15Z")

</div>

hello i have found and bought a blueprint

here :

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/7/7/a776ed9df1cf794ef7d2a0ee36faeb88bfdc3ac9.jpeg "NEW GeographicallyCorectSunSystem") ](https://www.youtube.com/watch?v=a2MIIvf2RDg)

thanks a lot

Patrick
