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! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Augmented Reality for Developers

You're reading from   Augmented Reality for Developers Build practical augmented reality applications with Unity, ARCore, ARKit, and Vuforia

Arrow left icon
Product type Paperback
Published in Oct 2017
Publisher Packt
ISBN-13 9781787286436
Length 548 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Authors (2):
Arrow left icon
 Linowes Linowes
Author Profile Icon Linowes
Linowes
 Babilinski Babilinski
Author Profile Icon Babilinski
Babilinski
Arrow right icon
View More author details
Toc

Table of Contents (16) Chapters Close

Title Page
Credits
About the Authors
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface
1. Augment Your World FREE CHAPTER 2. Setting Up Your System 3. Building Your App 4. Augmented Business Cards 5. AR Solar System 6. How to Change a Flat Tire 7. Augmenting the Instruction Manual 8. Room Decoration with AR 9. Poke the Ball Game

Summary


In this chapter, we built a science project, a lot like I did when I was 8 years old; however, instead of wires and styrofoam balls, we made our solar system for augmented reality. Here, virtual objects interact with the real world using special cards we made with coded markers, one for each planet view. This idea could be extended, instead of cards, to pages in a book or labels on products.

Our first step was to make the earth, using an equirectangular texture of the earth's surface to build the material mapped to a sphere. Then, we added a second texture for the night side of the globe. Similarly, we built all the nine planets, the moon, and the sun. Each body was scaled and rotated accurately based on NASA data, but we compressed space and time for distance and orbits in some cases. The sun provides the light source.

We also learned to program in C# for Unity, writing short scripts to spin and orbit the planets, move the center viewpoint, and change the time scale in response to...

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 $15.99/month. Cancel anytime
Visually different images