Giter VIP home page Giter VIP logo

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

rajawalivuforia's People

Contributors

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

rajawalivuforia's Issues

RajawaliVuforia for Android < 4.0

Is there a version of RajawaliVuforia for Android versions < 4.0?
Rajawali project was compatible with Android 2.3 until tag v0.9.

position of plane with texture

hi,
i am trying to use a plane with texture ,
but plane is seems to above marker at some height , despite setting any position value, it remains floating at some height .
if in same manner i am using a md2 model it shows fine on (0,0,0).
plane

QCAR_ missing? I just Imported

set

Hey Dennis, i tried this project ported and not really working :)

I think QCAR isnt imported correctly

07-01 18:16:08.000: I/dalvikvm(11054): java.lang.NoClassDefFoundError: com/qualcomm/ar/pl/CameraPreview
07-01 18:16:08.000: I/dalvikvm(11054):  at java.lang.Runtime.nativeLoad(Native Method)
07-01 18:16:08.000: I/dalvikvm(11054):  at java.lang.Runtime.loadLibrary(Runtime.java:369)
07-01 18:16:08.000: I/dalvikvm(11054):  at java.lang.System.loadLibrary(System.java:535)
07-01 18:16:08.000: I/dalvikvm(11054):  at rajawali.vuforia.RajawaliVuforiaActivity.loadLibrary(RajawaliVuforiaActivity.java:302)
07-01 18:16:08.000: I/dalvikvm(11054):  at rajawali.vuforia.RajawaliVuforiaActivity.<clinit>(RajawaliVuforiaActivity.java:43)
07-01 18:16:08.000: I/dalvikvm(11054):  at java.lang.Class.newInstanceImpl(Native Method)
07-01 18:16:08.000: I/dalvikvm(11054):  at java.lang.Class.newInstance(Class.java:1319)
07-01 18:16:08.000: I/dalvikvm(11054):  at android.app.Instrumentation.newActivity(Instrumentation.java:1054)
07-01 18:16:08.000: I/dalvikvm(11054):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2097)
07-01 18:16:08.000: I/dalvikvm(11054):  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)
07-01 18:16:08.000: I/dalvikvm(11054):  at android.app.ActivityThread.access$600(ActivityThread.java:141)
07-01 18:16:08.000: I/dalvikvm(11054):  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
07-01 18:16:08.000: I/dalvikvm(11054):  at android.os.Handler.dispatchMessage(Handler.java:99)
07-01 18:16:08.000: I/dalvikvm(11054):  at android.os.Looper.loop(Looper.java:137)
07-01 18:16:08.000: I/dalvikvm(11054):  at android.app.ActivityThread.main(ActivityThread.java:5041)
07-01 18:16:08.000: I/dalvikvm(11054):  at java.lang.reflect.Method.invokeNative(Native Method)
07-01 18:16:08.000: I/dalvikvm(11054):  at java.lang.reflect.Method.invoke(Method.java:511)
07-01 18:16:08.000: I/dalvikvm(11054):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
07-01 18:16:08.000: I/dalvikvm(11054):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
07-01 18:16:08.000: I/dalvikvm(11054):  at dalvik.system.NativeStart.main(Native Method)
07-01 18:16:08.000: I/dalvikvm(11054): Caused by:
07-01 18:16:08.000: I/dalvikvm(11054): java.lang.ClassNotFoundException: Didn't find class "com.qualcomm.ar.pl.CameraPreview" on path: /data/app/com.example.rajawalivuforiaexample-1.apk
07-01 18:16:08.000: I/dalvikvm(11054):  at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:65)
07-01 18:16:08.000: I/dalvikvm(11054):  at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
07-01 18:16:08.000: I/dalvikvm(11054):  at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
07-01 18:16:08.000: I/dalvikvm(11054):  at java.lang.Runtime.nativeLoad(Native Method)
07-01 18:16:08.000: I/dalvikvm(11054):  at java.lang.Runtime.loadLibrary(Runtime.java:369)
07-01 18:16:08.000: I/dalvikvm(11054):  at java.lang.System.loadLibrary(System.java:535)
07-01 18:16:08.000: I/dalvikvm(11054):  at rajawali.vuforia.RajawaliVuforiaActivity.loadLibrary(RajawaliVuforiaActivity.java:302)
07-01 18:16:08.000: I/dalvikvm(11054):  at rajawali.vuforia.RajawaliVuforiaActivity.<clinit>(RajawaliVuforiaActivity.java:43)
07-01 18:16:08.000: I/dalvikvm(11054):  at java.lang.Class.newInstanceImpl(Native Method)
07-01 18:16:08.000: I/dalvikvm(11054):  at java.lang.Class.newInstance(Class.java:1319)
07-01 18:16:08.000: I/dalvikvm(11054):  at android.app.Instrumentation.newActivity(Instrumentation.java:1054)
07-01 18:16:08.000: I/dalvikvm(11054):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2097)
07-01 18:16:08.000: I/dalvikvm(11054):  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)
07-01 18:16:08.000: I/dalvikvm(11054):  at android.app.ActivityThread.access$600(ActivityThread.java:141)
07-01 18:16:08.000: I/dalvikvm(11054):  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
07-01 18:16:08.000: I/dalvikvm(11054):  at android.os.Handler.dispatchMessage(Handler.java:99)
07-01 18:16:08.000: I/dalvikvm(11054):  at android.os.Looper.loop(Looper.java:137)
07-01 18:16:08.000: I/dalvikvm(11054):  at android.app.ActivityThread.main(ActivityThread.java:5041)
07-01 18:16:08.000: I/dalvikvm(11054):  at java.lang.reflect.Method.invokeNative(Native Method)
07-01 18:16:08.000: I/dalvikvm(11054):  at java.lang.reflect.Method.invoke(Method.java:511)
07-01 18:16:08.000: I/dalvikvm(11054):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
07-01 18:16:08.000: I/dalvikvm(11054):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
07-01 18:16:08.000: I/dalvikvm(11054):  at dalvik.system.NativeStart.main(Native Method)

