Search Unity

extending SteamVR externalcamera.cfg?

Discussion in 'AR/VR (XR) Discussion' started by rainisto, Dec 4, 2016.

  1. rainisto

    rainisto

    Joined:
    Jul 19, 2015
    Posts:
    35
    Hello, has anyone had any experience in modifying or extending the SteamVR Externalcamera accessible with externalcamera.cfg? It now creates a view with the four quadrants and you can set the camera position of the external camera (and there are ways to control to which controller it is attached to).

    I would be interested in...
    - Modifying the content of the four quadrants, the contents of what they are showing.
    - Removing some of the quadrants.
    - Adding a second external camera from a different angle... Perhaps to a second / third monitor.
     
  2. fffMalzbier

    fffMalzbier

    Joined:
    Jun 14, 2011
    Posts:
    3,276
    Its all just C# code inside the file SteamVR_ExternalCamera.cs inide the \SteamVR\Scripts folder.
     
    rainisto likes this.
  3. rainisto

    rainisto

    Joined:
    Jul 19, 2015
    Posts:
    35
    Looking at SteamVR_ExternalCamera.cs, I'm a bit confused. I'm pretty sure that it's not one that defines the quadrants... The four boxes and what they contain / render, and how their layout on the screen gets created.
     
    Last edited: Dec 5, 2016
  4. fffMalzbier

    fffMalzbier

    Joined:
    Jun 14, 2011
    Posts:
    3,276
    May be that my version of the sdk is outdated but i have functions called
    AttachToCamera
    RenderNear
    RenderFar

    that are called from RenderExternalCamera in the file SteamVR_Render.cs
    that fuctions do setup that split quad screen view.

    If its not in that file search your whole project for externalcamera.cfg and look where its turning up.