2. Virtual Reality (VR) is the use of computer technology to create a
simulated environment. Unlike traditional user interfaces, VR places the
user inside an experience. users are immersed and able to interact with 3D
worlds. By simulating as many senses as possible, such as vision,
hearing, touch, even smell.
Virtual Reality
Ahmed Gamal
3. Augmented reality (AR) is a live direct or indirect view of a
physical, real-world environment whose elements are
augmented (or supplemented) by computer-generated sensory
input such as sound, video, graphics or GPS data. In which a view
of reality is modified (possibly even diminished rather than
augmented) by a computer.
Augmented Reality
Ahmed Gamal
4. According to the previous definitions of VR (virtual reality) and AR
(Augmented Reality) we can simply say that :
• VR : users are immersed and able to interact with virtual 3D
worlds .
• AR: In which a view of reality is modified .
Virtual Reality Vs Augmented Reality
Ahmed Gamal
5. It all started with Oculus Rift as far back as 2009 after this date
there were a new comers to the VR world like :
• Oclucs
• Microsoft HoloLens
• Sony’s Project Morpheus
• The Vive by Valve
• Samsung GearVR
• Google Cardboard
VR Major Competitors
Ahmed Gamal
7. Not to be outdone, Google announced its Cardboard virtual
reality headset at I/O 2014 and unveiled version 2 at the 2015
conference. Popping a smartphone into a cardboard container
and then strapping it to your head may sound like a joke, but it
actually works and it could become a low-cost way to experience
virtual reality.
Google CardBoard
Ahmed Gamal
8. The Cardboard SDKs for Android and Unity simplify common VR
development tasks so you can focus on building your new
immersive experience.
Cardboard SDK for Android
The Cardboard project aims at developing inexpensive virtual
reality (VR) tools to allow everyone to enjoy VR in a simple, fun,
and natural way. The Cardboard SDK for Android enables
developers familiar with OpenGL to quickly start creating VR
applications.
Cardboard SDK for Unity
Easily adapt an existing Unity 3D app for virtual reality or build
your own VR experience from scratch.
Building Virtual Reality app for CardBoard
Ahmed Gamal
9. This SDK allows you to use Unity to create virtual reality
experiences for Android and iOS apps running in Google
Cardboard.
Cardboard SDK for Unity
Ahmed Gamal
11. Unity is a flexible and powerful development platform for creating
multiplatform 3D and 2D games and interactive experiences. It's a
complete ecosystem for anyone who aims to build a business on
creating high-end content and connecting to their most loyal and
enthusiastic players and customers.
For more about unity watch this video
Unity
Ahmed Gamal
12. a) Download a free version of unity from Here.
b) Install Unity .
Get Started With Unity
Ahmed Gamal
13. In our first foray into Unity development, we created a simple
rolling ball game to know many of the principles of working with
Game Objects, Components, Prefabs, Physics and Scripting.
ROLL-A-BALL
Ahmed Gamal
14. To Create a simple ROLL-A-BALL game in unity you have to know How to :
a) Work with unity Editor ,assets , Creating Gameplay , others… From
Unity Documentation . At least the first two Chapters Here.
b) Learn how unity is using Physics in gaming From Here , Specially
Colliders and Rigidbodies .
c) Write a code in unity. Unity supports writing code using C# and Java
Script . We Used C# in our Game . To learn Scripting in Unity Check
This .Specially Creating and Using Scripts ,Variables and the Inspector
and Controlling GameObjects Using Components .
d) Creating a simple ROLL-A-BALL Game Unity officially Tutorials .
ROLL-A-BALL CONT.
Ahmed Gamal
16. This was the second game we created to apply advanced Unity
Concepts And tools .
Space War Game .
Ahmed Gamal
17. To Create a Space War game in unity you have to know How to :
a) Import Models , game Environment ,..etc from Unity Asset store
Check Asset Workflow .
b) Creating Martials Creating and Using Materials , Shaders & Textures .
c) Include Models into A unity project How do I import Models from my
3D app? . we used Importing Objects From Maya in our games
because Unity supports Maya by default without any prerequisites
steps .
d) Deal with audio In Unity Audio Files, Tracker Modules.
e) Creating a simple Space War Game Unity officially Tutorials .
Space War Game CONT.
Ahmed Gamal
18. Unity supports building games into many platforms Like windows,
Linux in desktop and IOS, Android in mobile.
Check this video to know how to build your Game.
Building The Game
Ahmed Gamal
19. While building that game on
android platform check
the development build check
box escape asking for a valid
SDK on android store.
Building The Game For Android Trick.
Ahmed Gamal
20. This SDK allows you to use Unity to create virtual reality
experiences for Android and iOS apps running in Google
Cardboard.
Cardboard SDK for Unity
Ahmed Gamal
21. The plugin's scripts and prefabs make it easy to :
• Begin a new VR Unity project from scratch
• Adapt an existing Unity 3D application to VR
• Make an app that can easily switch in and out of VR mode
The integration with the Cardboard SDK for Android provides :
• User head tracking
• Side-by-side stereo rendering
• Detecting Cardboard-only user inputs such as the trigger
• Automatic stereo configuration for a specific Cardboard model
• Distortion correction for Cardboard lenses
• An alignment marker to help center the screen under the lenses
• A settings button that links to the Cardboard app for managing headset
parameters
• Automatic gyro drift correction
Cardboard SDK for Unity Features
Ahmed Gamal
22. The integration with the Cardboard SDK for Android provides:
• User head tracking
• Side-by-side stereo rendering
• Detecting Cardboard-only user inputs such as the trigger
• Automatic stereo configuration for a specific Cardboard model
• Distortion correction for Cardboard lenses
• An alignment marker to help center the screen under the lenses
• A settings button that links to the Cardboard app for managing headset
parameters
• Automatic gyro drift correction
Cardboard SDK for Unity Features CONT.
Ahmed Gamal
23. • Simulate a user's head movement in Unity play mode using the mouse and
alt/control keys to pan or tilt the camera.
• Control the approximate field of view regardless of differences in
Cardboard device configurations.
• Respect camera zoom effects in a VR-safe manner, that is, compatible with
head tracking.
• Properly support picture-in-picture windows in stereo, and adjust their
screen position so they remain visible after distortion correction.
• Dynamically adjust the stereo level to reduce eye strain.
• Easily determine the direction the user is gazing, for example, to cast rays
for hit detection.
• Interaction with Canvas UI elements using gaze and the trigger.
• Use a single code path for both trigger and screen tap detection.
• Support for Image Effects and Deferred Rendering, or bypassing this
support for increased FPS.
• Check all the SDK Features Here.
Additional features
Ahmed Gamal
24. Download Cardboard Demo for Unity (direct link to unitypackage )
Requirements :
• Requires Unity v4.0+ for most cardboard features. Exceptions
include:
• Distortion correction requires Unity v4.5+.
• OnGUI legacy support requires Unity v5+ Personal or Pro, or Unity
4.5+ Pro with the Android Pro add-on.
• Download Unity
This page describes how to build and deploy the demo Cardboard
scene included in the Cardboard SDK for Unity, presuming little prior
Unity experience.
Cardboard for Unity Get Started
Ahmed Gamal