GithubHelp home page GithubHelp logo

rajawaliexamples'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

rajawaliexamples's People

Contributors

andrewjo avatar davhed avatar dbarkar avatar gormanb avatar jayschwa avatar jwoolston avatar kedzie avatar kiranpradeep avatar tenaciousras avatar toxicbakery 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rajawaliexamples's Issues

The RajawaliRipplesActivity is not work

First i download Rajawali and RajawaliExamples code;
Second import two project to eclipse;
Third run RajawaliExamples project in eclipse;
When i enter"Touch Ripples Effect", Touch the screen,there is no Ripples Effect.But when I install RajawaliExamples.apk from download,It is work OK.

onDrawFrame

Hai, i need to add object 3d and texture in runtime. I see a lot of solution in rajawali github's issue, they update texture runtime in onDrawFrame. But i can find override onDrawFrame, how to create object 3d and texture runtime?

Remove Override annotation error

When I run the examples, I get multiple errors mostly saying "Remove @ Override annotation".

For example, getCount in ExamplesAdapter,.java, onAnimationStart in RajawaliExampleActivity, etc.

So the question is how to run the examples. I have not added the libfix-GLES20.so into the project. How to link this.

md5 mesh issue

i am using maya 2014 for rigging and animation, then i export backed animation as FBX format from maya 2014, after that i a m importing this fbx in blender 2.78 after that i am using add on script by name '' io_export_md5-263 '' http://www.katsbits.com/tools/#md5 for exporting md5 mesh and animation,
untill unless i am not using light everything is fair animation working properly, but as i use light mesh getting black spoted, use of light is compulsory for me because i have to use normal map along with diffuse map.(we check md5mesh and md5animation in this viewer http://away3d.com/awaybuilder/ and we see black spots on model)

withlight

withoutlight

can any one help me with this issue ?

i want to use this .md5animation and .md5mesh in android studio/eclipse with rajawali framework.

thanks in advance.

Camera rotation around object

I have tried the following methods for rotating the camera around a given point or object. The only method that actually changed anything was using the ChaseCamera, but I want to be able to deliberately rotate around an object or point.

mCamera.setLookAt(0, .5f, 0);
float[] matArray = new float[16];
Matrix4 cameraMat = new Matrix4((float)Math.cos(Math.toRadians(90d)), 0, (float)Math.sin(Math.toRadians(90d)), 0, 0, 1, 0, 0, -(float)Math.sin(Math.toRadians(90d)), 0, (float)Math.cos(Math.toRadians(90d)), 0, 0, 0, 0, 1);
cameraMat.toFloatArray(matArray);
mCamera.setRotationMatrix(matArray);
mCamera.setLookAt(0, .5f, 0);
mCamera.setRotY(90f);
mCamera = new ChaseCamera(new Number3D(0, .5f, 2), .1f);
((ChaseCamera)mCamera).setObjectToChase(object5);

If I create my own camera object with

mCamera = new Camera();

and assign it to the superclass's (RajawaliRenderer) mCamera property, nothing at all is displayed. How can I set the origin of the camera and rotate around it? Is this a bug or am I doing something incredibly wrong here?

problem when I try to import textures from model obj

Hi,

I'm trying to make an aplication that loads an 3d object.

when i load this object (http://rgcouto.net/alexandre/COKE/fineObj/), all works fine.
screenshot: http://rgcouto.net/alexandre/COKE/Screenshot_2013-01-10-15-04-42.png

But when i try load my object (http://rgcouto.net/alexandre/COKE/myObj/), exported from blender, the texture doesn't appear and the object is dark..
screenshot: http://rgcouto.net/alexandre/COKE/Screenshot_2013-01-10-15-02-27.png

What did I do wrong?
What i have to do, to make my object appear with texture?

My Blend file: http://rgcouto.net/alexandre/COKE/blend/
My renderer: http://rgcouto.net/alexandre/COKE/ObjRenderer.java

Regards
Alex

Custom Vertex Shader example crashes

The crash happened on a droid-maxx, samsung tab3 T201, nexus5 and an Asus Nexus 7.
Error log:

03-16 18:59:07.335 12254-12338/com.monyetmabuk.rajawali.tutorials E/Rajawali﹕ [rajawali.materials.Material] Could not compile vertex shader:
03-16 18:59:07.335 12254-12338/com.monyetmabuk.rajawali.tutorials E/Rajawali﹕ Shader log: Vertex shader compilation failed.
ERROR: 0:3: 'null' : undeclared identifier
ERROR: 0:3: '=' : assigning non-constant to 'const 3-component vector of float'
ERROR: 0:4: '=' : assigning non-constant to 'const 3-component vector of float'
ERROR: 0:5: '=' : assigning non-constant to 'const 3-component vector of float'
ERROR: 4 compilation errors. No code generated.
03-16 18:59:07.336 12254-12338/com.monyetmabuk.rajawali.tutorials W/Adreno-ES20﹕ <__load_uniform_float:802>: GL_INVALID_OPERATION
03-16 18:59:07.337 290-623/? I/SFPerfTracer﹕ triggers: (rate: 0:26) (0 sw vsyncs) (0 skipped) (151:244936 vsyncs) (153:718882)
03-16 18:59:07.355 12254-12338/com.monyetmabuk.rajawali.tutorials W/dalvikvm﹕ threadid=12: thread exiting with uncaught exception (group=0x41676d40)
03-16 18:59:07.361 12254-12338/com.monyetmabuk.rajawali.tutorials E/AndroidRuntime﹕ FATAL EXCEPTION: GLThread 2123
Process: com.monyetmabuk.rajawali.tutorials, PID: 12254
java.lang.RuntimeException: OpenGL Error: invalid operation 1282
at rajawali.renderer.RajawaliRenderer.onDrawFrame(RajawaliRenderer.java:394)
at com.monyetmabuk.rajawali.tutorials.examples.materials.CustomVertexShaderFragment$VertexShaderRenderer.onDrawFrame(CustomVertexShaderFragment.java:66)
at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1523)
at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1240)

ArrayIndexOutOfBoundsException for large models

I get an exception when trying to import a very large model with your library. It works fine if I split the model up into smaller portions ("export selection" in blender), but if I try to import the complete model I get an the following exception:

java.lang.ArrayIndexOutOfBoundsException: index=-24919 length=88258

with the following stack trace:

04-24 15:17:18.350: E/AndroidRuntime(25588):    at java.util.ArrayList.get(ArrayList.java:310)
04-24 15:17:18.350: E/AndroidRuntime(25588):    at rajawali.parser.ObjParser.parse(ObjParser.java:194)
04-24 15:17:18.350: E/AndroidRuntime(25588):    at de.ap.rajawali_test.Render_Test.initScene(Render_Test.java:40)
04-24 15:17:18.350: E/AndroidRuntime(25588):    at rajawali.renderer.RajawaliRenderer.onSurfaceCreated(RajawaliRenderer.java:233)
04-24 15:17:18.350: E/AndroidRuntime(25588):    at de.ap.rajawali_test.Render_Test.onSurfaceCreated(Render_Test.java:85)
04-24 15:17:18.350: E/AndroidRuntime(25588):    at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1414)
04-24 15:17:18.350: E/AndroidRuntime(25588):    at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1184)