issue in loading multiple texture

I’m trying to execute the RajawaliVuforiaExample with multiple texture mtl file. But it doesn’t take all the material and it is using the last material alone. can you please help me out.

MTL FILE:

3ds Max Wavefront OBJ Exporter v0.97b - (c)2007 guruware

File Created: 31.08.2010 21:06:50

newmtl 07___Default
Ns 10.0000
Ni 1.5000
d 1.0000
Tr 0.0000
Tf 1.0000 1.0000 1.0000
illum 2
Ka 0.5882 0.5882 0.5882
Kd 0.5882 0.5882 0.5882
Ks 0.0000 0.0000 0.0000
Ke 0.0000 0.0000 0.0000
map_Ka Statue_of_Liberty.jpg
map_Kd Statue_of_Liberty.jpg
map_bump Map__4_Normal_Bump.tga

newmtl 08___Default
Ns 10.0000
Ni 1.5000
d 1.0000
Tr 0.0000
Tf 1.0000 1.0000 1.0000
illum 2
Ka 0.5882 0.5882 0.5882
Kd 0.5882 0.5882 0.5882
Ks 0.0000 0.0000 0.0000
Ke 0.0000 0.0000 0.0000
map_Ka Statue_of_Liberty_ground.jpg
map_Kd Statue_of_Liberty_ground.jpg
map_bump Map__8_Normal_Bump.tga

how to get the modelViewMatrix

HI, I use rajawali for 3d engine for my AR sdk. i just use openCV function nativeDetect to detect the marker, and get two MAT variables Rvec,Tvec. but I don't know to how calculate the right modelViewmatrix for rajawali engine. i just found a function foundFrameMarker(int markerId, float[] modelViewMatrix) in RajwaliVuforia. and my question is how to get the modelViewMatrix in RajawaliVuforia?

ObjectColorPicker always picks an object in RajawaliVuforia irrespective of touch

