Giter Club home page Giter Club logo

gearvrf-demos's Introduction

GearVRf-Demos

How to run these examples

git clone https://github.com/Samsung/GearVRf.git -b release_v3.1
git clone https://github.com/gearvrf/GearVRf-Demos.git -b release_v3.1

There are two options:

#edit to use your PATH or make a env variable reference for wherever you unzipped the SDK
export OVR_MOBILE_SDK=~/mytools/ovr_sdk_mobile_1.0.4

  • make sure you have gradle in your PATH (you can check that your PATH is setup correctly and verify your gradle version by running: gradle -v if you get a response, great! if not, these instructions may help

  • set up the Oculus device signature for your device (it will look like oculussig_xxxxxxxx where xxxxxxxx is the id you get when you run adb devices) and copy it into an assets folder each project's src/main/assets directory:

cp ~/Downloads/oculussig_xxxxxxxx ./gvr-cubemap/gvrcubemap/src/main/assets/oculussig_xxxxxxxx
  • change to the example you wish to build and invoke the included gradle wrapper file, ./gradlew
cd gvr-sample
./gradlew assembleDebug
  • you should now have an apk that you can push to an android device
adb install -r ./app/build/outputs/apk/app-debug.apk

NOTE: some of these examples use the application name instead of app to hold the apk build directory for instance, in gvr-cubemap, you will find the apk in ./gvr-cubemap/gvrcubemap/build/outputs/apk/app-debug.apk

cd gvr-cubemap
./gradlew assembleDebug
adb install -r ./gvrcubemap/build/outputs/apk/app-debug.apk
  • if you want to run without loading into a headset, enable Samsung VR Service developer mode:
    • go to Settings > Applications > manage applications > Gear VR Service > Manage Storage
    • press the VR Service Version 6 times
    • if you get a message 'You are a developer' you should see a toggle to enable developer mode
    • if you get a message 'You are not a developer' you probably haven't installed a valid apk with your oculus signature - run the adb install -r ./gvrcubemap/build/outputs/apk/app-debug.apk command on at least one project, then the service should discover you

gvr-360photo

A minimal sample showing how to display an equirectangular (360) photo.

gvr-360video

A minimal sample showing how to display an equirectangular (360) video using either Android's MediaPlayer class or the ExoPlayer class.

gvr-3dcursor-simple

A simplified version of the gvr-3dcursor sample that shows how to use the 3DCursor plugin.

gvr-3dcursor

Shows how to use the 3DCursor plugin.

gvr-accessibility

Shows how to use GearVRf's accessibility classes. For example: InvertedColors, TextToSpeech, and Zoom.

gvr-bullet

Simple sample showing how to use GearVRf with the Physics plugin.

gvr-camera2renderscript

Simple sample showing how to use the camera2 api along with renderscript for use with the passthrough camera.

gvr-cardboard-audio

Simple example of Spatial Audio using GoogleVR's audio library (previously used cardboard's audio library).

gvr-complexscene

A simple sample which can contain as many Stanford bunnies as we want to make it complex

gvr-controls

A nice demo that shows input from both the gamepad and touchpad to control a character.

gvr-cubemap

A simple example to show how to load in a cubemap and use it for the background as well as a reflection on an object.

gvr-events

An example showing how to display Android Views inside VR and route events to those views.

gvr-eyepicking

A simple picking example.

gvr-gamepad

A minimal example showing how to receive input from a gamepad.

gvr-immersivepedia

A larger sample that shows a concept of an immersive virtual museum. Uses many features of GearVRf: picking, TextViews, Video, input, etc.

gvr-javascript

A minimal example showing how an application can be written with Javascript.

gvr-keyboard

A sample that shows how to create a virtual keyboard, including voice input, and use it in a simple trivia game.

gvr-lua

A minimal example showing how an application can be written with Lua.

gvr-meshanimation

A simple sample that loads in an animated model and starts the animation.

gvr-modelviewer2

A viewer that allows you to select and display models stored in /sdcard/GVRModelViewer2/. You can look at the model from different angles, change lighting, look at it in wireframe, and toggle animations. Uses the libGDX plugin for UI.

gvr-multilight

A simple sample showing how to use multiple lights.

gvr-outline

A sample showing how to use multiple render passes with the same geometry to show an outline.

gvr-polyline

A sample showing how to draw lines.

gvr-remote-scripting

The remote scripting sample enables the debug server and sets up a text object with the ipaddress of the phone so we know where to telnet into.

gvr-renderableview

Inflates and displays some Android views onto a rotating cube.

gvr-sceneobjects

Shows how create the various scene object types: quad, cube, sphere, cylinder, cone, passthrough camera, text, video. Tap the touchpad to cycle through the objects.

gvr-shadows

A sample that shows a light source with shadowing.

gvr-simplesample

A simple sample that creates a quad and applies a texture to it.

gvr-solarsystem

A sample that shows both hierarchy and animation.

gvr-switch

A sample that shows how to use the GVRSwitch node.

gvr-tutorial-lesson2

Shows initial scene setup and object creation.

gvr-tutorial-lesson3

Shows event handling and picking.

gvr-tutorial-lesson4

Shows creating and using components. In this tutorial, a simple particle system is created.

gvr-tutorial-lesson5

Shows how to integrate Sound and text.

