Jump to content

wzs

Verified Members
  • Posts

    9
  • Joined

  • Last visited

Posts posted by wzs

  1. 20 hours ago, Tony PH Lin said:

    Hi @wzs,

    Are you looking something to disable Chaperone when user is out of boundary?

    For example like LBE or Arcade use case for larger space movement, is this your application case?
    If it's your case then I'll route you to enterprise forum since we have different configurations for your application.
    Thanks.

    Hi, @Tony PH Lin

    Thank you for your prompt reply!

    Yes, I am looking for the method to disable Chaperone.

    please guide me to the enterprise forum. 

    Thanks

     

     

  2. Hi, there

    Is it possible to disable the "Boundary Lost" message inside my Apps on Focus 3?

    I would like to check if user out of boundary and then set the Arena's range and orientation automatically in my app.

    I looked through the sdk documentation and only found a function name WVR_GetArena() in the package named "Vive Wave XR Plugin - Native" related to this topic.

    And I would also like to know if I can forcibly terminate the "boundary lost" Activity when it occurs?

    Could you give me more information? 

    Thank you

  3. I have solved this problem.

    For somebody who may need:

     

    Quote
    public void RunEyeCalibration()
    {    using (AndroidJavaObject joActivity = new AndroidJavaClass("com.unity3d.player.UnityPlayer").GetStatic<AndroidJavaObject>("currentActivity"))
        {
            try
            {
                AndroidJavaObject intentObject = new AndroidJavaObject("android.content.Intent");
                intentObject.Call<AndroidJavaObject>("setClassName", "vive.wave.vr.eye.calibration", "com.htc.vr.unity.WVRUnityVRActivity");
                intentObject.Call<AndroidJavaObject>("setAction", "android.intent.action.MAIN");
                joActivity.Call("startActivity", intentObject);
            }
            catch (Exception e)
            {
                
            }
        }
    }

     

    Notice that the code like that

    AndroidJavaObject joIntent = joPackageManager.Call<AndroidJavaObject>("getLaunchIntentForPackage", "vive.wave.vr.eye.calibration")

    will not return the Intent correctly may caused by our apk have no permission to get the list of package name, it seems a little weird.

    However, it worked for me when I manually created an Intent and used hard-coded calls to the eye calibration activity.

     

  4. On 11/15/2022 at 5:17 PM, Alex_HTC said:

    @wzs I'll have to double check this, but the package name is "vive.wave.vr.eye.calibration"

    And launching an intent looks roughly like this (I'm not sure this is the right answer right now... but htere are several approaches to launching an app), which should take "vive.wave.vr.eye.calibration" as the parameter
     https://stackoverflow.com/questions/51460822/unity-android-intents

    Hi, Alex. Still not works. 

    Our code works well on Pico Neo 2 eye while invoking built-in eye calibration activity.

    Does it need pass any parameter when trying to launch "vive.wave.vr.eye.calibration"?

     

    Our code:

    public static void OpenPackage(string pkgName)
            {
                using (AndroidJavaClass jcPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer"))
                {
                    using (AndroidJavaObject joActivity = jcPlayer.GetStatic<AndroidJavaObject>("currentActivity"))
                    {
                        using (AndroidJavaObject joPackageManager = joActivity.Call<AndroidJavaObject>("getPackageManager"))
                        {
                            using (AndroidJavaObject joIntent = joPackageManager.Call<AndroidJavaObject>("getLaunchIntentForPackage", pkgName))
                            {
                                if (null != joIntent)
                                {
                                    joActivity.Call("startActivity", joIntent);
                                }
                            }
                        }
                    }
                }
            }
                      
           // invoke eye calibration      
           #if UNITY_ANDROID
            Utils.Android.OS.OpenPackage("vive.wave.vr.eye.calibration");
           #endif
                      
            

     

     I aslo add queries to AndroidManifest.xml

    <queries>
            <package android:name="vive.wave.vr.eye.calibration" />
        </queries>

     

  5. I found i cannot obtain the eyeTrackingData when running the EyeTracking Demo in DirectPreview(DP) mode.

    Wave.Essence.Eye.EyeManager Update() m_LocationSpace: World, hasEyeTrackingData: False

    I wonder if the current version of DP supports transferring eye tracking data from the new Focus 3 Eye Tracker Accessory.

    Or is it that the only way to access eye tracking data is to build an apk?

    Thanks.

×
×
  • Create New...