Search Unity

Camera translation and settings issue

Discussion in 'Daydream' started by Xeverian, Sep 23, 2016.

  1. Xeverian

    Xeverian

    Joined:
    Sep 23, 2016
    Posts:
    12
    Hello.

    Looks like new native GVR SDK support is great stuff, because for some reason I got 2x more FPS. So it raises the question, how to change camera settings as before? I mean "Stereo Screen Scale" setting in GvrViewerMain prefab. It just doesn't work now (changed down to .25 and no effect at all).

    The other issue is that I can't move camera with character controller anymore. It just doesn't work for some reason. CharacterController.SimpleMove() have absolutely no effect on it. Have anyone figured out, how to move your main camera now?
     
  2. thep3000

    thep3000

    Unity Technologies

    Joined:
    Aug 9, 2013
    Posts:
    400
    There are two options in Unity's API to change rendering scale:

    https://docs.unity3d.com/ScriptReference/VR.VRSettings-renderScale.html
    https://docs.unity3d.com/ScriptReference/VR.VRSettings-renderViewportScale.html

    The camera transform is overridden with the head-tracked pose. To move or rotate the camera, attach it as a child of another GameObject. This makes it so that all transform changes to the parent of the camera will affect the camera itself. This also applies to moving or rotating the camera using a script.

    (see https://docs.unity3d.com/Manual/VROverview.html)
     
  3. Xeverian

    Xeverian

    Joined:
    Sep 23, 2016
    Posts:
    12
    Thank you! It worked. Looks like I need to learn more about Unity native VR features.

    May I also confirm one thing: was something done with lens distorsion correction algorithm? Framerate has really improved in my case. Thank you in advance