gvr-tutorial-lesson6

Shows loading and using model assets.

gvr-video

A movie theater sample. Plays back a video, has playback controls and has two theaters to choose from.

gvr-vuforia

A simple augmented reality sample using the Vuforia computer vision library. It looks for a marker and displays a teapot on top of it. You can use either the stone or chips markers. PDFs for the markers are in gvr-vuforia/app/src/main/.

gvr-x3d-demo

Loads and displays an X3D model.

Build tips

gearvrf-demos's People

Contributors

acosta avatar apjagdale avatar asg024 avatar danke-sra avatar dankex avatar deepak-rawat avatar dknaan avatar dnvasilev avatar gearvrf avatar j0nreynolds avatar jason2kim avatar ksridhar3 avatar liahim avatar liaxim avatar mohsinjuni avatar mwitchwilliams avatar nitosan avatar noladonato avatar parthmehta209s avatar pnemonic78 avatar ragner avatar rahul27 avatar rmkd avatar roshanch avatar spodila1 avatar sushantojal avatar teresa-mao avatar tflynnt avatar wenboshen avatar xcaostagit avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gearvrf-demos's Issues

IllegalStateException in immersivepedia

I was just clicking around in the Dinosaur scene (with the video playing).

01-05 11:13:01.538 15935 16020 E AndroidRuntime: FATAL EXCEPTION: GLThread 1442
01-05 11:13:01.538 15935 16020 E AndroidRuntime: Process: org.gearvrf.immersivepedia, PID: 15935
01-05 11:13:01.538 15935 16020 E AndroidRuntime: java.lang.IllegalStateException
01-05 11:13:01.538 15935 16020 E AndroidRuntime:    at android.media.MediaPlayer.getDuration(Native Method)
01-05 11:13:01.538 15935 16020 E AndroidRuntime:    at org.gearvrf.immersivepedia.videoComponent.VideoComponent.getDuration(VideoComponent.java:186)
01-05 11:13:01.538 15935 16020 E AndroidRuntime:    at org.gearvrf.immersivepedia.model.VideoDinosaurGroup.onStep(VideoDinosaurGroup.java:91)
01-05 11:13:01.538 15935 16020 E AndroidRuntime:    at org.gearvrf.immersivepedia.scene.DinosaurScene.onStep(DinosaurScene.java:102)
01-05 11:13:01.538 15935 16020 E AndroidRuntime:    at org.gearvrf.immersivepedia.MainScript.onStep(MainScript.java:67)
01-05 11:13:01.538 15935 16020 E AndroidRuntime:    at org.gearvrf.GVRViewManager.beforeDrawEyes(GVRViewManager.java:567)
01-05 11:13:01.538 15935 16020 E AndroidRuntime:    at org.gearvrf.GVRViewManager.drawFrame(GVRViewManager.java:511)
01-05 11:13:01.538 15935 16020 E AndroidRuntime:    at org.gearvrf.GVRViewManager.access$0(GVRViewManager.java:506)
01-05 11:13:01.538 15935 16020 E AndroidRuntime:    at org.gearvrf.GVRViewManager$3.onDrawFrame(GVRViewManager.java:498)
01-05 11:13:01.538 15935 16020 E AndroidRuntime:    at org.gearvrf.GVRViewManager.onDrawFrame(GVRViewManager.java:364)

gvr-video: shaky video playback

The video is shakier than it should be. There is a lot of left eye/right eye rendering some of which may not be necessary. We should consider switching to GVRVideoSceneObject too.

How to make a menu choice

Hello to everyone,
I am trying to put a menu selection before video 360 VR is lunched but I down't know how to do it.

Any suggestion?

