Skip to content
This repository was archived by the owner on Nov 8, 2019. It is now read-only.

GVR SDK for Unity v0.4.9

Compare
Choose a tag to compare
@rusmaxham rusmaxham released this 26 Apr 20:12
· 55 commits to master since this release

Upgrade Instructions

  • Plugin layout: This release rearranges the layout of the package. In a Cardboard project which is being upgraded from v0.4.5 or earlier, it is recommended to delete the Cardboard subdirectory before importing the new package.
  • New native libraries: In a Cardboard project which is being upgraded from v0.4.1 or earlier, it is recommended to delete the following files:
    • Plugins/Android/guava-jdk5-14.0.1.jar
    • Plugins/Android/libRenderingPlugin.so
    • Plugins/Android/libprotobuf-java-2.3-nano.jar

Fixes

  • Sensor Drift: Added Cardboard.SDK.AutoDriftCorrection to control gyro drift.
  • Clearing the whole screen: The entire screen is correctly cleared in VR mode.
  • Unity 5 Import Issues: The scripts have been fixed to eliminate compiler messages when importing the SDK into a Unity 5 project.

Additions

  • Canvas UI (uGUI) Support: The SDK provides a script to add gaze-based interaction to the Unity Event System. The main demo scene has been changed to illustrate this feature.
  • Alignment Marker in Editor: A simulated alignment marker is drawn in the Editor if the feature is enabled for the phone.
  • Distortion Correction in Editor: The editor simulates the same distortion correction during Play mode as occurs on the phone. This can be disabled in the SDK object's Inspector.
  • Neck model: A neck model is applied to the head tracking. The scale can be controlled by setting Cardboard.SDK.neckModelScale [0..1].

Deprecations

  • CardboardGUI: The CardboardGUI scripts and related assets have been moved to the Legacy folder. On Unity 4.6+, the new Canvas UI is the preferred UI system. The original demo scene, which uses this feature, has been moved to Legacy as well.
  • SkyboxMesh and StereoLensFlare: These scripts are not required in Unity 5.

Known Issues

  • (Fixed in Unity 5.1) Unity 5 rendering issues: As of Unity build 5.0.0f4, the following steps should be taken to fix or ameliorate any rendering issues, such as an all-black screen, flashing textures, or non-stereo views:
    • Enable the Development Build option in the Build dialog. This seems to fix various rendering glitches, like flashing textures.
      The root cause of the rendering glitches is under analysis, with assistance from Unity. Note: If you are using any Image Effects, make sure that StereoController's Direct Render property is set to false. Check if that fixes the issue first.
  • Build error "Unable to convert classes into dex format": See the Upgrade Instructions above.

Changelog

  • Added Cardboard.SDK.AutoDriftCorrection to turn gyro drift correction on/off (default on).
  • Added GazeInputModule for using gaze and magnet to interact with uGUI elements.
  • Added Cardboard.SDK.NeckModelScale to control the scale of the built-in neck model.
  • Added CardboardHead.trackRotation/trackPosition to control specific types of head tracking.
  • The entire screen is correctly cleared in VR mode.
  • Unity 5 import errors and warnings have been fixed; it will still ask to upgrade (say Yes).
  • The alignment marker is also drawn in the editor.
  • Distortion correction is applied in the editor.
  • Deprecated CardboardGUI scripts: not needed in Unity 5, moved to Legacy folder.
  • Deprecated SkyboxMesh and StereoLensFlare scripts: ditto.
  • Demo scene now uses uGUI instead of OnGUI.
  • Original demo scene using CardboardGUI moved to Legacy folder.