OpenXR Tools for Windows Mixed Reality When to update? from 2.8.1 to 2.9.0
2.9.0 update OnCustomDataChannelDataReceived.How to receive from PC Unity.
How to from mediaCapture->CapturePhotoToStreamAsync get LocationData or Other methods?
Please give me some suggestions when I get the location frame in take photos.
Hi @ccrop since this issue hasn't had any activity in a while I'll be closing it. If your issue persists please consider opening new tickets in the following repositories:
For questions specific to the OpenXR Tools for Windows Mixed Reality please open a ticket in the OpenXR-MixedReality repository.
For questions specific to the Unity Open Xr Plugin please open a ticket in Open Xr Unity Samples repository.
Hi:
OpenXR Tools for Windows Mixed Reality When to update? from 2.8.1 to 2.9.0
2.9.0 update OnCustomDataChannelDataReceived.How to receive from PC Unity.
How to from mediaCapture->CapturePhotoToStreamAsync get LocationData or Other methods? Please give me some suggestions when I get the location frame in take photos.
eg:unity C# / void OnCapturedPhotoToMemory(PhotoCapture.PhotoCaptureResult result, PhotoCaptureFrame photoCaptureFrame) { if (photoCaptureFrame.hasLocationData) { photoCaptureFrame.TryGetCameraToWorldMatrix(out Matrix4x4 cameraToWorldMatrix); Quaternion rotation = Quaternion.LookRotation(-cameraToWorldMatrix.GetColumn(2), cameraToWorldMatrix.GetColumn(1)); photoCaptureFrame.TryGetProjectionMatrix(Camera.main.nearClipPlane, Camera.main.farClipPlane, out Matrix4x4 projectionMatrix); m_cameraToWorldMatrix = cameraToWorldMatrix; m_projectionMatrix = projectionMatrix; } lock(m_frameMutex);
m_latestFrame = frame;
photoCaptureObject.StopPhotoModeAsync(OnStoppedPhotoMode); } / eg:C++ From video stream (HoloLens2ForCV) /* void VideoFrameProcessor::OnFrameArrived(const MediaFrameReader& sender, const MediaFrameArrivedEventArgs& args) { if (MediaFrameReference frame = sender.TryAcquireLatestFrame()) {
std::lock_guard
} } */
Remote side (your Windows PC): Unity 2021.3.11 nVidia RTX 3080 MRTK2 new OpenXR Tools for Windows Mixed Reality 2.8.1
*Player side (HoloLens 2) HoloLens 2