I would like to do something like that: [https://www.youtube.com/watch?v=5jH6XblhubE]

gvr-transparency test unaffected by culling

This test toggles frustum culling to change what is displayed. This doesn't work anymore. The app does get the touch event and toggle frustum culling but the display does not change.

Crash in gvr-opacityanigallery

07-14 17:29:08.319 397-397/? A/DEBUG: r0 00000000 r1 000021d8 r2 00000006 r3 9fc3f978 07-14 17:29:08.319 397-397/? A/DEBUG: r4 9fc3f980 r5 9fc3f930 r6 00000058 r7 0000010c 07-14 17:29:08.319 397-397/? A/DEBUG: r8 9fc3eed8 r9 adc4ea10 sl adc4e9f8 fp 9fc3eedc 07-14 17:29:08.319 397-397/? A/DEBUG: ip 00000006 sp 9fc3edb0 lr b6d20c01 pc b6d22ff0 cpsr 400f0010 07-14 17:29:08.349 397-397/? A/DEBUG: backtrace: 07-14 17:29:08.349 397-397/? A/DEBUG: #00 pc 00041ff0 /system/lib/libc.so (tgkill+12) 07-14 17:29:08.349 397-397/? A/DEBUG: #01 pc 0003fbfd /system/lib/libc.so (pthread_kill+32) 07-14 17:29:08.349 397-397/? A/DEBUG: #02 pc 0001c397 /system/lib/libc.so (raise+10) 07-14 17:29:08.349 397-397/? A/DEBUG: #03 pc 00019615 /system/lib/libc.so (__libc_android_abort+34) 07-14 17:29:08.349 397-397/? A/DEBUG: #04 pc 00017568 /system/lib/libc.so (abort+4) 07-14 17:29:08.349 397-397/? A/DEBUG: #05 pc 00116f1b /data/app/org.gearvrf.opacityanigallery-1/lib/arm/libgvrf.so (_ZN9__gnu_cxx27__verbose_terminate_handlerEv+226) 07-14 17:29:08.349 397-397/? A/DEBUG: #06 pc 000e6d85 /data/app/org.gearvrf.opacityanigallery-1/lib/arm/libgvrf.so (_ZN10__cxxabiv111__terminateEPFvvE+4) 07-14 17:29:08.349 397-397/? A/DEBUG: #07 pc 000e6df9 /data/app/org.gearvrf.opacityanigallery-1/lib/arm/libgvrf.so (_ZSt9terminatev+8) 07-14 17:29:08.349 397-397/? A/DEBUG: #08 pc 000e10a8 /data/app/org.gearvrf.opacityanigallery-1/lib/arm/libgvrf.so (_ZN3gvr22CustomPostEffectShaderC1ESsSs+1316) 07-14 17:29:08.349 397-397/? A/DEBUG: #09 pc 000c884c /data/app/org.gearvrf.opacityanigallery-1/lib/arm/libgvrf.so (Java_org_gearvrf_NativePostEffectShaderManager_addCustomPostEffectShader+292) 07-14 17:29:08.349 397-397/? A/DEBUG: #10 pc 001e42f3 /data/data/org.gearvrf.opacityanigallery/cache/slice-intermediates-exploded-aar-framework-debug_345b784d0b6927d70bcc7d860a03fa69eda33508-classes.dex (offset 0x16e000) (int org.gearvrf.NativePostEffectShaderManager.addCustomPostEffectShader(long, java.lang.String, java.lang.String)+142) 07-14 17:29:08.349 397-397/? A/DEBUG: #11 pc 001bb083 /data/data/org.gearvrf.opacityanigallery/cache/slice-intermediates-exploded-aar-framework-debug_345b784d0b6927d70bcc7d860a03fa69eda33508-classes.dex (offset 0x16e000) (org.gearvrf.GVRCustomPostEffectShaderId org.gearvrf.GVRPostEffectShaderManager.addShader(java.lang.String, java.lang.String)+126) 07-14 17:29:08.349 397-397/? A/DEBUG: #12 pc 001bafd5 /data/data/org.gearvrf.opacityanigallery/cache/slice-intermediates-exploded-aar-framework-debug_345b784d0b6927d70bcc7d860a03fa69eda33508-classes.dex (offset 0x16e000) (java.lang.Object org.gearvrf.GVRPostEffectShaderManager.addShader(java.lang.String, java.lang.String)+56) 07-14 17:29:08.349 397-397/? A/DEBUG: #13 pc 0017f659 /data/data/org.gearvrf.opacityanigallery/cache/slice-intermediates-exploded-aar-framework-debug_345b784d0b6927d70bcc7d860a03fa69eda33508-classes.dex (offset 0x16e000) (java.lang.Object org.gearvrf.GVRBaseShaderManager.addShader(java.io.InputStream, java.io.InputStream)+164) 07-14 17:29:08.349 397-397/? A/DEBUG: #14 pc 0017f581 /data/data/org.gearvrf.opacityanigallery/cache/slice-intermediates-exploded-aar-framework-debug_345b784d0b6927d70bcc7d860a03fa69eda33508-classes.dex (offset 0x16e000) (java.lang.Object org.gearvrf.GVRBaseShaderManager.addShader(int, int)+132) 07-14 17:29:08.349 397-397/? A/DEBUG: #15 pc 000138ab /data/data/org.gearvrf.opacityanigallery/cache/slice-slice_4-classes.dex (offset 0x13000) (void org.gearvrf.opacityanigallery.CustomPostEffectShaderManager.<init>(org.gearvrf.GVRContext)+390) 07-14 17:29:08.349 397-397/? A/DEBUG: #16 pc 0001ee95 /data/data/org.gearvrf.opacityanigallery/cache/slice-slice_4-classes.dex (offset 0x13000) (void org.gearvrf.opacityanigallery.GalleryMain.onInit(org.gearvrf.GVRContext)+2408) 07-14 17:29:08.349 397-397/? A/DEBUG: #17 pc 000e6411 /system/lib/libart.so (art_quick_invoke_stub_internal+64) 07-14 17:29:08.349 397-397/? A/DEBUG: #18 pc 004037cd /system/lib/libart.so (art_quick_invoke_stub+188) 07-14 17:29:08.349 397-397/? A/DEBUG: #19 pc 00102284 [stack:8664]

how about some 'getting started' documentation?

I'd like to see the following in a README for this repository:

  • Android Studio 2+ instructions
  • command line instructions (can I just set some environment variables and run ndk-build ...? gradle ...? something else?)
  • troubleshooting for common problems (for instance, the unspecific error "A problem occurred starting process 'command 'ndk-build'")

Following these instructions was not enough to get me past this error.

Camera Field of View

Hello,
I am using gvr-360video project I trying to figure out how can change the video's field of view.

I hope someone could help me.

Cheers

Endri

How to Play mp4 Video in Android Using Remote URL

Hi there,
I have one question,
How to Play mp4 Video in Android Using Remote URL?
I would like to host my 360 videos onto an hosting and build an android app that I can play theme remotely without downloading them.

Thanks a lot

Enable AA in all the samples

As many will be copying the samples and will be looking to them as a proper example of how to use the framework, we should set multiSamples to at least "2".

gvr-accessibility doesn't work properly anymore

I guess it needs updates to work with the latest framework. All I see is a piedestal with a book - can't get to the accessibility menu that is supposed to be there when you look down. There was more to that sample than the piedestal and the book as far as I can recall.

gvr-Vuforia cannot render camera video.

Hello guys,
Just recently notice that it is really difficult to run the demo of gvr-Vuforia to load the camera live video at the background. The major result is a black screen. However, the vuforia image tracking still works so the teapot can be drawn without any issue. But the video just cannot be displayed. Hope to know what the reason could be.

Thank you in advance!

TODD

GVR-Accessibility App crash

Here is the log :

07-15 01:03:29.857 21473-21521/com.samsung.android.gvr.sample W/System.err: java.lang.UnsupportedOperationException: GVRSceneObject cannot have multiple parents
07-15 01:03:29.857 21473-21521/com.samsung.android.gvr.sample W/System.err: at org.gearvrf.GVRSceneObject.addChildObject(GVRSceneObject.java:754)
07-15 01:03:29.857 21473-21521/com.samsung.android.gvr.sample W/System.err: at org.gearvrf.GVRScene.addSceneObject(GVRScene.java:111)
07-15 01:03:29.857 21473-21521/com.samsung.android.gvr.sample W/System.err: at com.samsung.accessibility.main.Main.createPedestalObject(Main.java:95)
07-15 01:03:29.857 21473-21521/com.samsung.android.gvr.sample W/System.err: at com.samsung.accessibility.main.Main.onInit(Main.java:60)
07-15 01:03:29.857 21473-21521/com.samsung.android.gvr.sample W/System.err: at java.lang.reflect.Method.invoke(Native Method)
07-15 01:03:29.857 21473-21521/com.samsung.android.gvr.sample W/System.err: at java.lang.reflect.Method.invoke(Method.java:372)
07-15 01:03:29.857 21473-21521/com.samsung.android.gvr.sample W/System.err: at org.gearvrf.GVREventManager.invokeMethod(GVREventManager.java:307)
07-15 01:03:29.857 21473-21521/com.samsung.android.gvr.sample W/System.err: at org.gearvrf.GVREventManager.sendEventWithMaskParamArray(GVREventManager.java:126)
07-15 01:03:29.857 21473-21521/com.samsung.android.gvr.sample W/System.err: at org.gearvrf.GVREventManager.sendEventWithMask(GVREventManager.java:113)
07-15 01:03:29.857 21473-21521/com.samsung.android.gvr.sample W/System.err: at org.gearvrf.GVREventManager.sendEvent(GVREventManager.java:108)
07-15 01:03:29.857 21473-21521/com.samsung.android.gvr.sample W/System.err: at org.gearvrf.GVRViewManager$3$1.run(GVRViewManager.java:678)
07-15 01:03:29.857 21473-21521/com.samsung.android.gvr.sample W/System.err: at android.os.Handler.handleCallback(Handler.java:739)
07-15 01:03:29.857 21473-21521/com.samsung.android.gvr.sample W/System.err: at android.os.Handler.dispatchMessage(Handler.java:95)
07-15 01:03:29.857 21473-21521/com.samsung.android.gvr.sample W/System.err: at android.os.Looper.loop(Looper.java:145)
07-15 01:03:29.857 21473-21521/com.samsung.android.gvr.sample W/System.err: at android.os.HandlerThread.run(HandlerThread.java:61)

Dexing fails

Hello,
I'm currently trying to get these examples running but unfortunately for some reason I'm unable to correctly build them.

I followed the README file, build the GearVRf repo and tried to build GearVRf-Demos/gvr-complexscene with this result:

# ./gradlew assembleDebug
Incremental java compilation is an incubating feature.
:app:copyOculusSignature UP-TO-DATE
:app:preBuild UP-TO-DATE
:app:preDebugBuild UP-TO-DATE
:app:checkDebugManifest
:app:preReleaseBuild UP-TO-DATE
:app:prepareBackendDebugLibrary UP-TO-DATE
:app:prepareFrameworkDebugLibrary UP-TO-DATE
:app:prepareGoogleVrBaseLibrary UP-TO-DATE
:app:prepareGoogleVrCommonLibrary UP-TO-DATE
:app:prepareDebugDependencies
:app:compileDebugAidl UP-TO-DATE
:app:compileDebugRenderscript UP-TO-DATE
:app:generateDebugBuildConfig UP-TO-DATE
:app:mergeDebugShaders UP-TO-DATE
:app:compileDebugShaders UP-TO-DATE
:app:generateDebugAssets UP-TO-DATE
:app:mergeDebugAssets UP-TO-DATE
:app:generateDebugResValues UP-TO-DATE
:app:generateDebugResources UP-TO-DATE
:app:mergeDebugResources UP-TO-DATE
:app:processDebugManifest UP-TO-DATE
:app:processDebugResources UP-TO-DATE
:app:generateDebugSources UP-TO-DATE
:app:incrementalDebugJavaCompilationSafeguard UP-TO-DATE
:app:compileDebugJavaWithJavac UP-TO-DATE
:app:compileDebugNdk UP-TO-DATE
:app:compileDebugSources UP-TO-DATE
:app:prePackageMarkerForDebug
:app:transformClassesWithDexForDebug FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:transformClassesWithDexForDebug'.
> com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.dex.DexException: Multiple dex files define Lcom/oculus/systemutils/BuildConfig;

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 7.843 secs

Is there some way how to fix this or can you help me figuring out what can cause this problem? I can post more information about my building environment if needed.
Thank you, Michal :-)

