Jump to content

もりぞぅ

Verified Members
  • Posts

    7
  • Joined

  • Last visited

Posts posted by もりぞぅ

  1. I wanted to get the texture of the front camera and used ViveSR_DaulCameraImageCapture.GetUndistortedTexture with the following code, but I could not get the texture well.
     

                Texture2D imgTexture_Left = new Texture2D(ViveSR_DualCameraImageCapture.UndistortedImageWidth, ViveSR_DualCameraImageCapture.UndistortedImageHeight, TextureFormat.RGBA32, false);
                Texture2D imgTexture_Right = new Texture2D(ViveSR_DualCameraImageCapture.UndistortedImageWidth, ViveSR_DualCameraImageCapture.UndistortedImageHeight, TextureFormat.RGBA32, false);
                int frameIndex, timeIndex;
                Matrix4x4 poseLeft, poseRight;
                ViveSR_DualCameraImageCapture.GetUndistortedTexture(out imgTexture_Left, out imgTexture_Right, out frameIndex, out timeIndex, out poseLeft, out poseRight); // Line 97
                quad.GetComponent<Renderer>().material.mainTexture = imgTexture_Left; 

    The runtime errors are as follows:

    NullReferenceException: Object reference not set to an instance of an object
    Vive.Plugin.SR.ViveSR_DualCameraImageCapture.GetUndistortedTexture (UnityEngine.Texture2D& imageLeft, UnityEngine.Texture2D& imageRight, System.Int32& frameIndex, System.Int32& timeIndex, UnityEngine.Matrix4x4& poseLeft, UnityEngine.Matrix4x4& poseRight) (at Assets/ViveSR/Scripts/ViveSR_DualCameraImageCapture.cs:353)
    ******.*******.Start () (at Assets/********/MyScript.cs:97)

    Line 353 of ViveSR_DaulCameraImageCapture is the following code.

               if (DataInfoUndistorted[(int)SeeThroughDataMask.UNDISTORTED_FRAME_LEFT].ptr != IntPtr.Zero && DataInfoUndistorted[(int)SeeThroughDataMask.UNDISTORTED_FRAME_RIGHT].ptr != IntPtr.Zero)

     Please let me know if there is a solution.

    Other methods are acceptable.

    Thank you.

     

    @Sean_Su

  2. Hello, thanks for your email.
    I tried SRWorks 0.8.5.0 with RTX2070, but the following error appeared and the Experience Demo did not work.
    Vive_SRWorks_Demo.exe and Vive_SRWorks.exe in the Build file could be executed.
    Unity version is 2019.2.12f1.
    Which version of SteamVR Plugin should I use, 1.0 or 2.0?
    Please let me know if there is a solution.
    --------------------------------------------------------------------
    Assets\SteamVR_Input\ActionSetClasses\SteamVR_Input_ActionSet_srinput.cs(17,61): error CS0234: The type or namespace name 'SteamVR_ActionSet' does not exist in the namespace 'Valve.VR' (are you missing an assembly reference?)
    Assets\SteamVR_Input\ActionSetClasses\SteamVR_Input_ActionSet_default.cs(17,61): error CS0234: The type or namespace name 'SteamVR_ActionSet' does not exist in the namespace 'Valve.VR' (are you missing an assembly reference?)
    Assets\SteamVR_Input\ActionSetClasses\SteamVR_Input_ActionSet_buggy.cs(17,59): error CS0234: The type or namespace name 'SteamVR_ActionSet' does not exist in the namespace 'Valve.VR' (are you missing an assembly reference?)
    Assets\SteamVR_Input\ActionSetClasses\SteamVR_Input_ActionSet_platformer.cs(17,64): error CS0234: The type or namespace name 'SteamVR_ActionSet' does not exist in the namespace 'Valve.VR' (are you missing an assembly reference?)
    Assets\SteamVR_Input\SteamVR_Input_Actions.cs(62,23): error CS0246: The type or namespace name 'SteamVR_Action_Boolean' could not be found (are you missing a using directive or an assembly reference?)
    Assets\SteamVR_Input\ActionSetClasses\SteamVR_Input_ActionSet_srinput.cs(20,24): error CS0246: The type or namespace name 'SteamVR_Action_Boolean' could not be found (are you missing a using directive or an assembly reference?)
    Assets\SteamVR_Input\SteamVR_Input_Actions.cs(70,23): error CS0246: The type or namespace name 'SteamVR_Action_Boolean' could not be found (are you missing a using directive or an assembly reference?)
    Assets\SteamVR_Input\ActionSetClasses\SteamVR_Input_ActionSet_srinput.cs(28,24): error CS0246: The type or namespace name 'SteamVR_Action_Boolean' could not be found (are you missing a using directive or an assembly reference?)
    Assets\SteamVR_Input\ActionSetClasses\SteamVR_Input_ActionSet_srinput.cs(36,24): error CS0246: The type or namespace name 'SteamVR_Action_Boolean' could not be found (are you missing a using directive or an assembly reference?)
    ~~~
    Assets\SteamVR_Input\SteamVR_Input_Actions.cs(54,24): error CS0246: The type or namespace name 'SteamVR_Action_Boolean' could not be found (are you missing a using directive or an assembly reference?)
    Assets\SteamVR_Input\SteamVR_Input_Actions.cs(56,24): error CS0246: The type or namespace name 'SteamVR_Action_Boolean' could not be found (are you missing a using directive or an assembly reference?)
    Assets\SteamVR_Input\SteamVR_Input_Actions.cs(58,24): error CS0246: The type or namespace name 'SteamVR_Action_Vector2' could not be found (are you missing a using directive or an assembly reference?)
    Assets\SteamVR_Input\SteamVR_Input_Actions.cs(60,24): error CS0246: The type or namespace name 'SteamVR_Action_Pose' could not be found (are you missing a using directive or an assembly reference?)
    --------------------------------------------------------------------

  3. I also ran the sample scenes of SRWorks SDK v0.8.0.2, but execution stops similarly with the log of [ENGINE_SEETHROUGH_0_DLL] ____ [LOG] TurnOn.
    The environment is as follows.
    -------------------------------------------------------
    · Unity 5.5.3 f 1 (64 bits)
    · NVIDIA GeForce RTX 2070 (latest driver)
    · Steam VR 1.1.4
    · Steam VR Plugin v1.2.3
    -------------------------------------------------------

    In the same environment, SRWorks SDK v0.7.5.0 can operate normally.


    Please tell me if there is a solution to operate the sample scenes in "Vive_SRWorks_Demo.exe" or "Vive_SRWorks.exe", Vive - SRWorks - 0.8.0.2 - Unity - Plugin.unitypackage.

×
×
  • Create New...