v1.0.4 update NRSDK version to 2.1.0.

This commit is contained in:
surface 2023-10-02 20:00:53 +09:00
Родитель b3ac6c50b7
Коммит 8518994dbd
2 изменённых файлов: 3 добавлений и 6 удалений

Просмотреть файл

@ -13,8 +13,8 @@ namespace NrealLightWithOpenCVForUnity.UnityUtils.Helper
{
/// <summary>
/// NRCamTexture to mat helper.
/// v 1.0.1
/// Depends on NRSDK v 1.10.2 (https://nreal.gitbook.io/nrsdk/nrsdk-fundamentals/core-features).
/// v 1.0.2
/// Depends on NRSDK v 2.1.0 (https://nreal.gitbook.io/nrsdk/nrsdk-fundamentals/core-features).
/// Depends on OpenCVForUnity version 2.4.1 (WebCamTextureToMatHelper v 1.1.2) or later.
///
/// By setting outputColorFormat to RGB, processing that does not include extra color conversion is performed.
@ -179,9 +179,6 @@ namespace NrealLightWithOpenCVForUnity.UnityUtils.Helper
// Get physical RGBCamera position (offset position from Head).
Pose camPos = NRFrame.GetDevicePoseFromHead(NativeDevice.RGB_CAMERA);
rgbCameraPoseFromHeadMatrix = Matrix4x4.TRS(camPos.position, camPos.rotation, Vector3.one);
// The position offset in the Z direction seemed too large, so code to change it to the same value as the center eye.
// (This will greatly improve the misalignment with reality during projection, but it is not perfect.)
//rgbCameraPoseFromHeadMatrix.m23 = -0.00678f;
// Get CenterEyePose (between left eye and right eye) position (offset position from Head).
var eyeposeFromHead = NRFrame.EyePoseFromHead;

Просмотреть файл

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