Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles
(untagged)

Entering the brave new world of VR

0.00/5 (No votes)
23 Sep 2015 2  
Review of two AR/VR book resources to enable devs to jump on the reality train

This article is in the Book Review chapter. Reviews are intended to provide you with information on books - both paid and free - that others consider useful and of value to developers. Read a good programming book? Write a review!

oculus-rift-inside

It should come as no surprise to anyone that the dream of Virtual Reality (VR) and Augmented Reality (AR) experiences has accelerated in recent months/years with the evolution of newer and more modern technologies and techniques. Many companies, Kickstarter’s and freelance coders / architects are steadily bringing about the Reality revolution. Whether we are actually there yet or there is still a way to go before there is full consumer acceptance of VR/AR (like Cars and mobile phones do today) is a point of debate.  Anyone however who has tried at least one Demo though will tell you they are very impressed.

With all the recent announcements, the future is practically at our doorstep.

  • The new Oculus development kits with extremely high resolution screens and vastly improved tracking, extended even further with their new Oculus touch controllers.
    https://www.oculus.com/images/rift/dk-controller-thumb1.jpg
  • The many cardboard / mobile VR kits, like the awesome Vis-VR (from as little as £2.50 Open-mouthed smile) that are available at a reasonable price.
    DIY Google Cardboard 3D Vr Virtual Reality Viewing Glasses For 4.5"~5.5" Screenvisrblank2
  • The absolutely awesome Microsoft HoloLens project (still a ways off) which still astounds viewers and users alike.
    HoloLens

So that’s the blurb / sales speech, what’s the reality, how do new developers or those interested in this brave new frontier get involved? Such is the subject of this slightly different book review for today.

In this post I have two book reviews for those interested in getting in to VR and one big offer direct from their joined publisher, to further accelerate you on this tremendous journey, so let’s get started.

 


Developing AR Games for iOS and Android – published September 2013

This title was published some time ago based on Unity 4.1 focusing on implementing the Augmented Reality Vuforia SDK in to your Unity titles.  You shouldn’t be deterred by this as Vuforia have updated their SDK for Unity 5, so no worries there.

In its 5 Chapters, you are led through implementing the Vuforia SDK, getting started with all of its tracking options and the online services, the chapters are detailed as follows:

  1. What is Augmented Reality?

    Simple and high level overview of all the terminology involved with VR and AR, clearing defining the differences between them.

  2. Setting up the environment

    Get yourself up and running with Unity and Vuforia, making sure everything is installed and setup correctly.

  3. Understanding Vuforia

    A walkthrough how Vuforia works and what is involved in order to properly run a VR trackable project.

  4. Trackables and Tracking

    Detailed explanations on the difference between trackables, non-trackables and tracking in general.

  5. Advanced augmented reality

    Putting everything together and going through what is required to build an actual game using Vuforia AR.

 

Pros / Cons and conclusion

I have mixed feelings about this book, at its best it is a very detailed user manual for the Vuforia SDK focusing on its trackables services. On the other hand the title is very short and could have done with more detail on all of the other capabilities of the Vuforia SDK, so it does feel lacking.  Overall, if you are looking in to creating a Vuforia based app/game, then this will be a useful reference to get started.

Pro’s

  • Succinct view of AR trackables.
  • You get a working AR project by the end.

Con’s

  • Far too short for a full in depth AR title – its focus on pure AR tracking markers is good but needed more.
  • Doesn’t cover the costs involved of using Vuforia SDK, check their site for more info.

 

Get this book here


Unity Virtual Reality Projects – published September 2015