Problems when making project

Hello,

I'm trying to follow the installation tutorial but I´m having problems when making project.

Could not find :framework-debug

Where I can find the files (.aar and .pom) that should be in the folder "GearVRf-Demos/gearvrf-libs"?

Thanks a lot

Error:(15, 9) error: cannot find symbol method setMain(Camera2RenderscriptManager,String)

All steps followed and working but this Compilation error in gvrcamera2renderscript sample. please help me.

public class Camera2RenderscriptActivity extends GVRActivity 
{
    private Camera2RenderscriptManager mManger;

    @Override
    protected void onCreate(Bundle icicle) {
        super.onCreate(icicle);

        mManger = new Camera2RenderscriptManager(this);
**//error is hear, when comment then it run then crash
        setMain(mManger, "gvr.xml");**
    }

    @Override
    protected void onPause() {
        super.onPause();
        mManger.onPause();
        finish();
    }
}

D:\GearVRProjects\gvr-camera2renderscript\gvrcamera2renderscript\src\main\java\org\gearvrf\gvrcamera2renderscript\Camera2RenderscriptActivity.java
Error:(15, 9) error: cannot find symbol method setMain(Camera2RenderscriptManager,String)
Incremental compilation of 1 classes completed in 0.055 secs.
:gvrcamera2renderscript:compileDebugJavaWithJavac FAILED
Error:Execution failed for task ':gvrcamera2renderscript:compileDebugJavaWithJavac'.