i am trying to implement picking and dragging of 3d model(Object3d) in rajawali vuforia using ObjectColorPicker. i am following this tutorial(Rajawali/Rajawali#753) .i want my 3dmodel to move only if i touch the model.if i press my finger anywhere on the screen the 3d model moves irrespective of touch.
am i missing something??
Any help is appreciated

after debugging i found at that method "onObjectPicked" of ObjectColorPicker is called if i place my finger anywhere on the screen.

code:
Activity:

            @Override
            public boolean onTouchEvent(MotionEvent event) {
                 switch (event.getAction()) {
                     case MotionEvent.ACTION_DOWN:
                              mRenderer.getObjectAt(event.getX(), event.getY());                
                              break;
                     case MotionEvent.ACTION_MOVE:
                              mRenderer.Move(event.getX(),event.getY());
                              break;
                     case MotionEvent.ACTION_UP:
                             mRenderer.stopMovingSelectedObject();
                             break;
                     default:break;
                  }
              }

In Renderer class:

      mPicker = new ObjectColorPicker(this);
     mPicker.registerObject(mF22);
     mPicker.setOnObjectPickedListener(new OnObjectPickedListener() {
        @Override
        public void onObjectPicked(Object3D object3D) {
            mSelectedObject = object3D;
            Log.e(TAG,"selected obj s picked");
        }
    });

"Cylinder target" and "Multi-targets" implementation

Hi everybody

Although RajawaliVuforia's "readme.md" mentions both "Cylinder target" and "Multi-targets" as supported, the actual code doesn't reflect none of them.

As a first step towards rigid-body recognition (prior to impresive but "watermarked" Vuforia 4.0 solution), I'm very interested to know if both functionalities are planned to be implemented.

Best regards.

Trouble running example app

I'm trying to get this to run on my Samsung GS2. Could you give me the Rajawali version that you are using? I see that's it's a bit older, do you have an update that works on the latest? I've also tried 3 prior versions just to see if I could get one to compile but no luck.

The errors using the latest Rajawali seem pretty trivial, BaseObject3D is no longer and it looks like the parsers being used are no longer there as well. I tried changing the two parsers (MD5 Anim and Mesh) to their corresponding Loader which will compile but when run it runs the screen is black.

Wrong rotation with negative scale objects

I detected a new issue, for some 3d models, example md2, that are loaded in Y negative axis, you need to sale it with Y=-1 to see it right. but when you put the orientation to this kind of objects that are in negative scale, the rotation gets wrong results. I debugged this into the library, and found the wrong result in method Object3d.render()->calculateModelMatrix(parentMatrix);

in this method Object3D i found:
mMMatrix.identity().translate(mPosition).scale(mScale).multiply(mRotationMatrix);
when mScale contains a negative value, gets wrong directions.

i think this can be solved changing the loaded axis, to not modify the operations, because this works fine when are positive scales. i want to avoid the negative scales, but objects are loaded in y axis inverted.

has anyone an idea how to fix it?

How to integrate vuforia 4-2-3

Now, the latest version of vuforia is 4-2-3.
Can I upgrade project by override Vuforia.jar and libVufoia.so in libs and src/main/libs folder

Rotations on a vuforia model

Loading an OBJ and doing setRot* or any RotationAnimation in Vuforia applies the wrong rotation, with an error dependent on the camera angle.

Texture is not applied

Hi,

I'm trying to display the below 3d model in rajawalivuforia example, but the model texture is not applied.

I have replaced g into o in obj file, but still it is not displaying the texture

also i removed following lines from mtl file

map_d //removed
refl //removed
map_kS //removed
map_Ns //removed

Model : https://gist.github.com/hsemar/b55c4fb4d90065344285

Can you please tell me the issue in the model

fail to build the examples

New bird to android studio. When I sync and import example project to android studio, build action leads to an error like:
failed to resolve : 'org.rajawali3d.vuforia:rajawalivuforia:1.0.0-SNAPSHOT'

I understand that RajawaliVuforiaExamples -> RajawaliVuforia --> Rajawali

is gradle goes online to find the dependencies? could I add the jars and dependencies like before( things like in eclipse days)

Thanks!

ObjectPicker Support

Does vufaria implementation supports object picking?
I tried color picker it works when touch on objects. but when touching on spaces other than object it behaves as random object picked. Raypicker always gives a null object as picked.

How to Build the project in Android Studio?

Recently I moved to Android studio from Eclipse So am not good with it. Can some one please guide me on how to build Rajawali vuforia project on Android studio?
Here's what I tried till now,

  1. Cloned the project
  2. run gradle.bat with "clean assembleRelease uploadArchives" from command prompt.
  3. I get the following error
    ' FAILURE: Build failed with an exception.

What went wrong:
A problem occurred configuring project ':rajawalivuforia'.

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

  1. I checked the android sdk path in sdk.dir which is correct sdk.dir=C:\Users\Nilesh\AppData\Local\Android\sdk

I don't know what to do now. Shall I import the project directly in to Android studio as gradle project? but in that case it shows error gradle version is not supported

VuforiaRajawali Animations

Hi Dennis
Rajawai and it's integration with Vuforia has been heaven-sent! Thank you for your contribution.
I have an issue trying to animate models such as rotation, translate, color, etc when a marker or image has been found by the Vuforia AR engine.

I saw this stackoverflow thread:
http://stackoverflow.com/questions/17548861/rajawali-and-vuforia-3d-model-positioning

I tried following your suggestion by creating an empty object3d object. However, it appears that by adding my model as a child to it, it follows the same locking trap that is going on for each frame being rendered. Specifically it looks like it's trying to do the animation only that it's looping back over and over.

Do you have any simple script for the initScene and foundImageMarker methods so that I can do the simple animation to it's completion without interference? I hope this makes sense.

Thanks!

Dragging model upon ACTION_MOVE detection.

I have been attempting to drag the models. but this only works when the camera is looking down on the target and only in one orientation.
I tried to use the method in Rajawali/Rajawali#753
But it also only works for a certain view.
How do i know what the screen touch coordinates correspond to with respect to rajawali coordinates so i can set the position of my moved model.

placing multiple models on different positions on marker

hi, it seems to be very simple , but i am not able to achieve, i want multiple models to be placed on marker,
suppose four models at corner and one at center etc..

but when i try to tweak the setposition() after the setting of vector3 from vuforia, model position get disturbed and it moves randomly.
plz guide how to achieve this.

thanks in advance!

How to make a object orbit another?

What I'm trying to do is rotate a md5 model (with a playing animation) around the middle of my scene (really just above the middle of my scene where a have another object). This is my current code and it works just fine as long as you look from above, because as soon as I start to rotate the camera around the object starts rotating sideways (because z axis of the object is changing with the camera).

Animation3D anim = new RotateAnimation3D(Axis.Z, 360);
anim.setDuration(10000);
anim.setRepeatMode(RepeatMode.INFINITE);
anim.setTransformable3D(mDummy);
registerAnimation(anim);
anim.play();

So I guess you can say the code is working as intended but I don't know how to code so that the object rotates around the same point no matter the camera angle.

I know the animation system recently, 8-9april got a bit revamped and I still haven't started using the new codebase but if guys can help me with the old methods displayed here or the new ones I would really appriciate it!

Rajawali imported obj with mtl textures .. fade animation?

I imported an obj model with textures defined in an mtl file in Rajawali.
I would love to be able to do a fade animation much in the same way with ColorAnimation controlling the color and alpha channels.

Is there a way to do this with png texture imported models?
Is there any technique at all to fade a png textured model manipulating the alpha channels the same way with color? I was able to make some head-way manipulating the RGB values with setMaterialColor but it doesn't seem to accomplish anything with alpha.

OpenGL Error: invalid value 1281

When I run my app for the first time on any device, everything runs ok .. the app start and works perfectly, but if I exit my app and run it again I get this ERROR:

FATAL EXCEPTION: GLThread 15673
java.lang.RuntimeException: OpenGL Error: invalid value 1281
at rajawali.renderer.RajawaliRenderer.onDrawFrame(RajawaliRenderer.java:387)
at rajawali.vuforia.RajawaliVuforiaRenderer.onDrawFrame(RajawaliVuforiaRenderer.java:124)
at com.example.test3d.MyRenderer.onDrawFrame(MyRenderer.java:50)
at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1516)
at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1240)

this is my onDrawFrame function:

public void onDrawFrame(GL10 glUnused) {
super.onDrawFrame(glUnused);
}

Placing a SkeletalAnimationObject3D on a dummy Object3D

So, what I am trying appears to be simple. I want to add a SkeletalAnimationObject3D to an Object3D, so that i can change the angle and the position independent of the marker. The thing is, when I do that, only a part of the SkeletalAnimationObject3D appears.

Has anyone encountered this bug or knows how to avoid it?

No library found

05-08 15:50:52.753: I/dalvikvm(1523): at java.lang.Runtime.nativeLoad(Native Method)
05-08 15:50:52.753: I/dalvikvm(1523): at java.lang.Runtime.loadLibrary(Runtime.java:368)
05-08 15:50:52.753: I/dalvikvm(1523): at java.lang.System.loadLibrary(System.java:535)
05-08 15:50:52.753: I/dalvikvm(1523): at rajawali.vuforia.RajawaliVuforiaActivity.loadLibrary(RajawaliVuforiaActivity.java:441)
05-08 15:50:52.753: I/dalvikvm(1523): at rajawali.vuforia.RajawaliVuforiaActivity.(RajawaliVuforiaActivity.java:60)
05-08 15:50:52.753: I/dalvikvm(1523): at java.lang.Class.newInstanceImpl(Native Method)
05-08 15:50:52.753: I/dalvikvm(1523): at java.lang.Class.newInstance(Class.java:1319)
05-08 15:50:52.753: I/dalvikvm(1523): at android.app.Instrumentation.newActivity(Instrumentation.java:1068)
05-08 15:50:52.753: I/dalvikvm(1523): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2025)
05-08 15:50:52.753: I/dalvikvm(1523): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2135)
05-08 15:50:52.753: I/dalvikvm(1523): at android.app.ActivityThread.access$700(ActivityThread.java:140)
05-08 15:50:52.753: I/dalvikvm(1523): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1237)
05-08 15:50:52.753: I/dalvikvm(1523): at android.os.Handler.dispatchMessage(Handler.java:99)
05-08 15:50:52.753: I/dalvikvm(1523): at android.os.Looper.loop(Looper.java:137)
05-08 15:50:52.753: I/dalvikvm(1523): at android.app.ActivityThread.main(ActivityThread.java:4935)
05-08 15:50:52.753: I/dalvikvm(1523): at java.lang.reflect.Method.invokeNative(Native Method)
05-08 15:50:52.753: I/dalvikvm(1523): at java.lang.reflect.Method.invoke(Method.java:511)
05-08 15:50:52.753: I/dalvikvm(1523): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1038)
05-08 15:50:52.753: I/dalvikvm(1523): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:805)
05-08 15:50:52.753: I/dalvikvm(1523): at dalvik.system.NativeStart.main(Native Method)

Exceptions when trying to run VuforiaExample

Hi,
I finally found some time to get back to trying this. The former issue I had, with unexplained building errors, was fixed after I looked at alenko's case (#3), and changed the order of the build paths. So, now I get no errors in building - but when I run it, I get exceptions, the same ones as described by alenko, actually. Is there any other changes I should make, perhaps to the RajawaliVuforiaExample build path?

Thanks.

Rajawali + Cloud Reco

Hi,
Can you somebody please show how to integrate Rajawali with Cloud reco sample in Vuforia?

UserImageTarget

Hi,

I want to use UserImageTarget funtionality of vuforia with rajwali. Your integrate provides cloud recognition of predefined markers. Please Help me.

Thank You.

3d Model is not positioning properly

Hi,

I have followed the RajawaliVuforia tutorial and integrated the rajawali with vuforia CloudReco and i am able to get the 3D model but model is not aligned/positioned properly in target image center and also if i move camera close or up, the model is positioning out of the target image. Can you please let me know what could be the issue.

Thanks & Regards,
Prakash V

how to show a list of poi on my screen based on geolocation.

Hello everyone, I am new to the forum, I can through Vuforia, create a vision of a set of POIs, like the nokia city lens?

just an observation, do not want to be told how to do, just wish aber if it is possible to do this with Vuforia or whether it is better to seek another api, if possible can you give me a direction?

I apologize for my language, I'm Brazilian.

QCar not recognized

Hi,
QCar is not recognized by the IDE. I think some jar is missing. Can you please check it out?

Upgrade to Vuforia 3.0.9

Upgrade Vuforia from 2.8.8 to 3.0.9. Deliberately not upgrading to 4 because of watermarks and license changes.

show multiple models with image multiple targets?

I have two image targets and the corresponding models for the targets. But the renderer
only shows one or the other. How to display em both if both targets are recognised?

@OverRide
protected void foundImageMarker(String trackableName, Vector3 position,
Quaternion orientation) {

            if(trackableName.equals("SengirVampire"))
    {

        enemy[0].setVisible(true);
        enemy[0].setPosition(position.x,position.y,position.z);
        sLight1.setPosition(position.x,position.y-5,position.z+5);
        sLight1.setDirection(position);
        enemy[0].setOrientation(orientation);
    }

    if(trackableName.equals("SerraAngel"))
    {
        enemy[1].setVisible(true);
        enemy[1].setPosition(position);
        sLight2.setDirection(position);
        enemy[1].setOrientation(orientation);
    }

}

Getting Camera Object

Is there any possibility in getting the camera object, just to turn on the flashlight of the device?

