/GearVRf-Demos

Collection of GearVRf demo apps

Primary LanguageJava

GearVRf-Demos

The easieast and fastest way to experience our demos is to use the release_v3.1 branch.

Getting the source code

There are two options:

Building and running:

  • In Android Studio select File->New->Import Project and choose the GearVRf-Demos folder. Android Studio lets you browse the code and install and execute any of the demos.
  • To build and install all of the demos from the command line execute gradlew installDebug in the GearVRf-Demos folder. To uninstall the demos execute gradlew uninstallDebug.
  • To install a specific demo then execute, for example, gradlew gvr-simplesample:installDebug

Note 1: The demos will need an Oculus signature you can download from https://developer.oculus.com/osig/. In gradle.properties you can define an OCULUS_SIGS_DIRECTORY property and point it to the directory where you stored your Oculus signatures. The build automatically will include them for you in the apks. Otherwise you will be responsible for copying the signature files to the demo "assets" directory.

Note 2: If you want to run without loading into a headset, enable Samsung VR Service developer mode: - go to Settings > Applications > manage applications > Gear VR Service > Manage Storage - press the VR Service Version 6 times - if you get a message 'You are a developer' you should see a toggle to enable developer mode - if you get a message 'You are not a developer' you probably haven't installed a valid apk with your oculus signature - install any of demos and try again

gvr-360photo

A minimal sample showing how to display an equirectangular (360) photo.

gvr-360video

A minimal sample showing how to display an equirectangular (360) video using either Android's MediaPlayer class or the ExoPlayer class.

gvr-3dcursor-simple

A simplified version of the gvr-3dcursor sample that shows how to use the 3DCursor plugin.

gvr-3dcursor

Shows how to use the 3DCursor plugin.

gvr-accessibility

Shows how to use GearVRf's accessibility classes. For example: InvertedColors, TextToSpeech, and Zoom.

gvr-bullet

Simple sample showing how to use GearVRf with the Physics plugin.

gvr-camera2renderscript

Simple sample showing how to use the camera2 api along with renderscript for use with the passthrough camera.

gvr-cardboard-audio

Simple example of Spatial Audio using GoogleVR's audio library (previously used cardboard's audio library).

gvr-complexscene

A simple sample which can contain as many Stanford bunnies as we want to make it complex

gvr-controls

A nice demo that shows input from both the gamepad and touchpad to control a character.

gvr-cubemap

A simple example to show how to load in a cubemap and use it for the background as well as a reflection on an object.

gvr-events

An example showing how to display Android Views inside VR and route events to those views.

gvr-eyepicking

A simple picking example.

gvr-gamepad

A minimal example showing how to receive input from a gamepad.

gvr-immersivepedia

A larger sample that shows a concept of an immersive virtual museum. Uses many features of GearVRf: picking, TextViews, Video, input, etc.

gvr-javascript

A minimal example showing how an application can be written with Javascript.

gvr-keyboard

A sample that shows how to create a virtual keyboard, including voice input, and use it in a simple trivia game.

gvr-lua

A minimal example showing how an application can be written with Lua.

gvr-meshanimation

A simple sample that loads in an animated model and starts the animation.

gvr-modelviewer2

A viewer that allows you to select and display models stored in /sdcard/GVRModelViewer2/. You can look at the model from different angles, change lighting, look at it in wireframe, and toggle animations. Uses the libGDX plugin for UI.

gvr-multilight

A simple sample showing how to use multiple lights.

gvr-outline

A sample showing how to use multiple render passes with the same geometry to show an outline.

gvr-polyline

A sample showing how to draw lines.

gvr-remote-scripting

The remote scripting sample enables the debug server and sets up a text object with the ipaddress of the phone so we know where to telnet into.

gvr-renderableview

Inflates and displays some Android views onto a rotating cube.

gvr-sceneobjects

Shows how create the various scene object types: quad, cube, sphere, cylinder, cone, passthrough camera, text, video. Tap the touchpad to cycle through the objects.

gvr-shadows

A sample that shows a light source with shadowing.

gvr-simplesample

A simple sample that creates a quad and applies a texture to it.

gvr-solarsystem

A sample that shows both heirarchy and animation.

gvr-switch

A sample that shows how to use the GVRSwitch node.

gvr-tutorial-lesson2

Shows initial scene setup and object creation.

gvr-tutorial-lesson3

Shows event handling and picking.

gvr-tutorial-lesson4

Shows creating and using components. In this tutorial, a simple particle system is created.

gvr-tutorial-lesson5

Shows how to integrate Sound and text.

gvr-tutorial-lesson6

Shows loading and using model assets.

gvr-video

A movie theater sample. Plays back a video, has playback controls and has two theaters to choose from.

gvr-vuforia

A simple augmented reality sample using the Vuforia computer vision library. It looks for a marker and displays a teapot on top of it. You can use either the stone or chips markers. PDFs for the markers are in gvr-vuforia/app/src/main/.

gvr-x3d-demo

Loads and displays an X3D model.

Build tips