Compilation failed; see the compiler error output for details.

gvr-simplegallery crashes on launch

Below is the log I see:

gvrf D # 0: 0xf35614a0 _Z15printStackTracej D # 1: 0xf355d784 D # 2: 0xf355ea80 _ZN3gvr22CustomPostEffectShaderC1ESsSs D # 3: 0xf3544f18 Java_org_gearvrf_NativePostEffectShaderManager_addCustomPostEffectShad er E fatal error: no deleter associated with this thread!

Resume does not work on all apps(probably)

Putting head set on and taking it off for around 30 seconds. Again putting it on shows a freezed app.

Tried apps:
GVRCube, GVRWidget, GVRModelViewer and Imersivepedia

GVR-Collision App crash

07-15 01:10:08.367 23892-23970/com.samsung.android.gvr.sample W/System.err: java.lang.UnsupportedOperationException: GVRSceneObject cannot have multiple parents
07-15 01:10:08.367 23892-23970/com.samsung.android.gvr.sample W/System.err: at org.gearvrf.GVRSceneObject.addChildObject(GVRSceneObject.java:754)
07-15 01:10:08.367 23892-23970/com.samsung.android.gvr.sample W/System.err: at org.gearvrf.GVRCameraRig.attachToParent(GVRCameraRig.java:346)
07-15 01:10:08.367 23892-23970/com.samsung.android.gvr.sample W/System.err: at org.gearvrf.gvrcollision.CollisionMain.onInit(CollisionMain.java:106)
07-15 01:10:08.367 23892-23970/com.samsung.android.gvr.sample W/System.err: at java.lang.reflect.Method.invoke(Native Method)
07-15 01:10:08.367 23892-23970/com.samsung.android.gvr.sample W/System.err: at java.lang.reflect.Method.invoke(Method.java:372)
07-15 01:10:08.367 23892-23970/com.samsung.android.gvr.sample W/System.err: at org.gearvrf.GVREventManager.invokeMethod(GVREventManager.java:307)
07-15 01:10:08.367 23892-23970/com.samsung.android.gvr.sample W/System.err: at org.gearvrf.GVREventManager.sendEventWithMaskParamArray(GVREventManager.java:126)
07-15 01:10:08.367 23892-23970/com.samsung.android.gvr.sample W/System.err: at org.gearvrf.GVREventManager.sendEventWithMask(GVREventManager.java:113)
07-15 01:10:08.367 23892-24016/com.samsung.android.gvr.sample D/GVRAndroidResource: Looking for compressed header
07-15 01:10:08.367 23892-23970/com.samsung.android.gvr.sample W/System.err: at org.gearvrf.GVREventManager.sendEvent(GVREventManager.java:108)
07-15 01:10:08.367 23892-23970/com.samsung.android.gvr.sample W/System.err: at org.gearvrf.GVRViewManager$3$1.run(GVRViewManager.java:678)
07-15 01:10:08.367 23892-23970/com.samsung.android.gvr.sample W/System.err: at android.os.Handler.handleCallback(Handler.java:739)
07-15 01:10:08.367 23892-23970/com.samsung.android.gvr.sample W/System.err: at android.os.Handler.dispatchMessage(Handler.java:95)
07-15 01:10:08.367 23892-23970/com.samsung.android.gvr.sample W/System.err: at android.os.Looper.loop(Looper.java:145)
07-15 01:10:08.367 23892-23970/com.samsung.android.gvr.sample W/System.err: at android.os.HandlerThread.run(HandlerThread.java:61)

