Skip to main content
November 10, 2014

Change viewport rect of Oculus?

So I'm currently using the 0.4.3 SDK on Unity 5. I'm doing some stuff with my game screen, and as a result I'd like the overall oculus view to draw to only half of the screen.

Is there any support in the API to change the viewport rect of the oculus output? I've tried changing the viewports of the individual cameras, but it has no effect since processing is handled in the scripts.

    6 replies

    Inspiring
    November 10, 2014
    Can you better explain what you are trying to accomplish? I'm not sure I understand. Thanks.
    AMD Ryzen 7 1800X | MSI X370 Titanium | G.Skill 16GB DDR4 3200 | EVGA SuperNOVA 1000 | Corsair Hydro H110i Gigabyte RX Vega 64 x2 | Samsung 960 Evo M.2 500GB | Seagate FireCuda SSHD 2TB | Phanteks ENTHOO EVOLV
    November 10, 2014
    Basically I'm faking two windows with Unity. The screen size is 3840x1080, so it displays over two 1920x1080 monitors.

    Since the standalone is technically running at 3840x1080, the Oculus player controller draws over both monitors, however I would like it to draw at halfscale (1920x1080), so that it only displays on one monitor.

    I had a technique working on an older version of the SDK, but I had too upgrade to 0.4.3 for some other reasons, and my method no longer works.
    New Participant
    December 2, 2014
    I also didn't find a way to change viewport rectangle in the new 0.4.3 SDK.
    I think Anselm described the issue quite clear. Anyway here is what we all need to achive:
    http://stackoverflow.com/questions/23691695/viewport-in-unity-with-oculus-rift

    It is quite important thing. Hope to receive an answer.

    Thanks,
    Akhmad
    January 6, 2015
    Has there been any progress on this? You were able to do this on previous versions of the SDK by adjusting the Camera View Rect of the OVR cameras, but since I upgraded to 0.4.3 I no longer have any control over where the Rift draws on the screen.
    New Participant
    July 21, 2015
    Been a few months, is this something that is at least being considered?

    The company i work for makes alot of training applications that want to use Oculus but are having to settle for inferior products.

    We've had some success networking the applications, basically same application but the second one has the control GUI and a duplication of the first scene. Side by side on the same PC, locally connected. Not ideal.
    Inspiring
    July 21, 2015
    I don't believe this is supported. It's best to just use two computers and network them.
    AMD Ryzen 7 1800X | MSI X370 Titanium | G.Skill 16GB DDR4 3200 | EVGA SuperNOVA 1000 | Corsair Hydro H110i Gigabyte RX Vega 64 x2 | Samsung 960 Evo M.2 500GB | Seagate FireCuda SSHD 2TB | Phanteks ENTHOO EVOLV