Holographic Photo Blending is the amazing captured image data and it is so useful device this year.
MRTK2 Hololens 2 capture not working, just white quad in space.
Has anyone else tried this with Hololens 2? It seems TryGetCameraToWorldMatrix and TryGetProjectionMatrix does not return the correct values. Always returning the same values for me (using current latest Unity 2019 LTS, 2019.4.13), so the position of the quad is never updated.
@AndHog The image blending works fine for me on the HoloLens 2, MRTK 2.4.0, and Unity 2019.4.11f using @erics_vulcan library HoloLensCameraStream. Check out the Projection Example.
As for now, I assume that the “camera view transform” and “projection transform” are only available using VideoPreview instead of VideoRecord on the HoloLens 2.
Microsoft provides a helper script to convert System.Numerics.Matrix4x4 to UnityEngine.Matrix4x4. But they define the conversion “ToUnity()” different than the HoloLensCameraStream library. Maybe this could be related?
Amazing, after some fiddling I got the example to work great! Now I just need to implement this into my current project ![]()
Thanks a bunch @cookieofcode !!
edit:
I still hope unity fixes this in the future, but now I can at least verify current solution. Could be related to that as you say, we’ll see going forward hopefully.
Thank you so much for your tutorial!
I could follow your scripts and it is running perfectly!
The only problem is that I need to record the view of the user but although the canvas and detected faces exist in the normal field of view of the user, could not be observable from device portal, recorded videos or captured photo from the view. Could you please guide me on how I could be able to capture them in the recorded video and pictures?
Hololens 2 It seems TryGetCameraToWorldMatrix and TryGetProjectionMatrix does not return the correct values. Always returning the same values for me (using current latest Unity 2019 LTS, 2019.4.13)
thanks for this
Have you solved this problem?