The code used here is copy/paste from your tutorial on importing .obj files.

Any thoughts?

By the way, great library!!

chucktator

svgpath grammar question?

path id="batman-path22" center="22.395,127.223" height="4" style="fill:rgb(0,0,0)" d="M22.395-127.223c-4.492,11.344-4.688,33.75,0,44.883c-11.328-4.492-33.656-4.579-44.789,0.109c4.491-11.354,4.688-33.75,0-44.892C-11.066-122.63,11.262-122.536,22.395-127.223Z"

This path is right. But I don't understand its grammar.
(I point it out I have much experience in svg) .I can understandpath = "M550.1 163.4 L576.5 170.5 L579.4 174.8 L606 169.6 L641.3 181.3 L669 220.2 L593.7 236.1 L584.9 222.6 L595.2 220.5 L586.2 206.7 L539.8 216.1 L524.8 239.1 L471.9 250.1 L461.4 231.3 L471.1 229.4 L464.8 218.1 L455.1 220.1 L435.6 185.1 Z";

Now back to question." M22.395-127.223c-4.492,11.344-4.688,33.75,0,44.883c......."
Herer “- ” stands for space character ? But I replace all and at last I find it is error.
So I Put it out and I want to know "M22.395-127.223c-4.492,11.344-4.688,33.75,0,44.883c"
M - c C what means?

