Skip to content

Commit 8518994

Browse files
author
surface
committed
v1.0.4 update NRSDK version to 2.1.0.
1 parent b3ac6c5 commit 8518994

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

Assets/NrealLightWithOpenCVForUnityExample/Scripts/Utils/NRCamTextureToMatHelper.cs

+2-5
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ namespace NrealLightWithOpenCVForUnity.UnityUtils.Helper
1313
{
1414
/// <summary>
1515
/// NRCamTexture to mat helper.
16-
/// v 1.0.1
17-
/// Depends on NRSDK v 1.10.2 (https://nreal.gitbook.io/nrsdk/nrsdk-fundamentals/core-features).
16+
/// v 1.0.2
17+
/// Depends on NRSDK v 2.1.0 (https://nreal.gitbook.io/nrsdk/nrsdk-fundamentals/core-features).
1818
/// Depends on OpenCVForUnity version 2.4.1 (WebCamTextureToMatHelper v 1.1.2) or later.
1919
///
2020
/// By setting outputColorFormat to RGB, processing that does not include extra color conversion is performed.
@@ -179,9 +179,6 @@ protected override IEnumerator _Initialize()
179179
// Get physical RGBCamera position (offset position from Head).
180180
Pose camPos = NRFrame.GetDevicePoseFromHead(NativeDevice.RGB_CAMERA);
181181
rgbCameraPoseFromHeadMatrix = Matrix4x4.TRS(camPos.position, camPos.rotation, Vector3.one);
182-
// The position offset in the Z direction seemed too large, so code to change it to the same value as the center eye.
183-
// (This will greatly improve the misalignment with reality during projection, but it is not perfect.)
184-
//rgbCameraPoseFromHeadMatrix.m23 = -0.00678f;
185182

186183
// Get CenterEyePose (between left eye and right eye) position (offset position from Head).
187184
var eyeposeFromHead = NRFrame.EyePoseFromHead;

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* Android (Galaxy S10+ SC-04L)
1414
* Nreal Light (XREAL Light)
1515
* Unity 2020.3.48f1+ (NRSDK supports the development environment of Unity 2018.4.X and above.)
16-
* [NRSDK](https://developer.nreal.ai/download) Unity SDK 1.10.2
16+
* [NRSDK](https://developer.nreal.ai/download) Unity SDK 2.1.0
1717
* [OpenCV for Unity](https://assetstore.unity.com/packages/tools/integration/opencv-for-unity-21088?aid=1011l4ehR) 2.5.6+
1818

1919

0 commit comments

Comments
 (0)