Hololens 2 Unity app running on desktop and custom sample player don't have the same coordinate system

Oualid kilani 0 Reputation points
2024-05-08T02:39:18.08+00:00

Hello, I'm currently engaged in a project involving marker tracking using the front camera of the HoloLens 2. My setup involves a Python client that streams camera data, detects ArUco markers, converts their position and orientation to world coordinates, and then overlays a 3D model onto the markers. The transformed data is then sent back to Unity.

Now, let's delve into two different scenarios:

In the first scenario, I have an application running directly on the HoloLens 2, acting as a server to stream data to the client. This setup successfully synchronizes the cube's transformation with the received data. Regardless of my location, the cube is perfectly superimposed, And when i use mixed reality capture i can see the cube perfectly in its position.image_2024-05-08_033413488

However, in the second scenario, I'm running the application on a desktop. Here, I've merged the server application with a holographic sample player, essentially creating an application that serves as both a player and a server simultaneously. Despite mimicking the Python process from the first scenario, I encounter synchronization issues. Initially, the cube appears correctly superimposed, but upon slight movement, it becomes misaligned. Moreover, disconnecting and reconnecting the application results in the cube losing its position entirely. This discrepancy becomes apparent when inspecting the mixed reality capture, revealing a noticeable gap in the cube's positioning despite it appearing perfectly aligned through the lens.

image_2024-05-08_033553477

I have seen a link recently talking about system coordinate synchronization between the custom sample player and a custom remote however there is nothing about custom player and Unity application do you any idea or suggestion ? Let me know if you need more details ,Thank you for you answer .

PS: By any chance do you know how i can get rid of the red windows in the first picture ?

HoloLens Development
HoloLens Development
HoloLens: A family of Microsoft self-contained, holographic devices that enable engagement with digital content and interaction with holograms in the surrounding environment.Development: The process of researching, productizing, and refining new or existing technologies.
386 questions
{count} votes