gvr-immersivepedia crash on pause

06-29 14:05:34.231 12393 12393 E AndroidRuntime: FATAL EXCEPTION: main
06-29 14:05:34.231 12393 12393 E AndroidRuntime: Process: com.samsung.android.gvr.sample, PID: 12393
06-29 14:05:34.231 12393 12393 E AndroidRuntime: java.lang.RuntimeException: Unable to pause activity {com.samsung.android.gvr.sample/org.gearvrf.immersivepedia.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.Context org.gearvrf.GVRContext.getContext()' on a null object reference
06-29 14:05:34.231 12393 12393 E AndroidRuntime:    at android.app.ActivityThread.performPauseActivity(ActivityThread.java:4659)
06-29 14:05:34.231 12393 12393 E AndroidRuntime:    at android.app.ActivityThread.performPauseActivity(ActivityThread.java:4618)
06-29 14:05:34.231 12393 12393 E AndroidRuntime:    at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:5465)
06-29 14:05:34.231 12393 12393 E AndroidRuntime:    at android.app.ActivityThread.access$1200(ActivityThread.java:226)
06-29 14:05:34.231 12393 12393 E AndroidRuntime:    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1849)
06-29 14:05:34.231 12393 12393 E AndroidRuntime:    at android.os.Handler.dispatchMessage(Handler.java:102)
06-29 14:05:34.231 12393 12393 E AndroidRuntime:    at android.os.Looper.loop(Looper.java:158)
06-29 14:05:34.231 12393 12393 E AndroidRuntime:    at android.app.ActivityThread.main(ActivityThread.java:7522)
06-29 14:05:34.231 12393 12393 E AndroidRuntime:    at java.lang.reflect.Method.invoke(Native Method)
06-29 14:05:34.231 12393 12393 E AndroidRuntime:    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
06-29 14:05:34.231 12393 12393 E AndroidRuntime:    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
06-29 14:05:34.231 12393 12393 E AndroidRuntime: Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.Context org.gearvrf.GVRContext.getContext()' on a null object reference
06-29 14:05:34.231 12393 12393 E AndroidRuntime:    at org.gearvrf.immersivepedia.Main.onPause(Main.java:102)
06-29 14:05:34.231 12393 12393 E AndroidRuntime:    at org.gearvrf.immersivepedia.MainActivity.onPause(MainActivity.java:76)
06-29 14:05:34.231 12393 12393 E AndroidRuntime:    at android.app.Activity.performPause(Activity.java:7033)
06-29 14:05:34.231 12393 12393 E AndroidRuntime:    at android.app.Instrumentation.callActivityOnPause(Instrumentation.java:1339)
06-29 14:05:34.231 12393 12393 E AndroidRuntime:    at android.app.ActivityThread.performPauseActivity(ActivityThread.java:4645)
06-29 14:05:34.231 12393 12393 E AndroidRuntime:    ... 10 more
06-29 14:05:34.231 19615 20133 W ActivityManager:   Force finishing activity com.samsung.android.gvr.sample/org.gearvrf.immersivepedia.MainActivity

Build issues and suggestions

  1. The demos instructions have to be updated to reflect the use of the aar. All those environment variables should be removed and the use of the properties in gradle.properties explained.
  2. The hard-coded reference to framework-debug.aar under gearvrf-libs is less than ideal. We need to come up with a way to pick up whatever files are under that folder without the user having to rename anything.
  3. As part of the demo build we can and should automatically copy the Oculus dependencies for the user; as long as the user has specified correctly OVR_MOBILE_SDK in gradle.properties.

Out of memory error in gvr-VRGallary while loading images

Hello,

i am getting out of memory error in gvr-VRGallary app while loading images . I add
dexOptions { javaMaxHeapSize "4g" }
in gradle and
android:largeHeap="true"
in the manifest file but still i am getting same error when trying to load no. of images and with high quality.
Thanks!

gvr-Vuforia teapot slide issue.

Hello,

Thank you for the nice demo! However, I notice that in the gvr-Vuforia demo, when the user hold the image target and slightly shift the HMD, the virtual teapot shifts more which makes it not relatively fixed at the detected position. If the user move the card away from the camera, the teapot disappear.

For the disappearance issue, It is possible that the teapot is moved behind the quad of video, or just out of the Gear VR culling Frustum. In the original Vuforia VR demo, when drawing the background video quad, depth test is disabled so no matter how the object which is drawn after the video quad moves in z direction, it will not be hide. So my question is: how can we increase the Z-Far plane for larger culling Frustum, and how can we disable the depth test for the screen object to make sure that the 3D things drawn are all above the video?

And for the 3D object slightly shift during moving the image target or move the head, is that possible due to the view port difference?

Hope to hear from you soon!

GVR-Nonglthreadupdate App crash