Unlike the previous title, this book focuses solely on Virtual Reality (VR) over Augmented Reality (AR) solutions. In its pages you’ll discover how VR apps and games differ from their desktop counterparts and what really goes in to making them (especially focusing on scale!, very important), walks you through several different types of VR solutions like Diorama’s, First person controllers, riding on rails (like a rollercoaster), 360 projections (you are IN the painting) and social VR. You’ll even delve in to several VR implementations inside Unity 5 such as the Oculus rift and (for those of you without a few hundred £ or $ to spare) Google cardboard.

  1. Virtually everything for everyone

    As expected, the beginning chapter talks thoroughly about what VR is and what it isn’t, together with an in-depth comparison between VR and AR.  It also goes through all the different VR style experiences and how these apply to both apps and games.  Finally it covers some of the technical skills you’ll need (yes you do need Math!) to build effective VR solutions.

  2. Objects and scale

    A no-nonsense intro to Unity (practically just one page, which I like because too many titles waffle on about “installing unity”) followed by a deep dive into creating your first VR scene, before finishing off with a high level walkthrough creating a basic asset in Blender (a free 3D modelling tool) and importing it in to Unity, keeping an eye on the all-important scale (I did say scale is important!)

  3. VR Build and run

    So you have your VR scene, now what? Time to get it on a device, whatever you have to hand.  This chapter does a nice big overview of the many options of building your VR solution through Unity, focusing eventually on building for the Oculus Rift and Google Cardboard (if you are buying this book, you should have some spare change for a cardboard device at least, especially since the Vis-VR is only £2.50, oh and you’ll need a mobile device as well Open-mouthed smile)

  4. Gaze-based control

    In this chapter you’ll implement a gaze based control system (point and click for your eyes), together with some third person basic AI and nav meshes.

  5. World space UI

    Time to start messing with the new UI system and building a World Space UI for your VR viewer to see and use in your VR scenes.  Not quite the full Iron Man overlay but close.  It does cover however, a basic Visor, reticule, windshield hud, info bubbles and much more.

  6. First-person character

    Switching gear, it’s time to get behind the eyes of the player and allow them to “play as themselves”.  Walking through all the tips and tricks necessary to not have your player vomiting all over the floor and ripping off the goggles, it’s important to ensure your player has a good experience in your VR environment.

  7. Physics and the environment

    Taking the first-person view up a notch, the author adds a little physicality to the player’s experience, allowing them to jump and knock stuff over.  Not quite the VOID experience (if you don’t click on that link, you are truly missing out!)  but virtually close.

  8. Walk-throughs and rendering

    So far the player has been in control, but some experiences work best if they just sit back and relax, letting  you guide them around a scene or view (getting out of a rollercoaster while it’s moving is not recommended, even in VR!). This chapter covers building a tour scene, putting some more blender content to work and making the best out of the scene, while keeping a firm eye on what you need to do to provide the best performance with the hardware you have at your disposal.

  9. Using all 360 degrees

    (I Hands down love the image that introduces this chapter Open-mouthed smile)
    With another slant on VR we enter the art world, or more poignantly, 3D imagery and photosphere’s.  Taking a whole world scene for the user to view and explore, taking a flat image and wrapping it around the viewers head.

  10. Social VR Metaverse

    Akin to Neil Stephenson’s Snow Crash, the author breaks down those single player walls in a VR experience and explores what more than one person can do in the MetaVerse, building a VR chat room when multiple VR participants can enter a room and talk (like your everyday meetings but FUN).

 

Pros / Cons and conclusion

Overall, I’m very impressed with this title, both for its content and approach but also because the author writes and thinks like me Open-mouthed smile.  There is a very clear intention to structure the content so that it is easily read and informs the reader at a clear pace.  Also unlike the previous title, it covers a much more varied level of content and approaches to VR.  As books go, it’s one of the best ones I’ve read recently (baring my own Smile with tongue out of course), certainly one to pick up if you want to get serious about VR.

Pro’s

  • Good fundamentals backed with practical examples
  • You’ll get several projects with a great variety of approaches, just about everything you would need for VR

Con’s

  • For once I’m stumped.  I simply have nothing bad to say on this title. Fantastic effort!

Get this book here

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here