# Magic Leap Hub’s Device Stream Issue - Missing superimposition between holograms and reality

**URL:** <https://forum.magicleap.cloud/t/magic-leap-hub-s-device-stream-issue-missing-superimposition-between-holograms-and-reality/1583>\
**Category:** General\
**Tags:** development, ml-hub\
**Created:** [March 13, 2023, 2:02pm UTC](https://forum.magicleap.cloud/t/magic-leap-hub-s-device-stream-issue-missing-superimposition-between-holograms-and-reality/1583 "2023-03-13T14:02:10Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![filo.cino](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/filo.cino/32/2307_2.png) [@filo.cino](https://forum.magicleap.cloud/u/filo.cino)\
**Post date:** [March 13, 2023, 2:02pm UTC](https://forum.magicleap.cloud/t/magic-leap-hub-s-device-stream-issue-missing-superimposition-between-holograms-and-reality/1583/1 "2023-03-13T14:02:10Z")

</div>

ML2 OS: 1.1.0  
ML Hub: ML Hub Version 2.0.8.202302102204  
ML2 Unity SDK: 1.3.0  
Device Stream settings: MR - 1080p - rtsps - 9:10 - UDP over Wi-Fi

It was not possible to achieve superimposition between holograms and reality while streaming ML2 content on ML Hub

---

<div class="post-metadata">

**Author:** ![kdowney](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/kdowney/32/481_2.png) [@kdowney](https://forum.magicleap.cloud/u/kdowney)\
**Post date:** [March 13, 2023, 7:12pm UTC](https://forum.magicleap.cloud/t/magic-leap-hub-s-device-stream-issue-missing-superimposition-between-holograms-and-reality/1583/2 "2023-03-13T19:12:05Z")

</div>

Hi @filo.cino thank you for your post. It's best to post Device Stream error logs so we can better understand your issue.

 ![image (12)](https://us1.discourse-cdn.com/flex019/uploads/magicleap1/original/1X/c9506112b55127af483cb2fffbd5e5b1a23dee51.jpeg)

---

<div class="post-metadata">

**Author:** ![filo.cino](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/filo.cino/32/2307_2.png) [@filo.cino](https://forum.magicleap.cloud/u/filo.cino)\
**Post date:** [March 14, 2023, 12:47pm UTC](https://forum.magicleap.cloud/t/magic-leap-hub-s-device-stream-issue-missing-superimposition-between-holograms-and-reality/1583/3 "2023-03-14T12:47:34Z")

</div>

Thanks for your quick reply @kdowney! I do not mean it happens in a specific confdition. I have never been able to exactly replicate the same reality-holograms superimposition I have on the glasses on the external monitor I am streaming on.  
There is always the same offset due to the fact that the "extenal world" camera is not in the same place as my eyes are. Do you have thought about a software correction for the streamed holograms as for the HoloLens 2?

---

<div class="post-metadata">

**Author:** ![kbabilinski](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/kbabilinski/32/19_2.png) [@kbabilinski](https://forum.magicleap.cloud/u/kbabilinski)\
**Post date:** [March 15, 2023, 3:31pm UTC](https://forum.magicleap.cloud/t/magic-leap-hub-s-device-stream-issue-missing-superimposition-between-holograms-and-reality/1583/4 "2023-03-15T15:31:46Z")

</div>

Specifying the stereo convergence point in Unity or the Focus point in a native app improves the camera alignment .

See the Unity guide here:

[https://developer-docs.magicleap.cloud/docs/guides/unity/display/unity-stabilization-overview](https://developer-docs.magicleap.cloud/docs/guides/unity/display/unity-stabilization-overview)

And the more general guide here:  
[https://developer-docs.magicleap.cloud/docs/guides/best-practices/improve-visual-stability](https://developer-docs.magicleap.cloud/docs/guides/best-practices/improve-visual-stability)

---

<div class="post-metadata">

**Author:** ![g23tk014](https://avatars.discourse-cdn.com/v4/letter/g/e495f1/32.png) [@g23tk014](https://forum.magicleap.cloud/u/g23tk014)\
**Post date:** [September 18, 2023, 3:51pm UTC](https://forum.magicleap.cloud/t/magic-leap-hub-s-device-stream-issue-missing-superimposition-between-holograms-and-reality/1583/5 "2023-09-18T15:51:32Z")

</div>

his solution addresses the visibility issue of MagicLeap2, but it does not solve my problem.

The problem I'm currently facing is that there's a slight discrepancy between the video captured by the camera and what the user sees, due to the difference in the positions of the user's eyes and the camera. In MRTK's HoloLens2, the problem is addressed as shown in the following URL:

> <https://github.com/microsoft/MixedRealityToolkit-Unity/issues/8707>
>
> \## Describe the bug
> 
> When using Mixed Reality Capture holograms aren't aligned… with pv camera (XRSDK). It seems that the transformation offset isn't considered when rendering from the pv camera. With mixed reality built-in xr platform integration hologram alignment ist correct. The problem exists only with XRSDK.
> 
> \## To reproduce
> 
> Steps to reproduce the behavior:
> 
> 1. Using mrtk InteractableExamples-scene
> 2. Added mrtk + xrsdk
> 3. Attach TrackedPoseDriver to MainCamera
> 4. Using cloned DefaultXRSDKConfigurationProfile, just enabled Render from PVCamera
> 5. Build XR SDK app to Hololens (ARM)
> 
> \## Expected behavior
> 
> Aligned holograms with PV camera
> 
> \## Screenshots
> 
> !\[bugReport\](https://user-images.githubusercontent.com/70317161/94552270-e5285200-0256-11eb-92e1-02b7cee18477.jpg)
> 
> !\[20200929\_123139\_HoloLens\](https://user-images.githubusercontent.com/70317161/94552344-fffac680-0256-11eb-96ba-5b99a6d0fb90.jpg)
> 
> 
> \## Your setup (please complete the following information)
> 
> \- Unity 2019.4.9f1 and Unity 2020.1.6f1 
> \- Mixed Reality Toolkit 2.4.0
> \- Windows XR Plugin 4.0.2
> \- XR Plugin Managment 3.2.15
> 
> \## Target platform (please complete the following information)
> 
> \- HoloLens 2

Is there a similar solution for MagicLeap2?

---

<div class="post-metadata">

**Author:** ![cstavros](https://avatars.discourse-cdn.com/v4/letter/c/ebca7d/32.png) [@cstavros](https://forum.magicleap.cloud/u/cstavros)\
**Post date:** [September 20, 2023, 12:13am UTC](https://forum.magicleap.cloud/t/magic-leap-hub-s-device-stream-issue-missing-superimposition-between-holograms-and-reality/1583/6 "2023-09-20T00:13:11Z")

</div>

Here's a screenshot of the issue being reported. Generally speaking, the content appears shifted about 4" upward and 2" to the right of the placement observed first-hand in the headset. As an example, in the attached photo, the buttons in the photo appear centered within the orange circle when viewed spatially, in-headset, but the circle is offset by that 2"x4" mis-position in photos and video taken from the ML2. This offset is pretty consistent regardless of the scene origin, content, scale, etc. It seems to be a simple function of superposition due to the offset of the camera vs the eyeball, that could easily be fixed in the capture API logic (hint: anchor the virtual content slightly down and to the left in the recorded camera frustum to account for the camera offset)?.

 ![Screenshot 2023-09-19 at 5.07.17 PM](https://us1.discourse-cdn.com/flex019/uploads/magicleap1/original/2X/a/acbb06c6290feb26b0c2dfbc57ec4641d57311da.jpeg)

---

<div class="post-metadata">

**Author:** ![etucker](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/etucker/32/842_2.png) [@etucker](https://forum.magicleap.cloud/u/etucker)\
**Post date:** [September 20, 2023, 8:27pm UTC](https://forum.magicleap.cloud/t/magic-leap-hub-s-device-stream-issue-missing-superimposition-between-holograms-and-reality/1583/7 "2023-09-20T20:27:58Z")

</div>

Hi @cstavros,

Thank you for reaching out regarding this issue. If we were to add this feature in the capture API logic, how would you like to see it implemented?

Best,

El

---

<div class="post-metadata">

**Author:** ![etucker](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/etucker/32/842_2.png) [@etucker](https://forum.magicleap.cloud/u/etucker)\
**Post date:** [September 20, 2023, 10:35pm UTC](https://forum.magicleap.cloud/t/magic-leap-hub-s-device-stream-issue-missing-superimposition-between-holograms-and-reality/1583/8 "2023-09-20T22:35:46Z")

</div>

Closing this issue and moving this discussion -\> [Hologram Composition Offset](https://forum.magicleap.cloud/t/hologram-composition-offset/2592)

---

<div class="post-metadata">

**Author:** ![etucker](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/etucker/32/842_2.png) [@etucker](https://forum.magicleap.cloud/u/etucker)\
**Post date:** [September 20, 2023, 10:35pm UTC](https://forum.magicleap.cloud/t/magic-leap-hub-s-device-stream-issue-missing-superimposition-between-holograms-and-reality/1583/9 "2023-09-20T22:35:50Z")

</div>

Closed on September 20, 2023, 10:35pm UTC


