Skip to content

zhangjingpu/VRDesignLab

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VR Design Lab project written in Unity

Runs on Cardboard, DK2, GearVR.

Inspired by Google's Cardboard Design Lab Android app. VR Design Lab was designed to showcase the do's and don'ts of VR with instructional labs inside of VR. It was designed to be extensible so anyone with a new idea can add a new lab using Unity. It's simple to add additional labs and hook them up to the main menu.

This is a VR community owned project. Open sourced - No License.

Please send us your pull requests!

How to add a VR Lab

  1. Make a new scene
  2. Drag in the "App Boot Strap" prefab (Assets/Application/App Boot Strap)
  3. Add a menu entry in the AllMenuItems() function inside LevelManager.cs for the new scene. (Assets/Application/Level Manager)
  4. Add scene to build settings so it gets included in the build.
  5. Please only use assets and code that can be open sourced.
  6. Start inside the VRDL_Start scene to run app.

Compiling for Platforms

Windows/Mac/Linux/DK2:

  1. Open the build settings, Click PC/Mac/Linux and click the appropriate OS type to the right.
  2. For DK2, click Player Settings and make sure "Virtual Reality Supported" is checked.
  3. Build

Cardboard:

  1. Open the VRDL_Start scene and select the App Boot Strap object in the heirarchy. Check the checkbox named "Build for Cardboard".
  2. Open the build settings, click Android, click Player Settings and uncheck "Virtual Reality Supported" checkbox. Cardboard doesn't need this option.
  3. If your building for GearVR and Cardboard, make sure to have unique Product names and Bundle Idenifiers so you can install both on your phone. See build settings/player settings/other under the phone tab.
  4. Plug in phone and Build & Run to install it and launch it on your phone.

GearVR:

  1. Open the build settings, click Android, click Player Settings and make sure "Virtual Reality Supported" is checked.
  2. Get your Oculus Signature File and put it in Project/Assets/Plugins/Android/assets/
  3. If your building for GearVR and Cardboard, make sure to have unique Product names and Bundle Idenifiers so you can run both versions on your phone. See build settings/player settings/other under the phone tab.
  4. Plug in phone and Build & Run to install it and launch it on your phone.

Compiled builds

DK2: Download

Cardboard: Download

GearVR Download

Engage and Contribute

There's still lots of work to go to complete all the labs. We need your help! Email me if you have questions or suggestions.

See the projects Trello board for what's needed.

Contributors:

  • Steve Gehrman
  • John C. Lilly
  • (your name)

Thanks!

by VRUX

About

VR Design Lab project created in Unity.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 98.1%
  • GLSL 1.4%
  • Other 0.5%