How to stretch one svg path ?

I can use sample way to make 2d svg picuture.
But I need 3d path.

final String path = "M22.395-127.223c-4.492,11.344-4.688,33.75,0,44.883"
+ "c-11.328-4.492-33.656-4.579-44.789,0.109c4.491-11.354,4.688-33.75,0-44.892"
+ "C-11.066-122.63,11.262-122.536,22.395-127.223z";

My requirement is to add one height value(z=50) in all svg path points.
Thus (22.395,127.223) ==========> (22.395,127.223,50).
Other points are likes above.

But I find it doesn't work in SVGPathFragment.java.
1 for (int j = 0; j <= subdiv; j++) {
Vector3 point = new Vector3();
subPath.calculatePoint(point, (float) j / (float) subdiv);
point.z=50; // I add it
points.add(point);
}
2 I don't know how to stretch it to polygon whose height is 100. (please stretch it)

3d model load

can I use this lib to load 3d model objects to my Android project
the problem I have is I want to load a car object this car object has some car components like a seat, mirror,engine, etc

-need to access these objects and change their color or change visibility

1- so what is a 3d object extension to use and where can I find a sample like this
2- can I use this lib for that

Errors

public void onSurfaceCreated(GL10 gl, EGLConfig config) {
((RajawaliExampleActivity) mContext).showLoader();
super.onSurfaceCreated(gl, config);
((RajawaliExampleActivity) mContext).hideLoader();
}
there is a error in line 2 and 4 how to remove it

problem Rajawali's coordinate system has changed. It now reflects

First, before you tell me that I'm a bad programmer, I'm lazy, or did not read the documentation I tell you, this is not true, I struggled and I'm struggling, but unfortunately when I solve one, another appears, did my code, this appears Feedback, responds to touches, but the screen is black. message:
05-09 13:47:39.289: I/Rajawali(15190): IMPORTANT: Rajawali's coordinate system has changed. It now reflects
05-09 13:47:39.289: I/Rajawali(15190): the OpenGL standard. Please invert the camera's z coordinate or
05-09 13:47:39.289: I/Rajawali(15190): call mCamera.setLookAt(0, 0, 0).
05-09 13:47:39.484: D/dalvikvm(15190): GC_FOR_ALLOC freed 901K, 21% free 7906K/9991K, paused 16ms

05-09 13:47:39.492: I/dalvikvm-heap(15190): Grow heap (frag case) to 9.404MB for 1700016-byte allocation
05-09 13:47:39.531: D/dalvikvm(15190): GC_CONCURRENT freed 5K, 5% free 9561K/9991K, paused 1ms+3ms
05-09 13:47:39.585: D/dalvikvm(15190): GC_FOR_ALLOC freed 0K, 5% free 9561K/9991K, paused 16ms
05-09 13:47:39.585: I/dalvikvm-heap(15190): Grow heap (frag case) to 10.120MB for 755260-byte allocation
05-09 13:47:39.601: D/dalvikvm(15190): GC_FOR_ALLOC freed 0K, 5% free 10299K/10759K, paused 16ms

Missing Activities

I'm getting actvity not found exceptions for the explicit intents launching them for the Materials example and SkyBox example. Commit: d2ff7a2

Touch & Drag problem

I coded follow the class TouchAndDragFragment:

public void moveSelectedObject(float x, float y) {
            if (mSelectedObject == null)
                return;

            //
            // -- unproject the screen coordinate (2D) to the camera's near plane
            //

            GLU.gluUnProject(x, getViewportHeight() - y, 0, mViewMatrix.getDoubleValues(), 0,
                mProjectionMatrix.getDoubleValues(), 0, mViewport, 0, mNearPos4, 0);

            //
            // -- unproject the screen coordinate (2D) to the camera's far plane
            //

            GLU.gluUnProject(x, getViewportHeight() - y, 1.f, mViewMatrix.getDoubleValues(), 0,
                    mProjectionMatrix.getDoubleValues(), 0, mViewport, 0, mFarPos4, 0);

            //
            // -- transform 4D coordinates (x, y, z, w) to 3D (x, y, z) by dividing
            // each coordinate (x, y, z) by w.
            //

            mNearPos.setAll(mNearPos4[0] / mNearPos4[3], mNearPos4[1]
                    / mNearPos4[3], mNearPos4[2] / mNearPos4[3]);
            mFarPos.setAll(mFarPos4[0] / mFarPos4[3],
                    mFarPos4[1] / mFarPos4[3], mFarPos4[2] / mFarPos4[3]);

            //
            // -- now get the coordinates for the selected object
            //

            double factor = (Math.abs(mSelectedObject.getZ()) + mNearPos.z)
                    / (getCurrentCamera().getFarPlane() - getCurrentCamera()
                            .getNearPlane());

            mNewObjPos.setAll(mFarPos);
            mNewObjPos.subtract(mNearPos);
            mNewObjPos.multiply(factor);
            mNewObjPos.add(mNearPos);

            mSelectedObject.setX(mNewObjPos.x);
            mSelectedObject.setY(mNewObjPos.y);
        }

