Search icon CANCEL
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
Complete Virtual Reality and Augmented Reality Development with Unity

You're reading from   Complete Virtual Reality and Augmented Reality Development with Unity Leverage the power of Unity and become a pro at creating mixed reality applications

Arrow left icon
Product type Course
Published in Apr 2019
Publisher Packt
ISBN-13 9781838648183
Length 668 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Authors (2):
Arrow left icon
Jesse Glover Jesse Glover
Author Profile Icon Jesse Glover
Jesse Glover
Jonathan Linowes Jonathan Linowes
Author Profile Icon Jonathan Linowes
Jonathan Linowes
Arrow right icon
View More author details
Toc

Table of Contents (24) Chapters Close

Title Page
Copyright
About Packt
Contributors
Preface
1. Virtually Everything for Everyone 2. Content, Objects, and Scale FREE CHAPTER 3. VR Build and Run 4. Gaze-Based Control 5. Handy Interactables 6. World Space UI 7. Locomotion and Comfort 8. Playing with Physics and Fire 9. Animation and VR Storytelling 10. What AR is and How to Get Set up 11. GIS Fundamentals - The Power of Mapping 12. Censored - Various Sensor Data and Plugins 13. The Sound of Flowery Prose 14. Picture Puzzle - The AR Experience 15. Fitness for Fun - Tourism and Random Walking 16. Snap it! Adding Filters to Pictures 17. To the HoloLens and Beyond 1. Other Books You May Enjoy Index

Animating other properties


In our story, we want the lighting to start at night and progress through dawn to daylight. We'll do it by manipulating the Directional Light, Skybox Material, and a Spot Light.

Animating lights

For dramatic effect, let's make the scene slowly fade from night to daytime. We will turn off the Directional Light at the start and slowly increase its Intensity:

  1. Select BlackbirdController in Hierarchy and open the Timeline Editor window
  2. Drag the Directional Light object from Hierarchy onto the Timeline
  3. Press its Record button
  4. Ensure the Playhead is at 0:00
  5. Select the Directional Light in Hierarchy and change its Intensity parameter to 0
  6. Move the Playhead to the 40:00 second mark
  7. Set the Intensity to 1

The Directional Light's Animation Track with the Intensity parameter curve is shown here:

Other parameters of the light could also be animated, including its Color and the Transform Rotation angles. Just imagine the possibilities!

Let's also add a Point Light. For dramatic effect,...

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 £16.99/month. Cancel anytime