Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Unreal Engine Game Development Blueprints

You're reading from   Unreal Engine Game Development Blueprints Discover all the secrets of Unreal Engine and create seven fully functional games with the help of step-by-step instructions

Arrow left icon
Product type Paperback
Published in Dec 2015
Publisher Packt
ISBN-13 9781784397777
Length 352 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Nicola Valcasara Nicola Valcasara
Author Profile Icon Nicola Valcasara
Nicola Valcasara
Arrow right icon
View More author details
Toc

Day-Night cycle


When talking about open world, one of the first things that pops in our mind is the necessity to simulate the real-world day and night cycle. UE4 is strong on this point. With just a few Blueprint nodes and a few changes at a default scene, you can create a perfect day cycle for your game.

Take a look at the default map of your game. In the world outliner you can find the two elements that, combined together, are the responsible of the lighting of our scene: the Light Source and the Sky Sphere.

Light Source, as the name suggests, is responsible for the illumination of the entire world. It is a directional light. A directional light simulates light that is being emitted from a source that is infinitely far away. This means that all shadows cast by this light will be parallel, making this the ideal choice for simulating sunlight.

Sky Sphere is basically a huge Static Mesh and is the responsible for what the player sees in the background, including the sun planet. You can open...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime