Giter Club home page Giter Club logo

rajawalivr's Introduction

AndroidLibs License Maven Central Maven Central

Build Status

Master Branch Status
CircleCI codecov

Develop Branch Status
CircleCI

News

06/23/2017 Bombshell 1.1.970 has been released. It fixes behavior of Objects of zero size, TextureView, TextureManager, Toon Shader color setters, custom shaders and more... It also adds preprocessor directive support for shader plugins, configurable skybox geometry, and extends our Unit Text Framework.

11/16/2016 Bombshell 1.1.777 has been released. It fixes a small number of bugs and adds a Scan Line post processing effect (thanks @contriteobserver).

9/7/2016 The official release of Bombshell 1.1.610 is out. We will continue to support this release moving forward how ever bug fixes will be minimal. The decision was made that the design of the core engine was inhibiting correcting some of the larger issues. To this end, we have begun development of a 2.0 version - see issue 1755 for details. Development is happening in the v2.0-development branch here

8/29/2016 An initial effort for adding unit testing to Rajawali has been made. This initial focus has been on the core math classes and will ideally expand as bug fixes progress. Pull requests for unit tests are welcome and any "bug fix" PRs which include unit tests or issues which include unit tests to demonstrate a failure will be given the highest priority.

General

Rajawali is a 3D engine for Android based on OpenGL ES 2.0/3.0. It can be used for normal apps as well as live wallpapers.

