Skip to content

JimSeker/CardBoardVR

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CardBoardVR

These examples are for Android's CardBoard.

Note: There's a new open source Cardboard SDK for iOS and Android NDK that offers a streamlined API, improved device compatibility, and built-in viewer profile QR code scanning. As of Nov 6, 2019. So all ones below are deprecated. When I get some time, work on replacements, but in 2022, I still can't get these to work. thanks google. https://developers.google.com/cardboard/develop

They are built with AndroidStudio in java. For more information see https://developers.google.com/cardboard and their repo as well https://github.com/googlevr/gvr-android-sdk/

legacy/ no longer updated code. see readme.

CardBoardSample is Google's example code, but setup for studio correctly.

FloatingCube is a floating cube in space. It is based on the OpenGL30Cube example. This example separates the classes to make it easier to see the CardBoardActivity and the StereoRenderer. The cube and color class are the same as the opengl30cube example. The CardboardOverlayView is borrowed from the CardBoardSample code.

FloatingCubes is based on FloatCube, except there are 8 cubes, which each turn differently. Included the Floor code from CardBardSample in Floor.java with the necessary parameters from the renderer are send to the draw function. Since GLES30 is backward compatible to 2.0, no changes where made to the shader/vertex code.

FlyingAroundACube is based on FloatingCube. When you "click/touch" you will move (mostly) in the direction the phone is facing.

These are example code for University of Wyoming, Cosc 4730 Mobile Programming course. All examples are for Android.

Releases

No releases published

Packages

No packages published