Jump to content

vethetheth

Verified Members
  • Posts

    54
  • Joined

  • Last visited

Posts posted by vethetheth

  1. Hi @C.T. @chengnay, any news on directpreview ? It's been months and it is really, really becoming tedious to develop on your hardware.

    Can we at least have an idea on where the problem is ? Everything works fine for you, but not a single developpers managed to make the directpreview work on this forum

    Please help us. It can't continue like this.

  2. Interop.WVR_InAppRecenter(WVR_RecenterType.WVR_RecenterType_YawAndPosition);

    This line doest exactly what we need : it recenter the view, and it resets our position, the controller are fine too. But the hand tracking hands are not reset. I tried to deactivate the hand tracking / resetting their position so they can be at the good place after recentering but i couldn't make it work... Do you have an idea while they try to fix it internally ?

  3.  Hello @chengnay, sorry for the long absence without response. What we wanted to do with the recenter was : reset the rotation (it works perfectly with your code) and reset the position of the player to the center of our scene (we could use a 0,0,0 transform GameObject for example). We managed to do both separately but not at the same time. And the WVR_RECENTER of the API doesn't work with hand tracking. Thanks for your help in advance.

     

     

     

     

  4. Sure.
    We are using applications with people that can not interfere with the UI of the headset. We have a web platform that does the calls to our Unity applications, and one of these calls is the recentering of our app. So the people inside the game don't have to do anything.

    We are currently grabbing all of our scene, putting it in a gameobject, rotate and recenter the gameobject. It is not an optimal solution because the World Positions are not followed by the now new position of the whole scene, so we had to rewrite most of our applications that uses rigidbody's and forces.

    because we can't move the OVRCameraRig, we didn't think of a better solution.

  5. Hello @chengnay, I am using the VIU version 1.17.0 and the 4.5.0-r.3 wave assets.
    I am testing the recentering of the application in the 0. Tutorial scene of the VIU Sample.

    Hand tracking is enabled.

    The controllers are working fine, but when i rotate my head and want to recenter the game, my hands doesn't follow and stay where they were.

    I did not modify the sample image.thumb.png.f2ea50ae7e1af0e7af1695c4248f2522.png

  6. Hi.

    I have different applications that call themselves through code.
    I use a launcher that launches an app, the app then launch the launcher, and the launcher calls another app.

    I am experiencing random crashes and I think it is because i don't quit / call the apps correctly.
    Is there a way to do it properly through WAVE code ? I am using unity

    What I want is do it properly : I am in the launcher, i want to quit the launcher, then launch the app. Quit the app, then launch the launcher etc...
    I need to completely quit my game : the Unity Application.Quit() doesn't "kill the application" so I had to use these lines of codes.

    Thanks in advance.

     

    Here is my code to launch a game :

        public static void NextGame(string gameName)
        {
            AndroidJavaClass up = new AndroidJavaClass("com.unity3d.player.UnityPlayer");
            AndroidJavaObject ca = up.GetStatic<AndroidJavaObject>("currentActivity");
            AndroidJavaObject packageManager = ca.Call<AndroidJavaObject>("getPackageManager");
            AndroidJavaObject launchIntent = packageManager.Call<AndroidJavaObject>("getLaunchIntentForPackage", gameName);
    
            ca.Call("finishAndRemoveTask");
            ca.Call("startActivity", launchIntent);
            up.Dispose();
            ca.Dispose();
            packageManager.Dispose();
            launchIntent.Dispose();
        }

    And to stop it :

        public static void StopGame()
        {
            AndroidJavaClass up = new AndroidJavaClass("com.unity3d.player.UnityPlayer");
            AndroidJavaObject ca = up.GetStatic<AndroidJavaObject>("currentActivity");
            ca.Call("finishAndRemoveTask");
            up.Dispose();
            ca.Dispose();
        }

     

  7. 21 hours ago, chengnay said:

    Hi @vethetheth,

    Could you try below environment setup?

    1. Downgrade your Unity version to 2019.4.xx

    2. Upgrade the Wave SDK to latest version(4.5.0-r.3)

     

    I just tested with Unity 2019.4.28f1(ControllerTipsTest scene), Wave SDK 4.5.0-r.3 and DirectPreview(HMD+Controller) works fine.

    I also tested with VIU's sample scene(UGUI), you MUST turn off your controllers, if not, you cannot move your head.

    Let me know if you problem still exists, thanks!

     

    UPDATE:

    I found a quick temporary solution to above issue regarding VIU's sample scene,

    You need to modify in Assets\HTC.UnityPlugin\VRModule\Modules\WaveVRModule.cs,

    line 76, #if VIU_WAVEXR_ESSENCE_CONTROLLER_MODEL && !UNITY_EDITOR

    If you install VIU using Package Manager, you NEED to copy to Packages folder.

    image.png.efc13f19ac10e41c9fdd3d36ae9141bb.png

    I tested your project(HTCLinkTest), it can run with the above temporary solution.

    Hi, I just tested it on a whole new project, and i still have the same problem in 2019.4.39f, updated wave SDK and i didnt touch the controllers for 10 minutes for both scenes

    Result is the same, static images, duplicated on each eye 😞

    It might be my hardware that breaks it ? I  tried it on two headsets...

    Can you please show me, or @Dario how can I setup the vive business streaming to see what is hapenning on play mode? It would greatly help me
    Thanks

  8. Thanks for your answer. Sadly, I was and still is in Android when i test my game. I have the same problem. When turning my head, i can see black borders all around the scene i have in front of me. I can't show you on the recorder, because it got the unity screen instead of the whole HMD... I hope it can help (I am on the vive focus 3)

    image.png.058bba12aaae9fb9610d4ea5f06486a2.png

  9. Sure. When moving the camera in the editor, it does work in the headset. But the headset is not moving on his own, and each eye has a different image of the scene. I tried using those 4 different cameras :

    image.png.76b8eb5aab5f4e3f43129bdd91e9a029.png

    I tried using 2019, 2020 and 2021 version

    image.thumb.png.58e1ed359bccd3cb547185c519b99448.png

    every parameter has been  tried in wi-fi

    WaveXR is ticked on PC and Android platform

    directpreview is enabled

    Apk has been installed, removed and reinstalled multiple time

    It would be really helpful if you help me find the solution.

    Thanks in advance

    HTCLinkTest.zip

×
×
  • Create New...