07-15 01:19:09.517 7497-7556/org.gearvrf.nontlthreadupdate D/gvrf: # 0: 0xa1c18858 _Z15printStackTracej
#1: 0xa1c140f4 _ZN3gvr22CustomPostEffectShaderC1ESsSs
#2: 0xa1bfb890 Java_org_gearvrf_NativePostEffectShaderManager_addCustomPostEffectShader
07-15 01:19:09.517 7497-7556/org.gearvrf.nontlthreadupdate E/gvrf: fatal error: no deleter associated with this thread!
07-15 01:19:09.517 7497-7556/org.gearvrf.nontlthreadupdate A/libc: Fatal signal 6 (SIGABRT), code -6 in tid 7556 (gvrf-main)
07-15 01:19:10.157 7497-7561/org.gearvrf.nontlthreadupdate I/Choreographer: Skipped 31 frames! The application may be doing too much work on its main thread.

bullet sample: possible buffer overrun

It doesn't always show all scene objects. Sometimes, only a portion of the scene objects are rendered, even before their positions have not been changed due to the moving sphere. I checked the # of scene objects drawn, which is fewer (27) than expected (29) and some scene objects are invisible. This is still the case when frustrum culling is off. So it seems some rendering data is corrupted when bullet is running.

I can confirm it is due to memory corruption in the native layer because the same issue doesn't happen when using JBullet, which is a pure Java port of Bullet.

gvr-solarsystem GVRSceneObject cannot have multiple parents

07-13 15:21:59.116 23395-23427/org.gearvrf.solarsystem W/System.err: java.lang.UnsupportedOperationException: GVRSceneObject cannot have multiple parents 07-13 15:21:59.116 23395-23427/org.gearvrf.solarsystem W/System.err: at org.gearvrf.GVRSceneObject.addChildObject(GVRSceneObject.java:754) 07-13 15:21:59.116 23395-23427/org.gearvrf.solarsystem W/System.err: at org.gearvrf.GVRSceneObject.addChildObject(GVRSceneObject.java:786) 07-13 15:21:59.116 23395-23427/org.gearvrf.solarsystem W/System.err: at org.gearvrf.solarsystem.SolarMain.onInit(SolarMain.java:125) 07-13 15:21:59.116 23395-23427/org.gearvrf.solarsystem W/System.err: at java.lang.reflect.Method.invoke(Native Method) 07-13 15:21:59.116 23395-23427/org.gearvrf.solarsystem W/System.err: at org.gearvrf.GVREventManager.invokeMethod(GVREventManager.java:307) 07-13 15:21:59.116 23395-23427/org.gearvrf.solarsystem W/System.err: at org.gearvrf.GVREventManager.sendEventWithMaskParamArray(GVREventManager.java:126) 07-13 15:21:59.116 23395-23427/org.gearvrf.solarsystem W/System.err: at org.gearvrf.GVREventManager.sendEventWithMask(GVREventManager.java:113) 07-13 15:21:59.116 23395-23427/org.gearvrf.solarsystem W/System.err: at org.gearvrf.GVREventManager.sendEvent(GVREventManager.java:108) 07-13 15:21:59.116 23395-23427/org.gearvrf.solarsystem W/System.err: at org.gearvrf.GVRViewManager$3$1.run(GVRViewManager.java:678) 07-13 15:21:59.116 23395-23427/org.gearvrf.solarsystem W/System.err: at android.os.Handler.handleCallback(Handler.java:739) 07-13 15:21:59.116 23395-23427/org.gearvrf.solarsystem W/System.err: at android.os.Handler.dispatchMessage(Handler.java:95) 07-13 15:21:59.116 23395-23427/org.gearvrf.solarsystem W/System.err: at android.os.Looper.loop(Looper.java:158) 07-13 15:21:59.126 23395-23427/org.gearvrf.solarsystem W/System.err: at android.os.HandlerThread.run(HandlerThread.java:61)

GVR-Opacityanigallery App crash

07-15 01:23:02.177 7734-7755/org.gearvrf.opacityanigallery E/MediaPlayer: Should have subtitle controller already set
07-15 01:23:02.187 7734-7755/org.gearvrf.opacityanigallery D/gvrf: # 0: 0xaed77858 _Z15printStackTracej
#1: 0xaed730f4 _ZN3gvr22CustomPostEffectShaderC1ESsSs
#2: 0xaed5a890 Java_org_gearvrf_NativePostEffectShaderManager_addCustomPostEffectShader
07-15 01:23:02.187 7734-7755/org.gearvrf.opacityanigallery E/gvrf: fatal error: no deleter associated with this thread!
07-15 01:23:02.187 7734-7755/org.gearvrf.opacityanigallery A/libc: Fatal signal 6 (SIGABRT), code -6 in tid 7755 (gvrf-main)

gvr-remote-scripting text is black

The color of the text in the opening TextViewSceneObject that tells you the ip address is black (or very, very dark). didn't used to be.

GVR-3dcursor App crash