and got an error like this.
I want to pick and drag object smoothly, but it immediately jumps to the touched position.
1
How to correct it ?
Thank for any help!

MD5 GPU Skeletal Animation Crashes Examples Application

I cloned both the Rajawali repo, and the Rajawali examples repo. The examples application seems to run just fine, but the MD5 GPU skinning example crashes the app when I try to run it. Here's my crash log:

04-17 16:28:19.263: D/memalloc(17650): ion: Mapped buffer base:0x5cc25000 size:614400 offset:0 fd:61
04-17 16:28:33.628: D/Activity(17650): Activity.onPause(), editTextTapSensorList size: 0
04-17 16:28:33.669: I/Rajawali(17650): IMPORTANT: Rajawali's coordinate system has changed. It now reflects
04-17 16:28:33.669: I/Rajawali(17650): the OpenGL standard. Please invert the camera's z coordinate or
04-17 16:28:33.669: I/Rajawali(17650): call mCamera.setLookAt(0, 0, 0).
04-17 16:28:33.719: D/memalloc(17650): ion: Mapped buffer base:0x5d2b7000 size:614400 offset:0 fd:64
04-17 16:28:33.749: D/memalloc(17650): ion: Unmapping buffer base:0x5c915000 size:614400
04-17 16:28:33.749: D/memalloc(17650): ion: Unmapping buffer base:0x5cb8f000 size:614400
04-17 16:28:33.749: D/memalloc(17650): ion: Unmapping buffer base:0x5cc25000 size:614400
04-17 16:28:33.759: I/Adreno200-EGLSUB(17650): ConfigWindowMatch:2188: Format RGB_565.
04-17 16:28:33.759: D/memalloc(17650): ion: Mapped buffer base:0x5c955000 size:307200 offset:0 fd:56
04-17 16:28:33.769: E/(17650): Can't open file for reading
04-17 16:28:33.769: E/(17650): Can't open file for reading
04-17 16:28:33.779: D/memalloc(17650): ion: Mapped buffer base:0x5d673000 size:614400 offset:0 fd:59
04-17 16:28:33.779: D/Rajawali(17650): MD5 Version: 10
04-17 16:28:33.789: D/memalloc(17650): ion: Mapped buffer base:0x5d709000 size:614400 offset:0 fd:63
04-17 16:28:34.549: E/Rajawali(17650): Couldn't find texture.
04-17 16:28:36.642: D/memalloc(17650): ion: Unmapping buffer base:0x5c955000 size:307200
04-17 16:28:36.652: W/dalvikvm(17650): threadid=11: thread exiting with uncaught exception (group=0x410849d8)
04-17 16:28:36.652: E/AndroidRuntime(17650): FATAL EXCEPTION: GLThread 984
04-17 16:28:36.652: E/AndroidRuntime(17650): java.lang.NullPointerException
04-17 16:28:36.652: E/AndroidRuntime(17650): at rajawali.BaseObject3D.setShaderParams(BaseObject3D.java:378)
04-17 16:28:36.652: E/AndroidRuntime(17650): at rajawali.animation.mesh.AnimationSkeleton.setShaderParams(AnimationSkeleton.java:85)
04-17 16:28:36.652: E/AndroidRuntime(17650): at rajawali.animation.mesh.AnimationSkeleton.render(AnimationSkeleton.java:159)
04-17 16:28:36.652: E/AndroidRuntime(17650): at rajawali.BaseObject3D.render(BaseObject3D.java:192)
04-17 16:28:36.652: E/AndroidRuntime(17650): at rajawali.renderer.RajawaliRenderer.render(RajawaliRenderer.java:203)
04-17 16:28:36.652: E/AndroidRuntime(17650): at rajawali.renderer.RajawaliRenderer.onDrawFrame(RajawaliRenderer.java:132)
04-17 16:28:36.652: E/AndroidRuntime(17650): at com.monyetmabuk.rajawali.tutorials.RajawaliMD5Renderer.onDrawFrame(RajawaliMD5Renderer.java:62)
04-17 16:28:36.652: E/AndroidRuntime(17650): at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1463)
04-17 16:28:36.652: E/AndroidRuntime(17650): at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1217)
04-17 16:28:36.672: D/Activity(17650): Activity.onPause(), editTextTapSensorList size: 0
04-17 16:28:36.782: D/memalloc(17650): ion: Mapped buffer base:0x5cb8f000 size:614400 offset:0 fd:54
04-17 16:28:36.822: D/memalloc(17650): ion: Unmapping buffer base:0x5d2b7000 size:614400
04-17 16:28:36.822: D/memalloc(17650): ion: Unmapping buffer base:0x5d673000 size:614400
04-17 16:28:36.822: D/memalloc(17650): ion: Unmapping buffer base:0x5d709000 size:614400
04-17 16:28:37.032: E/libEGL(17650): call to OpenGL ES API with no current context (logged once per thread)
04-17 16:28:37.973: D/memalloc(17650): ion: Mapped buffer base:0x5cc25000 size:614400 offset:0 fd:58
04-17 16:28:38.003: D/memalloc(17650): ion: Mapped buffer base:0x5d2b7000 size:614400 offset:0 fd:61

