Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

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.