Closed mkeblx closed 9 years ago
Currently there is no way to force monoscopic rendering iff isVrSupported but monoscopic should be able to be used on GearVR supported phones.
// GVRActivity.java public void setScript(GVRScript gvrScript, String distortionDataFileName, boolean monoscopic) { if (getRequestedOrientation() == ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE) { if (isVrSupported() && !monoscopic) { mGVRViewManager = new GVRViewManager(this, gvrScript, distortionDataFileName); } else { mGVRViewManager = new GVRMonoscopicViewManager(this, gvrScript, distortionDataFileName); } } else { throw new IllegalArgumentException( "You can not set orientation to portrait for GVRF apps."); } } public void setScript(GVRScript gvrScript, String distortionDataFileName) { setScript(gvrScript, distortionDataFileName, false); }
a setForceMonoscopic() api was just merged into master. this will allow forcing to monoscopic even on Note4 and S6.
Currently there is no way to force monoscopic rendering iff isVrSupported but monoscopic should be able to be used on GearVR supported phones.