もりぞぅ
-
Posts
7 -
Joined
-
Last visited
Content Type
Profiles
Forums
Gallery
Blogs
Events
Store
Downloads
Posts posted by もりぞぅ
-
-
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.
-
Hello,
I'm trying SRWorks, but I feel the resolution is lower than that of the demo video.
How can I improve the resolution of the front camera? -
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?)
-------------------------------------------------------------------- -
-
Thank you for your reply.
I tried Unity 2018.2.20f but the result was the same.
Also, updating SteamVR 1.1.4 to SteamVR beta 1.2.10 did not work.
I also tried C - Sample - 0.8.0.2 but got the same result as you.
I hope this problem will be solved.
-
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.
Access camera resources to openCV
in VIVE SRWorks SDK
Posted
Trying GetDistortedTexture and GetDepthTexture of ViveSR_DaulCameraImageCapture also gave the same error.
Does SRWorks SDK have a function to display the front camera image on the HTC VIVE Pro display?
@Daniel_Y @Andy.YC_Wang @Sean_Su