Samsung / GearVRf

The GearVR framework(GearVRf) is an Open Source VR rendering library for application development on VR-supported Android devices.
http://www.gearvrf.org
Apache License 2.0
407 stars 217 forks source link

Is there any way to show only one camera and it is full screen? #1832

Closed EricSKCheng closed 6 years ago

EricSKCheng commented 6 years ago

Is there any way to show only one camera and it is full screen? Like camera preview. I try to integrate GearVRF with Vuforia and I don't need the VR function for the project.

liaxim commented 6 years ago

Hi @EricSKCheng. If you use the development version from the master branch then you can configure one of our demo apps to use the monoscopic backend for GVRf. Please add these to your gradle.properties file:

// have the build use local build artifacts instead of fetching snapshots from maven
useLocalDependencies=true
// configure the demos to include only the monoscopic backend
backend_monoscopic=true

You can use https://github.com/gearvrf/GearVRf-Demos/blob/master/common.gradle as an example how to update your app. Basically you need to include only the backend_monoscopic module.

If you use an older version of GVRf then the instructions are different. Let us know.

EricSKCheng commented 6 years ago

Thanks @liaxim, I am able to use the monoscopic backend. I also want to know if there is any way to get the frame data? So the user can take a screen shot or record a video. Thanks.

liaxim commented 6 years ago

We have screenshotting apis - see GVRContext.captureScreen<*>. To record video with the monoscopic backend you could try third-party utilities (or the built-in Android screenrecord command line tool).

liaxim commented 6 years ago

@EricSKCheng Is it all good? Can we close the issue?