Search Unity

Hololens Webcam transform info

Discussion in 'VR' started by WilliamLeu, Jun 12, 2019.

  1. WilliamLeu

    WilliamLeu

    Joined:
    Jul 27, 2012
    Posts:
    19
    Given that I know where the HoloLens rendering camera is in the Unity scene, how do properly get information on the HoloLens' webcam?
    * The position and orientation of the webcam in the virtual world.
    * The Camera FOV angles and/or frustum.

    Are there documented hardcoded values/offsets (that can be branched properly when the HoloLens 2 comes out), or are there API calls for this?

    I guess this question also extends to any other MR device, but right now I'm specifically interested in doing this for the HoloLenses.
     
  2. Unity_Wesley

    Unity_Wesley

    Unity Technologies

    Joined:
    Sep 17, 2015
    Posts:
    558
    There are a number ways to track the webcam, I think the easiest is to use the center eye from the XR Nodes list in Input tracking.

    you can also pull the transform from the camera.man to track the webcam as well.

    You should have access to all the API's you need to make this work on the hololens.