Skip to main content
Inspiring
March 30, 2013

OVRCameraController

Well, that was easy! Just replaced my Main Camera with this and mostly done (enough for cross-eyed 3D until my Rift arrives).

I had a question though. Why does the OVRCameraController let you specify near/far clip planes -- setting those does not seem to update the clip planes on the Left/RightCamera children, but maybe it should?
    This topic has been closed for replies.

    10 replies

    Up and Coming
    March 30, 2013
    "drash" wrote:

    I had a question though. Why does the OVRCameraController let you specify near/far clip planes -- setting those does not seem to update the clip planes on the Left/RightCamera children, but maybe it should?


    It does at runtime :) Just run the scene and check the values on the left/right cameras.
    CCP Games, EVE: Valkyrie developer | @SiggiGG
    drashAuthor
    Inspiring
    March 30, 2013
    That would explain it. I'm too used to putting [ExecuteInEditMode] on everything.

    Thanks! :)
    Titans of Space PLUS for Quest is now available on DrashVR.com
    Up and Coming
    April 18, 2013
    "SiggiG" wrote:
    "drash" wrote:

    I had a question though. Why does the OVRCameraController let you specify near/far clip planes -- setting those does not seem to update the clip planes on the Left/RightCamera children, but maybe it should?


    It does at runtime :) Just run the scene and check the values on the left/right cameras.


    I tried setting the Far Clip Plane to 5000 (from default 1000) and unfortunately it didn't work for me. The skybox still clips. Using a skybox with a far clip plane of 1000 is very restrictive to world size. Since feeling the presence of scale in VR is one of the key benefits here, being able to design and build huge worlds is very attractive. Without a fix for this, we are forced to make small worlds and I can actually see the planes of a skybox that fits within a 1000 far clip distance. Any way around this? Something I'm missing?
    Remote Consulting to Clients Worldwide in UI / UX / VR: http://www.xanderdavis.com
    Inspiring
    April 18, 2013
    The near and far clip settings on ovrcameracontroller are working for me - if you want to be absolutely sure you can always open your OVRCC and manually set the clip planes for cameraleft and cameraright.

    One thing I did notice in my project that you may be running into: I'm using multiple OVRCC's, and it seemed like the one with the lowest depth was setting the near/far planes for all of the cameras in my scene. If you're using multiple cameras for any reason you might want to see if that's your issue.

    Cheers,
    Ryan
    Twitter : @rje Web : rjevans.net Youtube : My Channel
    Up and Coming
    April 18, 2013
    In the object OVRPlayerController > OVRCameraController, I set both CameraLeft and CameraRight Far Clipping Plane to 10000 and it had no effect. I made sure there are no other cameras in the scene.

    Running this on Win7 with a powerful ATI graphics card that can run the latest triple-A games on strong settings. An issue with the OVR camera code? Odd that it's working for some people but not here.

    I've noticed the Far field and the value I put in it are Bold, so I applied the change to the Prefab. Also no effect. :(
    Remote Consulting to Clients Worldwide in UI / UX / VR: http://www.xanderdavis.com
    Inspiring
    April 18, 2013
    That's really weird, the code is pretty straightforward so I'm not sure why or how that could be happening. If the problem is persistent I'd suggest sending a sample project to support and trying to get some feedback, they've been helpful when I've run into issues.
    Twitter : @rje Web : rjevans.net Youtube : My Channel
    Inspiring
    April 18, 2013
    We did test the skybox for clipping issues and were not able to reproduce the problem. If possible, could you send us a simple demo that illustrates the issue so we can test on our end? 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
    Up and Coming
    May 4, 2013
    I finally figured it out. I was setting the Far Clip plane on CameraLeft / CameraRight within the OVRCameraController object. But there's another Far Clip plane field ON THE ACTUAL OVRCameraController OBJECT. The redundancy was the cause for confusion.

    But it works now after setting OVRCameraController. Hooray!
    Remote Consulting to Clients Worldwide in UI / UX / VR: http://www.xanderdavis.com
    Inspiring
    May 6, 2013
    Ah, yes. That makes sense. Thanks for following up on this.
    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
    New Participant
    December 10, 2013
    OVRCameracontroller as 3rd person camera in unity3d ... pls