Some code snippet would be nice,
of course i found some discussions about getting it via jni, but this failed due to no support in the vuforia SDK.

Is there a way that works nowadays?

Webview integration

I want the camera feed displayed with a transparent web view over it so that I can load content to the web view using JavaScript.

My aim is to replicate the exact behavior of Layar & Metaio did.

Error on initialization since last update

Hey there,
first of all I want to thank you for your work on rajawali and on this bridge with vuforia, which I was lately trying to protoype on.

Everything ran fine until I pulled the last changes to both the Rajawali and the RajawaliVuforia repos.
Now whenever I launch any of my RajawaliVuforia-dependant projects I get a crash on initialization, here is a snippet of the logs :

06-02 16:30:28.149: D/Rajawali(20345): Java_rajawali_vuforia_RajawaliVuforiaRenderer_updateRendering
06-02 16:30:28.149: D/Rajawali(20345): configureVideoBackground LANDSCAPE
06-02 16:30:28.149: D/Rajawali(20345): Correcting rendering background size to handle missmatch between screen and video aspect ratios.
06-02 16:30:28.149: D/Rajawali(20345): Configure Video Background : Video (800,448), Screen (1280,736), mSize (1314,736)
06-02 16:30:28.249: E/Rajawali(20345): Could not create framebuffer 2: [1282]: invalid operation
06-02 16:30:28.279: W/dalvikvm(20345): threadid=14: thread exiting with uncaught exception (group=0x40ce8930)
06-02 16:30:28.279: E/AndroidRuntime(20345): FATAL EXCEPTION: GLThread 663
06-02 16:30:28.279: E/AndroidRuntime(20345): java.lang.RuntimeException: Could not create framebuffer 2: [1282]: invalid operation
06-02 16:30:28.279: E/AndroidRuntime(20345): at rajawali.renderer.RenderTarget.checkGLError(RenderTarget.java:342)
06-02 16:30:28.279: E/AndroidRuntime(20345): at rajawali.renderer.RenderTarget.create(RenderTarget.java:278)
06-02 16:30:28.279: E/AndroidRuntime(20345): at rajawali.renderer.RajawaliRenderer.internalAddRenderTarget(RajawaliRenderer.java:942)
06-02 16:30:28.279: E/AndroidRuntime(20345): at rajawali.renderer.RajawaliRenderer.handleAddTask(RajawaliRenderer.java:736)
06-02 16:30:28.279: E/AndroidRuntime(20345): at rajawali.renderer.RajawaliRenderer.performFrameTasks(RajawaliRenderer.java:670)
06-02 16:30:28.279: E/AndroidRuntime(20345): at rajawali.renderer.RajawaliRenderer.onDrawFrame(RajawaliRenderer.java:352)
06-02 16:30:28.279: E/AndroidRuntime(20345): at rajawali.vuforia.RajawaliVuforiaRenderer.onDrawFrame(RajawaliVuforiaRenderer.java:124)
06-02 16:30:28.279: E/AndroidRuntime(20345): at com.onefit.archtest1.ARRenderer.onDrawFrame(ARRenderer.java:183)
06-02 16:30:28.279: E/AndroidRuntime(20345): at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1516)
06-02 16:30:28.279: E/AndroidRuntime(20345): at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1240)
06-02 16:30:28.299: D/Rajawali(20345): Java_rajawali_vuforia_RajawaliVuforiaActivity_stopCamera
06-02 16:30:28.689: D/dalvikvm(20345): GC_EXPLICIT freed 1665K, 15% free 17641K/20740K, paused 2ms+5ms, total 47ms
06-02 16:30:29.279: D/dalvikvm(20345): GC_EXPLICIT freed 7970K, 54% free 9684K/20740K, paused 2ms+7ms, total 64ms
06-02 16:30:29.279: D/Rajawali(20345): Java_rajawali_vuforia_RajawaliVuforiaRenderer_destroyTrackerData
06-02 16:30:29.289: D/Rajawali(20345): Java_rajawali_vuforia_RajawaliVuforiaActivity_deinitApplicationNative
06-02 16:30:29.289: D/Rajawali(20345): Java_rajawali_vuforia_RajawaliVuforiaActivity_deinitTracker
06-02 16:30:29.299: D/Rajawali(20345): Failed to deinit CloudReco as the ImageTracker was not initialized.
06-02 16:30:29.359: D/dalvikvm(20345): GC_EXPLICIT freed 12K, 54% free 9683K/20740K, paused 4ms+3ms, total 56ms
06-02 16:30:29.959: I/Process(20345): Sending signal. PID: 20345 SIG: 9

