All Projects → ejeinc → Meganekko

ejeinc / Meganekko

Licence: Apache-2.0 license
Gear VR Application Framework

Programming Languages

c
50402 projects - #5 most used programming language
C++
36643 projects - #6 most used programming language
kotlin
9241 projects
python
139335 projects - #7 most used programming language
java
68154 projects - #9 most used programming language
Makefile
30231 projects

Projects that are alternatives of or similar to Meganekko

Viro
ViroReact: AR and VR using React Native
Stars: ✭ 1,735 (+6840%)
Mutual labels:  vr, oculus, gear-vr
Relativty
An open source VR headset with SteamVR supports for $200
Stars: ✭ 5,544 (+22076%)
Mutual labels:  vr, oculus
Ideaspace
😎 Create interactive 3D and VR web experiences for desktop, mobile & VR devices
Stars: ✭ 344 (+1276%)
Mutual labels:  vr, oculus
Trance
procedural RIST
Stars: ✭ 27 (+8%)
Mutual labels:  vr, oculus
MoonMotion
Moon Motion Toolkit - Free and open source toolkit for VR locomotion
Stars: ✭ 38 (+52%)
Mutual labels:  vr, oculus
CodeAndQuestsEveryDay
Regular research on the Quest for developers.
Stars: ✭ 27 (+8%)
Mutual labels:  vr, oculus
Openhmd
Free and Open Source API and drivers for immersive technology.
Stars: ✭ 837 (+3248%)
Mutual labels:  vr, oculus
AnotherBadBeatSaberClone
This is a discontinued but perhaps helpful VR project created during my Master's degree at FH Wedel.
Stars: ✭ 22 (-12%)
Mutual labels:  vr, oculus
Webxr Handtracking
👐 WebXR hand tracking examples
Stars: ✭ 116 (+364%)
Mutual labels:  vr, oculus
Aframe Vimeo Component
Stream Vimeo videos into WebVR.
Stars: ✭ 62 (+148%)
Mutual labels:  vr, oculus
aframe-controller-cursor-component
A cursor for tracked controllers.
Stars: ✭ 30 (+20%)
Mutual labels:  vr, oculus
Remixvr
RemixVR is a tool for collaboratively building customisable VR experiences.
Stars: ✭ 129 (+416%)
Mutual labels:  vr, oculus
soundstagevr
virtual reality music sandbox built specifically for room-scale VR
Stars: ✭ 38 (+52%)
Mutual labels:  vr, oculus
Viveinpututility Unity
A toolkit that helps developing/prototyping VR apps.
Stars: ✭ 256 (+924%)
Mutual labels:  vr, oculus
janusweb
An in-browser implementation of JanusVR
Stars: ✭ 145 (+480%)
Mutual labels:  vr, oculus
Hover Ui Kit
Create beautiful user interfaces for immersive VR/AR experiences.
Stars: ✭ 662 (+2548%)
Mutual labels:  vr, oculus
home-space
Startpage and WebXR home
Stars: ✭ 43 (+72%)
Mutual labels:  vr, oculus
zephyr
Mirror Android notifications to VR
Stars: ✭ 78 (+212%)
Mutual labels:  vr, oculus
Oculustvlauncher
A simple launcher to start apps directly into Oculus TV on the Oculus Go - even while offline
Stars: ✭ 44 (+76%)
Mutual labels:  vr, oculus
Thehallaframe
WebVR demo that displays art
Stars: ✭ 120 (+380%)
Mutual labels:  vr, oculus

Meganekko

Caution: This project is no longer being actively developed. Recommended alternative solution is GearVR Framework.

Gear VR Application Framework.

The aim of the project is to create an easy to use, lightweight, application framework for Gear VR. The library enables to write an app entirely in Java.

Features

Documentation

Usage

Add a dependency in your module's build.gradle.

dependencies {
    implementation 'org.meganekkovr:meganekko:3.2.1'
    implementation 'com.android.support:support-v4:27.0.1'
    implementation 'org.joml:joml:1.9.2'
    
    // Optional for org.meganekkovr.audio_engine.AudioEngine
    implementation 'com.google.vr:sdk-audio:1.101.0'
}

Click "Sync Now".

Note: Meganekko uses multi-view rendering. This feature is not working on prior Android M devices. See also https://developer3.oculus.com/documentation/mobilesdk/latest/concepts/release/

Hello World

Meganekko app is started from subclass of MeganekkoApp.

import org.meganekkovr.MeganekkoApp;

public class MyApp extends MeganekkoApp {

    @Override
    public void init() {
        super.init();
        // Init application here
    }
}

Create VR scene with XML. XML file can be localed from xml resource. For example: res/xml/scene.xml.

<scene>
    <view src="@layout/hello_world" position="0 0 -5" />
</scene>

@layout/hello_world is normal layout file put in res/layout/hello_world.xml.

<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Hello World!"
        android:textColor="#fff" />
</FrameLayout>

Call setSceneFromXML in MyApp.

public class MyApp extends MeganekkoApp {

    @Override
    public void init() {
        super.init();
        setSceneFromXml(R.xml.scene); // Set scene
    }
}

You have to modify AndroidManifest. Add recommended attributes and elements. See Oculus developer document.

<application
    android:allowBackup="true"
    android:icon="@mipmap/ic_launcher"
    android:label="@string/app_name"
    android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen">

    <!-- You have to declare to require Gear VR -->
    <meta-data
        android:name="com.samsung.android.vr.application.mode"
        android:value="vr_only" />

    <!-- Declare your App class extends MeganekkoApp -->
    <meta-data
        android:name="org.meganekkovr.App"
        android:value="org.meganekkovr.sample.MyApp"/>

    <activity
        android:name="org.meganekkovr.GearVRActivity"
        android:configChanges="orientation|screenSize|keyboard|keyboardHidden"
        android:excludeFromRecents="true"
        android:label="@string/app_name"
        android:launchMode="singleTask"
        android:screenOrientation="landscape">

        <!-- Only in debugging. Remove this when upload to Oculus Store. -->
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>

    </activity>
</application>

osig file is required to launch Meganekko app in Gear VR. See Oculus developer document for more information.

Put your osig file in app/src/main/assets.

That's all! Build, Connect Galaxy device to PC, install APK, and launch app. You will see white text "Hello World!".

Build from source

Open Android Studio with this repository. Select samplev3 from module list and click Run button.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].