How do I add image effects in Google VR SDK?

I’m using the Google VR SDK 0.8

i know i need to add image effects to both cameras… but the problem is the cameras only appear in play mode, and the changes aren’t made permanent.

I’ve searched for an answer and people say to turn off “direct render” which I have… but it doesn’t stop my changes to cameras from being erased.

I had this issue too. The way the scripts work is they auto-create things at start-up and if you want to change their starting values you add them to the scene yourself in the editor beforehand.

After hunting around I found this info in the readme for the StereoController script
(/Legacy/Scripts/Internal/StereoController.cs)

/// The Inspector panel for this script includes a button _Update Stereo Cameras_.
/// This performs the same action as described above for startup, but in the Editor.
/// Use this to generate the rig if you intend to customize it.  This action is also
/// available via _Component -> GVR -> Update Stereo Cameras_ in the Editor’s
/// main menu, and in the context menu for the `Camera` component.

So Just select your main camera and go “Component > GoogleVR > Update Stereo Cameras” and the left and Right Eyes will get created and you can add your image effects!

Also, the main camera will have the StereoController script added so you can turn off Direct Rendering before you hit “Play”

gelliott_tlp 's answer is right

I should have a closer look at the document first before start working.

I even modify ** GvrViewer.cs ** ,but it doesn’t work.

Thanks!

old answer:

Maybe you can try finding the script StereoController

and modify the variable public bool directRender directly

but in fact, this way doesn’t work in my case