Models shift on camera movment

Hi,
I realised that the models of the Example shift towards the direction the camera of the smartphone is moved. The bigger the models the more the effect is visible. What could be the cause for that?

Regards

SkyBox mirror problem

Hi,
i am using your framework for panorama photos.
getCurrentScene().setSkybox(R.drawable.posx3, R.drawable.negx3,
R.drawable.posy3, R.drawable.negy3, R.drawable.posz3,
R.drawable.negz3);

but it mirrors the images. i mean all the writings on the buildings (in photos) are reversed.

any help please?

Touch issues

Hi,
I have checked out latest branch around a week ago, but the Interactive examples (object Picking and Touch & Drag) do not seem to work at my end. I hit a breakpoint on the 'onTouch' but not on 'onObjectPicked' .
Any idea what could be wrong?
I have tried it on 3 different devices, same behavior.

Thanks,
yakobom

RajawaliExamples app crashes on launch from Android Studio

Here is the logcat:

11-07 22:06:32.934 25412-25412/com.monyetmabuk.rajawali.tutorials E/libEGL: call to OpenGL     ES API with no current context (logged once per thread)
11-07 22:06:33.124 25412-26292/com.monyetmabuk.rajawali.tutorials E/AndroidRuntime: FATAL EXCEPTION: RajawaliGLThread 2124
11-07 22:06:33.124 25412-26292/com.monyetmabuk.rajawali.tutorials E/AndroidRuntime: Process: com.monyetmabuk.rajawali.tutorials, PID: 25412
11-07 22:06:33.124 25412-26292/com.monyetmabuk.rajawali.tutorials E/AndroidRuntime: java.lang.RuntimeException: createContext failed: EGL_BAD_ATTRIBUTE
11-07 22:06:33.124 25412-26292/com.monyetmabuk.rajawali.tutorials E/AndroidRuntime:     at org.rajawali3d.surface.RajawaliTextureView$EglHelper.throwEglException(RajawaliTextureView.java:889)
11-07 22:06:33.124 25412-26292/com.monyetmabuk.rajawali.tutorials E/AndroidRuntime:     at org.rajawali3d.surface.RajawaliTextureView$EglHelper.throwEglException(RajawaliTextureView.java:880)
11-07 22:06:33.124 25412-26292/com.monyetmabuk.rajawali.tutorials E/AndroidRuntime:     at org.rajawali3d.surface.RajawaliTextureView$EglHelper.start(RajawaliTextureView.java:748)
11-07 22:06:33.124 25412-26292/com.monyetmabuk.rajawali.tutorials E/AndroidRuntime:     at org.rajawali3d.surface.RajawaliTextureView$GLThread.guardedRun(RajawaliTextureView.java:1157)
11-07 22:06:33.124 25412-26292/com.monyetmabuk.rajawali.tutorials E/AndroidRuntime:     at org.rajawali3d.surface.RajawaliTextureView$GLThread.run(RajawaliTextureView.java:997)

