Skip to content

VIVE Focus Porting Guide

ChengNan Yang edited this page Jun 22, 2020 · 54 revisions

Development Environment Setup

  1. Unity 5.6.3f1 with Android Support
    • Note: WaveVR SDK requires Unity 5.6.3f1 or newer
  2. Android SDK (version 3859397)
    • sdkmanager --sdk_root=<android_sdk_home> --package_file=<pkg_file>
  3. Java JDK (jdk1.8.0_171)
    • Note: Java JDK 10 is not compatible

Steps to build APK

  1. Download and import Vive Input Utility(GitHub, Asset Store). Note: VIVE Focus requires Unity Editor 5.6.3 and above

    portingguide_01

  2. Download and import WaveVR SDK Unity plugin

    • Go to Assets > Import Package > Custom Package… and select wavevr.unitypackage
    • 3 extra folders(ControllerModel/Plugins/WaveVR) will appear in project folder

    portingguide_02

    • Fix compile error due to WVR API updated in latest release. In WaveVRModule.cs line 149, replace enum WVR_InputId_Alias1_Bumper into WVR_InputId_Alias1_Digital_Trigger,
      (1 << (int)(WVR_InputId.WVR_InputId_Alias1_Digital_Trigger));
      
  3. Go to Edit > Preferences… > VIU Settings, click Switch Platform button of VIVE Focus

    portingguide_03

  4. Import recommended WaveVR Settings

    portingguide_04

  5. Check VIVE Focus in VIU Settings

    portingguide_08

  6. Add ViveCameraRig and VivePointers prefabs to your scene, refer to Example 0.Tutorial

    portingguide_09


Troubleshooting

  1. Unity Editor did not install Android Support

    portingguide_05

    portingguide_06

  2. Setup External Tools in Unity Preferences

    portingguide_07

  3. Wrong controller render model shown

    • WaveSDK <2.1.0 will not show correct render model
    • WaveSDK >=2.1.0 will show only Finch render model
    • WaveSDK >=3.0.2 can show Chirp render model