GithubHelp home page GithubHelp logo

fakhourmed / gvr-android-jme Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nordfalk/gvr-android-jme

0.0 1.0 0.0 12.14 MB

JMonkeyEngine integration with Google VR SDK

Java 98.81% GLSL 1.19%

gvr-android-jme's Introduction

gvr-android-jme

JMonkeyEngine integration with Google Cardboard VR SDK 1.0 for Android http://developers.google.com/vr/android/

Works in the Android Emulator for x86

This work is baset on https://github.com/oak1980/gvr-android-sdk-jme and https://github.com/neph1/jme-cardboard-example . In includes libraries and the Treasurehunt sample from https://developers.google.com/vr/android/.

For information on JME see http://jmonkeyengine.org

How to get started?

There is no setup - just clone the repo, open in Android Studio and run the samples

When you are ready to create your own app you can copy 'sample-jme-startravel' module. You can also create a new Android module from scratch, just jake sure to copy the contents of build.gradle of the sample-jme-startravel sample.

How to run JME+GVR in the emulator

Make sure you are running on a x86_64 emulator Enter the settings of the emulator and change Graphics to "Software - GLES 2.0" in 'Emulated performance'. (tested on Ubuntu 16, Android 6.0 x86_64 emulator 27/9/2016)

Further information

Join the discussion at https://hub.jmonkeyengine.org/t/google-cardboard-support/31684

Troubleshooting

UnsatisfiedLinkError: couldn't find "libgvrbase.so"

You need to exclude JME processor archtectures that are not supported by GVR. In build.gradle, add the following

defaultConfig {
    ...
    // Exclude architectures beyond those that are included in GVR to avoid
    // UnsatisfiedLinkError: couldn't find "libgvrbase.so"
    ndk {
        abiFilters "armeabi-v7a", "arm64-v8a", "x86"
    }
    ...
}

I need to modify something in the settings, which isnt exposed

Right now the only way I found (this is a really clumsy solution) is to override setSettings()

public class TestJaime extends SimpleApplication {

@Override
public void setSettings(AppSettings settings) {
    settings.setAudioRenderer(AppSettings.ANDROID_MEDIAPLAYER);
    super.setSettings(settings);
}

I can only see anything in the center - the objects disappear when not in the center

Culling is too aggressive in GVR - so disable it for now

rootNode.setCullHint(Spatial.CullHint.Never);

Textures are missing

Try to remove wrong path ("/") in Android Assetmanager:

assetManager.unregisterLocator("/", AndroidLocator.class);
assetManager.registerLocator("",AndroidLocator.class);

The image is rendering upside down

Im working on that one

gvr-android-jme's People

Contributors

nordfalk avatar rudzen avatar

Watchers

Fakhour Mohammed avatar

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.