how to get Terrain data in TerrainFragment java file

TerrainFragment is rather good in Terrain expression.
I am interested but I can't find the terrain data in program.
It seems it make use of bitmap and not use geocode data(lon ,lat ,height )
Can you help me to explain it?

TouchRipples not available in source code

I have downloaded the Rajawali example from playstore. In that 27 is Touch Ripples Effect but when I run the source code the part is commented... I have below line in my source code...
org.rajawali3d:rajawali:1.1.346-SNAPSHOT@aar
Can anyone help to solve this issue

Setting the color of .obj file.

Hello,

I am new to the field of 3D modeling in android. I am trying to load an .obj file (in this case, it is a car) and try to rotate it 360 degrees. I have been successfully able to do that. Now, I am trying to change the color of the car using the code below to black color.

`public class ObjectRenderer extends RajawaliRenderer {

private DirectionalLight directionalLight;
private Object3D mObjectGroup;
private Animation3D mCameraAnim, mLightAnim;

public ObjectRenderer(Context context) {
    super(context);
}

@Override
protected void initScene() {
    getCurrentScene().setBackgroundColor(1.0f, 1.0f, 1.0f, 1.0f);
    getCurrentCamera().setZ(16);

    LoaderOBJ objParser = new LoaderOBJ(mContext.getResources(), mTextureManager, R.raw.bmw);
    try {
        objParser.parse();
        mObjectGroup = objParser.getParsedObject();
        mObjectGroup.setScale(0.04f);
        mObjectGroup.setPosition(0.0f, -1.5f, 5.0f);
        //mObjectGroup.setColor(Color.BLACK) // I have tried this as well

        Material simple = new Material();
        simple.setColor(Color.BLACK); //I am setting the color here to black
        mObjectGroup.setMaterial(simple);

        getCurrentScene().addChild(mObjectGroup);

        mCameraAnim = new RotateOnAxisAnimation(Vector3.Axis.Y, 360);
        mCameraAnim.setDurationMilliseconds(8000);
        mCameraAnim.setRepeatMode(Animation.RepeatMode.INFINITE);
        mCameraAnim.setTransformable3D(mObjectGroup);
    } catch (ParsingException e) {
        e.printStackTrace();
    }
    getCurrentScene().registerAnimation(mCameraAnim);
    mCameraAnim.play();
}

@Override
public void onOffsetsChanged(float xOffset, float yOffset, float xOffsetStep, float yOffsetStep, int xPixelOffset, int yPixelOffset) {
}

@Override
public void onTouchEvent(MotionEvent event) {
}

}`

The issue is I cannot see the color change on the object. This is what I see no matter what color I add.

screenshot_2017-10-04-06-05-06-197_com application threesixtyrotation

Can please someone tell me if I am missing something.

Fragments can not be replaced

The current abstract implementation for the fragments prevents them from being properly replaced due to retaining the surface view. The surface should be released in the onDestroyView and the fragment handling should be reworked to prevent a logical back button flow.

Cloning objects and replacing textures

I have a very simple object (4 point plane) loaded from a obj file which is cloned 6 times. It also has a texture defined in an mtl file.

The six instances of these objects I need to change their textures quickly and efficiently, but the problem I'm having is that adding and removing a texture on the object effects its material which is shared between all 6 objects. So the result is that when the texture is changed, all instances are changed.

There doesn't seem to be a way to clone a material probably due to performance issues. Could you suggest a way of doing this efficiently?

Switch to general-purpose materials

GouraudMaterial and PhongMaterial can now be used in place of some of the older, more specific materials. Switch to the more general-purpose materials where applicable.

Animation Framework Merge

@ToxicBakery Are we just waiting until we decide how to manage the three projects before merging the animation updates in or is it just that no one has done it?

error in compile

compileSdkVersion 27
minSdkVersion 19
targetSdkVersion 22
classpath 'com.android.tools.build:gradle:3.0.0'

project not compile first time .

screen shot 2018-08-13 at 7 56 32 pm

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.