Want to keep the developers going? Buy them a beer! (http://www.pledgie.com/campaigns/21807)

Join the Rajawali Community on Rajawali Community on Google Plus to stay up-to-date on the latest news.

The RajawaliExamples project is an ever growing toolkit for developing 3D content. Check it out!

Made With Rajawali

Numerous apps and live wallpapers have been made with Rajawali. Check them out!

Using Rajawali with mavenCentral()

Using Rajawali is as simple as adding a single line to your gradle dependencies:

implementation 'org.rajawali3d:rajawali:x.x.x@aar where x.x.x is the version number (and the last number is the build number). If you wish to use the master branch snapshot, append -SNAPSHOT. For example, to use release 1.0.325, you would use:

implementation 'org.rajawali3d:rajawali:1.0.325@aar

To use the master branch build 48 snapshot 1.0.48-SNAPSHOT, you would use:

implementation 'org.rajawali3d:rajawali:1.0.48-SNAPSHOT@aar

All commits to master and development branch are deployed as snapshots. All tags will be deployed as releases. To see the latest build number, see the build history and be sure you choose a master branch build.

For the above to work you will need to make sure your repository list includes:

mavenCentral() for releases, and maven { url "https://oss.sonatype.org/content/repositories/snapshots/" } for snapshots.

Alternatively, if you checkout Rajawali via GIT, you can run gradle assembleRelease uploadArchives (or simply add a Gralde launch config to Android Studio for the assembleRelease and uploadArchives tasks). This will deploy to your local maven repository. Consuming apps should have mavenLocal() in their repository list and add implementation 'org.rajawali3d:rajawali:1.0.0-SNAPSHOT@aar to their dependencies.

Using Rajawali with Jitpack

Just add the following lines to your build.gradle Here you see more details https://jitpack.io/#rajawali/rajawali

dependencies {
    implementation "com.github.rajawali:rajawali:$latest_version"
}

To tell Gradle where to find the library, make sure build.gradle also contains this:

allprojects {
    repositories {
        ...
        maven { url 'https://jitpack.io' }
    }
}

Rajawali Examples On The Market

Download the free app

Rajawali + Augmented Reality

RajawaliVuforia GitHub

YouTube Video of RajawaliVuforia in action

Rajawali + Virtual Reality

RajawaliVR GitHub

YouTube Video of RajawaliVR in action

Tutorials

  1. Basic Setup & Sphere (Maven) 1. Basic Setup & a Sphere (Out of date)
  2. Creating a Live Wallpaper and Importing a Model
  3. Materials
  4. Optimization
  5. [Skybox] (https://github.com/MasDennis/Rajawali/wiki/Tutorial-05-Skybox)
  6. [Screenshots] (https://github.com/MasDennis/Rajawali/wiki/Tutorial-06-Screenshots)
  7. [Plugins] (https://github.com/MasDennis/Rajawali/wiki/Tutorial-07-Plugins)
  8. [User Interface Elements] (https://github.com/MasDennis/Rajawali/wiki/Tutorial-08-Adding-User-Interface-Elements)
  9. Creating a Custom Material GLSL Shader
  10. 2D Renderer
  11. Particles
  12. Object Picking
  13. Animation Classes
  14. Bump Normal Mapping
  15. MD2 Animation
  16. Collision Detection
  17. Importing .Obj Files
  18. Drawing Lines
  19. Catmull Rom Splines
  20. Animated Sprites
  21. Fog
  22. More Optimisation
  23. Custom Vertex Shader
  24. Using Geometry Data To Position And Rotate Objects
  25. Video Material
  26. Orthographic Camera
  27. Texture Compression
  28. Transparent Textures
  29. Skeletal Animation
  30. Creating a Day Dream
  31. [Using RajawaliScene] (https://github.com/MasDennis/Rajawali/wiki/Tutorial-31-Using-RajawaliScene)

Tutorials & Articles By Others

Learn Rajawali at a Training Center

rajawalivr's People

Contributors

jwoolston avatar masdennis avatar viliuskraujutis 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

rajawalivr's Issues

Out of memory exception with using multiple high resolution textures

This is the error that I am getting when I use multiple(~30 images) high resolution(4096 X 2048) textures with each image being around 5 MB on Nexus 5 android version 4.4.4.
E/Adreno-GSL﹕ <ioctl_kgsl_sharedmem_alloc:1532>: ioctl_kgsl_sharedmem_alloc: FATAL ERROR : (null)

I have several Images stored in my android app locally in the drawable-nodpi folder. And I change the texture of my sphere very often by calling the following function in VR app:-

public void changeImage(int imageResourceId) {

    Texture t = new Texture("sphereTexture", imageResourceId);
    t.shouldRecycle(true);
    ArrayList<Object3D> objectList = getCurrentScene().getChildrenCopy(); // Get reference to sphere

    Material material = objectList.get(0).getMaterial(); // get material of sphere
    for (ATexture texture : material.getTextureList()) {// remove previous texture on material
        material.removeTexture(texture);
        texture = null;
    }


    try {
        material.addTexture(t); // add new texture to material
    } catch (Exception e) {
        e.printStackTrace();
    }
}

So my question is, is it possible to get rid of this error? Is there any recommendation for using image textures like what is the right resolution for image textures etc.

Having a cursor in VR

Hello! We are developing an app using RajawaliVR. We implemented a first person camera, and we can also freely move in the scene (like fly or walk).

We would like to add to our first person camera a cursor (like in other VR apps), so we could interact with objects in our scene. The idea is that our cursor would look like a target and do a little animation when we look at an object, and after a short time it would trigger an action.

So the question is: is there currently an implemented cursor for RajawaliVR or is there a way to implement something like that?

Thanks in advance.

RajawaliVRExample Crash when resuming from Screen Off

The RajawaliVRExample application provokes a crash within the Rajawali library when being resumed after a screen off pause. Here's the stack trace I experience on my Nexus5 on the L Developer Preview.

am_on_paused_called  I  [0,rajawali.vr.example.RajawaliVRExampleActivity]
        AndroidRuntime  E  FATAL EXCEPTION: GLThread 3212
                        E  Process: rajawali.vr.example, PID: 353
                        E  java.lang.IllegalArgumentException: bitmap is recycled
                        E      at android.opengl.GLUtils.texImage2D(GLUtils.java:112)
                        E      at rajawali.materials.textures.ASingleTexture.add(ASingleTexture.java:187)
                        E      at rajawali.materials.textures.TextureManager.taskAdd(TextureManager.java:116)
                        E      at rajawali.materials.textures.TextureManager.taskAdd(TextureManager.java:87)
                        E      at rajawali.renderer.RajawaliRenderer.internalAddTexture(RajawaliRenderer.java:935)
                        E      at rajawali.renderer.RajawaliRenderer.handleAddTask(RajawaliRenderer.java:736)
                        E      at rajawali.renderer.RajawaliRenderer.performFrameTasks(RajawaliRenderer.java:676)
                        E      at rajawali.renderer.RajawaliRenderer.onDrawFrame(RajawaliRenderer.java:352)
                        E      at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1523)
                        E      at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1240)

I've worked through the difficulties of this particular transition on another project, so I'm familiar with the trickery of the OpenGL Context being destroyed after screen off even when it's requested to be preserved. Perhaps that's the root issue here?

Love your work!

Unable to build the master branch

Hi,
I am not able to build the master, I get below error messages

C:\VR\RajawaliVR\RajawaliVR\rajawalivr\src\main\java\org\rajawali3d\vr\surface\R
ajawaliVRSurfaceView.java:64: error: cannot find symbol
public void setAntiAliasingMode(ANTI_ALIASING_CONFIG anti_aliasing_config) {

                                ^

symbol: class ANTI_ALIASING_CONFIG
location: class RajawaliVRSurfaceView
C:\VR\RajawaliVR\RajawaliVR\rajawalivr\src\main\java\org\rajawali3d\vr\renderer
RajawaliVRRenderer.java:91: error: cannot find symbol
getCurrentCamera().updatePerspective(
^
symbol: method updatePerspective(float,float,float,float)
location: class Camera
C:\VR\RajawaliVR\RajawaliVR\rajawalivr\src\main\java\org\rajawali3d\vr\materials
\shaders\HotspotFragmentShader.java:123: error: method add in class AShaderBase.
ShaderVar cannot be applied to given types;
ShaderVar yScale = sin(muTime.multiply(muTextureRotationSpeed)).mult
iply(0.5f).add(0.5f);

      ^

required: AShaderBase.ShaderVar
found: float
reason: actual argument float cannot be converted to AShaderBase.ShaderVar by
method invocation conversion
C:\VR\RajawaliVR\RajawaliVR\rajawalivr\src\main\java\org\rajawali3d\vr\materials
\shaders\HotspotFragmentShader.java:154: error: cannot find symbol
RFloat angle = new RFloat("angle", atan(uv.y(), uv.x()).multiply(-1)
);
^
symbol: method atan(AShaderBase.ShaderVar,AShaderBase.ShaderVar)
location: class HotspotFragmentShader
C:\VR\RajawaliVR\RajawaliVR\rajawalivr\src\main\java\org\rajawali3d\vr\surface\R
ajawaliVRSurfaceView.java:31: error: RajawaliVRSurfaceView is not abstract and d
oes not override abstract method setUsesCovererageAntiAliasing(boolean) in IRaja
waliSurface
public class RajawaliVRSurfaceView extends CardboardView implements IRajawaliSur
face {
^
C:\VR\RajawaliVR\RajawaliVR\rajawalivr\src\main\java\org\rajawali3d\vr\surface\R
ajawaliVRSurfaceView.java:63: error: method does not override or implement a met
hod from a supertype
@OverRide
^
C:\VR\RajawaliVR\RajawaliVR\rajawalivr\src\main\java\org\rajawali3d\vr\surface\R
ajawaliVRSurfaceView.java:68: error: method does not override or implement a met
hod from a supertype
@OverRide
^
7 errors
:rajawalivr:compileReleaseJava FAILED

FAILURE: Build failed with an exception.

VR rendering a 3D SBS movie using VideoTexture

Accessing the SurfaceTexture in Java from MediaPlayer is not possible without using the new low level MediaCodec (API16). These are in flux and restrict deployment options. I also do not want to "go native".

A shader could handle rendering the left/right eye areas of the video to the left/right eye areas of the VR renderer.

From my research, it seems that the video surfacetexture can be passed to a fragment shader attached to the VideoTexture. SurfaceTexture even provides the transformationMatrix:

public void getTransformMatrix(float[] mtx)

I think I could do this with a raw (glsl) shader, but the new Rajawali shader framework should allow me to write the shader in java, yes? The framework generates and compiles the glsl?

Would this be the recommended way to VR render a 3D SBS video to a VideoTexture?

RajawaliVR giving compile time errors

public void main() {
    //        vec2 uv = fragCoord.xy / iResolution.xy;
    RVec2 uv = new RVec2("uv", mvTextureCoord);
    //        float circleBorderHalf = circleBorder * 0.5;
    RFloat circleBorderHalf = new RFloat("circleBorderHalf");
    circleBorderHalf.assign(muBorderThickness.multiply(0.5f));

    //        float dist = distance(uv, circleCenter);
    ShaderVar dist = distance(uv, muCircleCenter);

    RVec4 outColor = new RVec4("outColor", new RVec4("vec4(0.0)"));
    //outColor.a().assign(0.0f);

    if(mUseTexture) {
        //        float yScale = sin(iGlobalTime * textureRotationSpeed) * 0.5 + 0.5;
        ShaderVar yScale = sin(muTime.multiply(muTextureRotationSpeed)).multiply(0.5f).add(0.5f);    //ERROR this line

/*

Error:(121, 91) error: method add in class AShaderBase.ShaderVar cannot be applied to given types;
required: AShaderBase.ShaderVar
found: float
reason: actual argument float cannot be converted to AShaderBase.ShaderVar by method invocation conversion

*/

        RFloat one = new RFloat("one", new RFloat(1.0f));
        //one.assign(1.0f);
        //        vec2 uvAnim = vec2(uv.x, uv.y - 0.5);
        RVec2 uvAnim = new RVec2("uvAnim", new RVec2("vec2(0.0)"));
        uvAnim.x().assign(uv.x());
        uvAnim.y().assign(uv.y().subtract(0.5f));
        //        uvAnim.y *= 1.0 / yScale;
        uvAnim.y().assignMultiply(one.divide(yScale));
        //        uvAnim.y += 0.5;
        uvAnim.y().assignAdd(0.5f);
        //        outColor = texture2D(iChannel0, uvAnim);
        RVec4 color = (RVec4)getGlobal(DefaultShaderVar.G_COLOR);
        outColor.assign(texture2D(muTexture, uvAnim));
    }

    //        if(dist < circleRadius + circleBorderHalf && dist > circleRadius - circleBorderHalf) {
    startif(
            new Condition(dist, Operator.LESS_THAN, muCircleRadius.add(circleBorderHalf)),
            new Condition(Operator.AND, dist, Operator.GREATER_THAN, muCircleRadius.subtract(circleBorderHalf))
    );
    {
        //            outColor = trackColor;
        outColor.assign(muTrackColor);
        //            float startAngle = 0.0;
        RFloat startAngle = new RFloat("startAngle", new RFloat(0));
        //            float endAngle = startAngle + mod(iGlobalTime * 2.0, PI_2);
        RFloat endAngle = new RFloat("endAngle", startAngle.add(muProgress.multiply(mcTwoPI)));
        //            uv -= circleCenter;
        uv.assignSubtract(muCircleCenter);
        //            float angle = -1.0 * atan(uv.y, uv.x) + PI;
        RFloat angle = new RFloat("angle", atan(uv.y(), uv.x()).multiply(-1)); //ERROR this line

/*

Error:(152, 48) error: cannot find symbol method atan(AShaderBase.ShaderVar,AShaderBase.ShaderVar)

*/

        angle.assignAdd(mcPI);

        //            if(angle >= startAngle && angle <= endAngle) {
        startif(new Condition(angle, Operator.GREATER_THAN_EQUALS, startAngle),
                new Condition(Operator.AND, angle, Operator.LESS_THAN_EQUALS, endAngle));
        {
            //                outColor = progressColor;
            outColor.assign(muProgressColor);
        }
        endif();
    }
    endif();

    if(mDiscardAlpha) {
        startif(new Condition(outColor.a(), Operator.EQUALS, 0));
        {
            discard();
        }
        endif();
    }

    //        fragColor = outColor;
    GL_FRAG_COLOR.assign(outColor.getName());
}

I downloaded the RajawaliVR project and it gives me two compile time errors in the class HotspotFragmentShader. Please fix it as soon as possible. Thank you :)

RajawaliVR with 3D video

Hi.

I am trying to play a 3D video with RajawaliVR. To do that i need an already stereoscopic video and then split it in two and render them for each eye separately. However with the current implementation of the RajawaliCardboardRenderer, i cannot do that. I have tried to implement the CardboardView.Renderer, instead of the CardboardView.StereoRenderer in order to deal with the stereoscopic details, but i am getting nowhere. Can you help me? Are this kind of enhancements in your work list?

Thanks,
rbrilhante

Video not playing | White Screen

I have extended RajawaliVRActivity and RajaWaliRenderer. Problem is that it is giving me a filenotfoundexception.
Does this library require a physical cardboard to work?
Stack trace:

02-13 07:40:57.198 6906-6906/com.appinhand.video360 E/NFC: could not retrieve NFC service
02-13 07:40:57.202 6906-6906/com.appinhand.video360 D/HeadMountedDisplayManager: Cardboard screen parameters file not found: java.io.FileNotFoundException: /storage/emulated/0/Cardboard/phone_params: open failed: ENOENT (No such file or directory)
02-13 07:40:57.203 6906-6906/com.appinhand.video360 D/HeadMountedDisplayManager: Cardboard device parameters file not found: java.io.FileNotFoundException: /storage/emulated/0/Cardboard/current_device_params: open failed: ENOENT (No such file or directory)
02-13 07:40:57.203 6906-6906/com.appinhand.video360 D/HeadMountedDisplayManager: Bundled Cardboard device parameters not found: java.io.FileNotFoundException: Cardboard/current_device_params
02-13 07:40:57.260 6906-6906/com.appinhand.video360 I/Rajawali: Rajawali | Anchor Steam | v1.0
02-13 07:40:57.264 6906-6906/com.appinhand.video360 E/libEGL: call to OpenGL ES API with no current context (logged once per thread)
02-13 07:40:57.268 6906-6906/com.appinhand.video360 D/HeadMountedDisplayManager: Cardboard device parameters file not found: java.io.FileNotFoundException: /storage/emulated/0/Cardboard/current_device_params: open failed: ENOENT (No such file or directory)
02-13 07:40:57.268 6906-6906/com.appinhand.video360 D/HeadMountedDisplayManager: Cardboard screen parameters file not found: java.io.FileNotFoundException: /storage/emulated/0/Cardboard/phone_params: open failed: ENOENT (No such file or directory)
02-13 07:40:57.323 6906-6906/com.appinhand.video360 W/ResourceType: For resource 0x01030224, entry index(548) is beyond type entryCount(44)
02-13 07:40:57.323 6906-6906/com.appinhand.video360 W/ResourceType: For resource 0x01030224, entry index(548) is beyond type entryCount(44)
02-13 07:40:57.324 6906-6906/com.appinhand.video360 W/ResourceType: For resource 0x01030237, entry index(567) is beyond type entryCount(44)
02-13 07:40:57.324 6906-6906/com.appinhand.video360 W/ResourceType: For resource 0x01030237, entry index(567) is beyond type entryCount(44)
02-13 07:40:57.326 6906-6906/com.appinhand.video360 D/HeadMountedDisplayManager: Cardboard screen parameters file not found: java.io.FileNotFoundException: /storage/emulated/0/Cardboard/phone_params: open failed: ENOENT (No such file or directory)
02-13 07:40:57.327 6906-6906/com.appinhand.video360 D/HeadMountedDisplayManager: Cardboard device parameters file not found: java.io.FileNotFoundException: /storage/emulated/0/Cardboard/current_device_params: open failed: ENOENT (No such file or directory)
02-13 07:40:57.327 6906-6906/com.appinhand.video360 D/HeadMountedDisplayManager: Bundled Cardboard device parameters not found: java.io.FileNotFoundException: Cardboard/current_device_params
02-13 07:40:57.331 6906-6906/com.appinhand.video360 I/Rajawali: Rajawali | Anchor Steam | v1.0
02-13 07:40:57.334 6906-6906/com.appinhand.video360 D/HeadMountedDisplayManager: Cardboard device parameters file not found: java.io.FileNotFoundException: /storage/emulated/0/Cardboard/current_device_params: open failed: ENOENT (No such file or directory)
02-13 07:40:57.334 6906-6906/com.appinhand.video360 D/HeadMountedDisplayManager: Cardboard screen parameters file not found: java.io.FileNotFoundException: /storage/emulated/0/Cardboard/phone_params: open failed: ENOENT (No such file or directory)
02-13 07:40:57.358 6906-6906/com.appinhand.video360 I/Timeline: Timeline: Activity_idle id: android.os.BinderProxy@3a92e020 time:39215790
02-13 07:40:57.360 6906-6906/com.appinhand.video360 I/Timeline: Timeline: Activity_idle id: android.os.BinderProxy@3a92e020 time:39215791
02-13 07:40:57.379 6906-6971/com.appinhand.video360 D/OpenGLRenderer: endAllStagingAnimators on 0xa09fb080 (ListView) with handle 0xa0b210e0

Vuforia License in License.txt

According to the Readme.txt RajiwaliVR is a combination of Rajiwali and Google Cardboard Toolkit.

While Rajiwali is licensed under Apache 2.0, Vuforia is not a free to use License and thus my question is:
Is the Vuforia License reference in the License.txt file just a mistake (maybe oversight from porting from Rajiwali + Vuforia) or is it required to buy the Vuforia license if I want to use RajiwaliVR?

RajawaliVR with TouchEvent

Hello folks. I'd like to know if is possible to detect the touch event using the Cardboard in RajawaliVR. I tried some snippets how to handle the TouchEvent but I have no success.

The events are not fired when I touched the screen when I override the onTouchEvent on RajawaliCardboardRenderer class.

@Override public void onTouchEvent(MotionEvent me) { //The MotionEvent "me" has all of the data you need to make animation based on touch if (me.getAction() == MotionEvent.ACTION_DOWN) { //Called once at the start of the touch System.out.println(me.getAction() + " -- " + me.getX() + ", " + me.getY()); } if (me.getAction() == MotionEvent.ACTION_MOVE) { //Called repeatedly as touch point moves System.out.println(me.getAction() + " -- " + me.getX() + ", " + me.getY()); } if (me.getAction() == MotionEvent.ACTION_UP) { //Called once at the end of the touch System.out.println(me.getAction() + " -- " + me.getX() + ", " + me.getY()); } try { Thread.sleep(15); //Small delay to keep touch events from overflowing and decreasing performance } catch (Exception e) { } }

Regards,
Marcos

Getting Exeption on Surface Change

Reported in Stackoverflow: http://stackoverflow.com/questions/31593360/getting-exeption-on-surface-change

Got the below stacktrace as part of Crash Report.
It looks like this problem is specific to one type of device OnePlusOne. Any pointers will be helpful.

java.lang.IllegalArgumentException: bitmap is recycled
at android.opengl.GLUtils.texImage2D(GLUtils.java:112)
at org.rajawali3d.materials.textures.ASingleTexture.add(ASingleTexture.java:186)
at org.rajawali3d.materials.textures.TextureManager.taskAdd(TextureManager.java:110)
at org.rajawali3d.materials.textures.TextureManager.taskReload(TextureManager.java:209)
at org.rajawali3d.renderer.RajawaliRenderer.onRenderSurfaceSizeChanged(RajawaliRenderer.java:362)
at org.rajawali3d.vr.renderer.RajawaliVRRenderer.onSurfaceChanged(RajawaliVRRenderer.java:88)
at com.google.vrtoolkit.cardboard.CardboardViewJavaImpl$StereoRendererHelper.onSurfaceChanged(CardboardViewJavaImpl.java:931)
at com.google.vrtoolkit.cardboard.CardboardViewJavaImpl$RendererHelper.onSurfaceChanged(CardboardViewJavaImpl.java:716)
at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1511)
at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1239)

Jittery Behaviour Using Cardboard 0.6.0

Hi,

I tested the new RajawaliVR with Cardboard 0.6.0 on a Samsung Galaxy S4 and a Samsung Galaxy S5 and I'm getting an odd behaviour when shaking the phone, I've captured videos using both the previous RajawaliVR + Cardboard version and the new version:

https://youtu.be/YQMWDoeJD8w
https://youtu.be/wZLf1zjzXqU

I've included the information I thought relevant in the video description, but basically both phones have Android 5.* stock official Samsung firmwares.

I'm guessing that Carboard 0.6.0 must have changed something in terms of sensor readings perhaps, is this something that can be fixed on Rajawali's side or would it just be a matter of waiting for Cardboard to eventually fix itself up?

I'm available to help on fixing this as well, I'll be trying to do it but if anyone has any insights on what the problem might be and eventually on how to fix it, please let me know as well.

Thank you!

Export 3D Space to use it with CardBoard

I would like to know if its possible to say Sweet 3D Home software, which is to create kitchen, house.. designs, which you can export the design to OBJ, the use this file to to display it in the Cardboard With a static position, not actually moving inside the virtual world. So you can see your kitchen space with CardBoard :)

It looks like Rajawali Framework can recognise OBJ format , can someone give me some hints if this is possible to do and how can that be achieved?

how to tell whether the camera is looking at an object

I render an plane with size(1,1) right on the screen like: mPlane.setZ(-4);
how to tell whether I am looking at the object?
how to get the camera matrix, model matrix, head matrix? Do I have to calculate the picth and yaw by my self?

I check the code and find private member
private Quaternion mCameraOrientation;
which returns value from -1 to 1 (360). it's this possible to use this to tell whether I am looking at the plane?

Thanks!

Using RajawaliVR with current Rajawali main branch

Hi,
I was not able to get this working - seems like the current Rajawali dev env has changed (Android Studio support?) so I cannot compile it, the required imports cannot be found...
Any ideas?

Thanks,
yakobom

Maven Local Repositories?

I'm a bit inexperienced with Maven/Gradle. Do I run ./RajawaliVR/RajawaliVR/gradlew clean assembleRelease uploadArchives from anywhere special? Because running the task (or even ./RajawaliVR/RajawaliVR/gradlew tasks) gives the error code:

SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable.

Thanks for your help.

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.