Seems like it crashes when the renderer tries to create a render target but I haven't found a workaround yet, if any of you guys have any hint i'll take it.

Thank you !

onDestroy error

When I call the "startVuforia()" in public void onCreate() I get this message

FATAL EXCEPTION: main
java.lang.RuntimeException: Unable to destroy activity {.MainActivity}: java.lang.NullPointerException
at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:3294)
at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:3312)
at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:3510)
at android.app.ActivityThread.access$700(ActivityThread.java:138)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1213)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:213)
at android.app.ActivityThread.main(ActivityThread.java:4787)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:809)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:576)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.NullPointerException
at rajawali.RajawaliActivity.onDestroy(RajawaliActivity.java:205)
at rajawali.vuforia.RajawaliVuforiaActivity.onDestroy(RajawaliVuforiaActivity.java:255)
at android.app.Activity.performDestroy(Activity.java:5172)
at android.app.Instrumentation.callActivityOnDestroy(Instrumentation.java:1109)
at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:3281)

If I run the example found in the master folder it runs perfectly !!! WHY ?

Rajawali imported obj with mtl textures .. fade animation?

I imported an obj model with textures defined in an mtl file in Rajawali.
I would love to be able to do a fade animation much in the same way with ColorAnimation controlling the color and alpha channels.

Is there a way to do this with png texture imported models?

object picking problem

i am trying t implement object picking in your vuforia project , i followed :
https://github.com/MasDennis/Rajawali/wiki/Tutorial-12-Object-Picking

but getting following error:

11-12 14:26:16.908: E/AndroidRuntime(21315): FATAL EXCEPTION: GLThread 6873
11-12 14:26:16.908: E/AndroidRuntime(21315): java.lang.NullPointerException
11-12 14:26:16.908: E/AndroidRuntime(21315): at rajawali.materials.textures.RenderTargetTexture.add(RenderTargetTexture.java:133)
11-12 14:26:16.908: E/AndroidRuntime(21315): at rajawali.materials.textures.TextureManager.taskAdd(TextureManager.java:116)
11-12 14:26:16.908: E/AndroidRuntime(21315): at rajawali.materials.textures.TextureManager.taskAdd(TextureManager.java:87)
11-12 14:26:16.908: E/AndroidRuntime(21315): at rajawali.util.ObjectColorPicker.initialize(ObjectColorPicker.java:52)
11-12 14:26:16.908: E/AndroidRuntime(21315): at rajawali.renderer.RajawaliRenderer.handleInitializeTask(RajawaliRenderer.java:989)
11-12 14:26:16.908: E/AndroidRuntime(21315): at rajawali.renderer.RajawaliRenderer.performFrameTasks(RajawaliRenderer.java:814)
11-12 14:26:16.908: E/AndroidRuntime(21315): at rajawali.renderer.RajawaliRenderer.onDrawFrame(RajawaliRenderer.java:474)
11-12 14:26:16.908: E/AndroidRuntime(21315): at rajawali.vuforia.RajawaliVuforiaRenderer.onDrawFrame(RajawaliVuforiaRenderer.java:124)
11-12 14:26:16.908: E/AndroidRuntime(21315): at com.example.rajawalivuforiaexample.RajawaliVuforiaExampleRenderer.onDrawFrame(RajawaliVuforiaExampleRenderer.java:210)
11-12 14:26:16.908: E/AndroidRuntime(21315): at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1523)
11-12 14:26:16.908: E/AndroidRuntime(21315): at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1240)

Get Camera Image / Camera Picture

Is there any way to access the camera image from within the java code?

For my project I have to analyze the image taken by the camera and I only found a workaround to make a preview view with 1x1px in the corner, but this isn't a great solution. And I would like to use the image taken by Rajawali then making another camera instance.

Thank you for your effort and I'm looking forward to your answer.

Android Studio compatibility?

I just wanted to try RajawaliVuforia, but I can't get it to work.
Apparently the dependency to Rajawali is based on their master branch rather than the 0.9 release? That's just asking for trouble...

From what I understand, Rajawali was recently switched to Android Studio, but RajawaliVuforia is still an eclipse project.
How can I use them together now?
Are you planning on porting it to studio soon too?