07-15 01:27:38.547 7991-8012/org.gearvrf.io.cursorsimple W/System.err: java.lang.UnsupportedOperationException: GVRSceneObject cannot have multiple parents
07-15 01:27:38.557 7991-8012/org.gearvrf.io.cursorsimple W/System.err: at org.gearvrf.GVRSceneObject.addChildObject(GVRSceneObject.java:754)
07-15 01:27:38.557 7991-8012/org.gearvrf.io.cursorsimple W/System.err: at org.gearvrf.GVRScene.addSceneObject(GVRScene.java:111)
07-15 01:27:38.557 7991-8012/org.gearvrf.io.cursorsimple W/System.err: at org.gearvrf.io.cursorsimple.CursorMain.onInit(CursorMain.java:81)
07-15 01:27:38.557 7991-8012/org.gearvrf.io.cursorsimple W/System.err: at java.lang.reflect.Method.invoke(Native Method)
07-15 01:27:38.557 7991-8012/org.gearvrf.io.cursorsimple W/System.err: at java.lang.reflect.Method.invoke(Method.java:372)
07-15 01:27:38.557 7991-8012/org.gearvrf.io.cursorsimple W/System.err: at org.gearvrf.GVREventManager.invokeMethod(GVREventManager.java:307)
07-15 01:27:38.557 7991-8012/org.gearvrf.io.cursorsimple W/System.err: at org.gearvrf.GVREventManager.sendEventWithMaskParamArray(GVREventManager.java:126)
07-15 01:27:38.557 7991-8012/org.gearvrf.io.cursorsimple W/System.err: at org.gearvrf.GVREventManager.sendEventWithMask(GVREventManager.java:113)
07-15 01:27:38.557 7991-8012/org.gearvrf.io.cursorsimple W/System.err: at org.gearvrf.GVREventManager.sendEvent(GVREventManager.java:108)
07-15 01:27:38.557 7991-8012/org.gearvrf.io.cursorsimple W/System.err: at org.gearvrf.GVRViewManager$3$1.run(GVRViewManager.java:678)
07-15 01:27:38.557 7991-8012/org.gearvrf.io.cursorsimple W/System.err: at android.os.Handler.handleCallback(Handler.java:739)
07-15 01:27:38.557 7991-8012/org.gearvrf.io.cursorsimple W/System.err: at android.os.Handler.dispatchMessage(Handler.java:95)
07-15 01:27:38.557 7991-8012/org.gearvrf.io.cursorsimple W/System.err: at android.os.Looper.loop(Looper.java:145)
07-15 01:27:38.557 7991-8012/org.gearvrf.io.cursorsimple W/System.err: at android.os.HandlerThread.run(HandlerThread.java:61)

gvr-camera2renderscript preview stop

I had merged GVRf 3.0.1 with OVR SDK 1.0.3. And Got the APK.
But the preview is stop at the begin. But the app is still working from the log. I can see the log is keeping printing out.

I also had tried other apk with the same way. They are working fine in my Note5.

Anyone had tried the app?

Immersivepedia: NPE while in the museum scene

06-24 10:13:12.733 18401 18401 E AndroidRuntime: FATAL EXCEPTION: main
06-24 10:13:12.733 18401 18401 E AndroidRuntime: Process: com.samsung.android.gvr.sample, PID: 18401
06-24 10:13:12.733 18401 18401 E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.media.MediaPlayer.start()' on a null object reference
06-24 10:13:12.733 18401 18401 E AndroidRuntime:    at org.gearvrf.immersivepedia.videoComponent.VideoComponent.playVideo(VideoComponent.java:141)
06-24 10:13:12.733 18401 18401 E AndroidRuntime:    at org.gearvrf.immersivepedia.videoComponent.VideoComponent$2.onClick(VideoComponent.java:123)
06-24 10:13:12.733 18401 18401 E AndroidRuntime:    at org.gearvrf.immersivepedia.focus.FocusableSceneObject.dispatchInClick(FocusableSceneObject.java:98)
06-24 10:13:12.733 18401 18401 E AndroidRuntime:    at org.gearvrf.immersivepedia.focus.FocusableController.clickProcess(FocusableController.java:90)
06-24 10:13:12.733 18401 18401 E AndroidRuntime:    at org.gearvrf.immersivepedia.Main.onSingleTapConfirmed(Main.java:81)
06-24 10:13:12.733 18401 18401 E AndroidRuntime:    at org.gearvrf.immersivepedia.MainActivity.onSingleTap(MainActivity.java:52)
06-24 10:13:12.733 18401 18401 E AndroidRuntime:    at org.gearvrf.immersivepedia.util.VRTouchPadGestureDetector.onSingleTapUp(VRTouchPadGestureDetector.java:221)
06-24 10:13:12.733 18401 18401 E AndroidRuntime:    at android.view.GestureDetector.onTouchEvent(GestureDetector.java:651)
06-24 10:13:12.733 18401 18401 E AndroidRuntime:    at org.gearvrf.immersivepedia.util.VRTouchPadGestureDetector.onTouchEvent(VRTouchPadGestureDetector.java:236)
06-24 10:13:12.733 18401 18401 E AndroidRuntime:    at org.gearvrf.immersivepedia.MainActivity.onTouchEvent(MainActivity.java:44)

Black screen of the video for gvr-vuforia

Hello guys,
Just want to ask for some suggestions on this issue. When debugging in develop mode with gvf-vuforia sample, there are frequently cases where the camera video texture failed to show in the background, which leads to a pitch black app. However, the teapot can be drawn once it detects the image target, so I feel it is a fail loading texture issue. In the onStep function, I saw that the bindVideoBackgroundTexture(0) and there is another setVideoBackgroundTextureID, which assign the draw location of the vuforia live cam to the passThroughTexture. May be something here is not happened in GL thread?

Hope you have some suggestions. thank you.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.