Segfault on vuforia finding a marker

I have the example running. The camera view looks fine until I scan the 001 vuforia marker and I get the following segfault. Has anyone seen this before? I can also bring this dump over to vuforia and see if they can help although this environment is probably not one they have much experience in.

08-20 15:20:09.952: I/DEBUG(20857): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
08-20 15:20:09.952: I/DEBUG(20857): Build fingerprint: 'samsung/SGH-T989/SGH-T989:4.0.4/IMM76D/UVLI4:user/release-keys'
08-20 15:20:09.952: I/DEBUG(20857): pid: 21027, tid: 21051 >>> com.example.rajawalivuforiaexample <<<
08-20 15:20:09.952: I/DEBUG(20857): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000004
08-20 15:20:09.952: I/DEBUG(20857): r0 415a9160 r1 00000000 r2 0077ec08 r3 00000001
08-20 15:20:09.952: I/DEBUG(20857): r4 415a6b38 r5 00000000 r6 007111a0 r7 5c597b8c
08-20 15:20:09.952: I/DEBUG(20857): r8 00000000 r9 b6100001 10 c0000005 fp 579a0cdc
08-20 15:20:09.952: I/DEBUG(20857): ip 00000b61 sp 5c597b48 lr 408b2067 pc 408cff48 cpsr 28000030
08-20 15:20:09.952: I/DEBUG(20857): d0 bf7d87d7be0cb2aa d1 00000000bc9295fb
08-20 15:20:09.952: I/DEBUG(20857): d2 c0d0835042491b1d d3 3f800000437baa38
08-20 15:20:09.952: I/DEBUG(20857): d4 0000000000000000 d5 0000000000000000
08-20 15:20:09.952: I/DEBUG(20857): d6 3f80000000000000 d7 3f8000003f800000
08-20 15:20:09.952: I/DEBUG(20857): d8 3feeb851eb851eb8 d9 3ff0000000000000
08-20 15:20:09.952: I/DEBUG(20857): d10 3feffffffffffffe d11 3ff0000000000000
08-20 15:20:09.952: I/DEBUG(20857): d12 3f9e766ba9a2e38a d13 3f47075600105606
08-20 15:20:09.952: I/DEBUG(20857): d14 3fe00952f3c61b08 d15 3fdfd02d7f6f39b1
08-20 15:20:09.952: I/DEBUG(20857): d16 008104b041c96908 d17 72656b72614d656d
08-20 15:20:09.952: I/DEBUG(20857): d18 3ff0000000000000 d19 0000000000000000
08-20 15:20:09.952: I/DEBUG(20857): d20 b92377ce858a5d48 d21 38e9f5135cb87c55
08-20 15:20:09.952: I/DEBUG(20857): d22 3e21ee9ebdb4b1c4 d23 bda8fae9be8838d4
08-20 15:20:09.952: I/DEBUG(20857): d24 0000000000000000 d25 0000000000000000
08-20 15:20:09.952: I/DEBUG(20857): d26 0000000000000000 d27 0000000000000000
08-20 15:20:09.952: I/DEBUG(20857): d28 3f12e56543e542a3 d29 3f145e0ea5beda2c
08-20 15:20:09.952: I/DEBUG(20857): d30 0000000000000000 d31 0000000000000000
08-20 15:20:09.952: I/DEBUG(20857): scr 68000011

Example App not finding frame markers

So I now have the example app running. I assume the the two markers being used, with ids of 1 and 2 correspond to the pngs located in the Vuforia SDK called:
frameMarker_000.png
frameMarker_001.png

I've enlarged these pngs and have given them a red background. I bring that up on my monitor, aim my phone at it and I am not seeing foundFrameMarker() being called. Any ideas?

How to load image marker from SD card?

Is there any possibility to load marker from SD card? Now I only see method createImageMarker, which require xml to be placed in assets folder. How can I make my app load targets from any location?

Rajawali+Vuforia sample in portrait mode

hi ,
could you please suggest the change to make your vuforiaRajawali sample to run in portrait mode , because when i changes the orientation of app the matrix seems to mismatch and 3d model(fighter plane) moves randomly when i move marker.

screenshot_2013-09-24-12-38-00

plz post a solution to run this Vuforia+Rajawali sample to run in portrait mode.
thanks in advance!!

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.