Log in or register to post comments

Tutorial: Step 3

April 22, 2013 - 9:55am #1

Hi,

I have problems with the tutorial. I understood the need to generate a. N for ImageTarget application. When I run ndk-build in the samples folder I get:

 

 
C:\Development\Android\vuforia-sdk-android-2-0-31\samples>cd ImageTargets-2-0-7
 
C:\Development\Android\vuforia-sdk-android-2-0-31\samples\ImageTargets-2-0-7>ndk
-build
make: C:\Development\Android\android-ndk-r8e\build/core/build-local.mk: No such
file or directory
make: *** No rule to make target `C:\Development\Android\android-ndk-r8e\build/c
ore/build-local.mk'.  Stop.
 
C:\Development\Android\vuforia-sdk-android-2-0-31\samples\ImageTargets-2-0-7>
 
I dont understand.
 
Thx.

Tutorial: Step 3

June 21, 2018 - 4:14am #51

the gme thanks

Tutorial: Step 3

January 20, 2014 - 2:45am #50

Hi sir,

I'm really sorry about my last question

I need your help sir

I've 2 objek and i want to show it in 1 imagetargets only

how can i do that?

But each objek have different marker.

Thank you sir

Tutorial: Step 3

January 7, 2014 - 10:30pm #49

Hi,

Thanks sir

I'm sorry for my question

Thank you

Tutorial: Step 3

January 6, 2014 - 10:35am #48

The button code will have to go into the Java code; but where to put it is really about what exactly you want to achieve with your Android layout; this is up to you, how you develop your app. 

Also, could you avoid posting these basic Android programming questions on this Forum ? thanks.

 

 

 

Tutorial: Step 3

January 6, 2014 - 10:29am #47

Hi,

Thanks sir

But where should i put that code, in imagetarget.cpp or imagetarget.java sir

if in imagetarget.java, where exacly i must put that code, i mean like in line 50, or line 30

Thank you sir

Tutorial: Step 3

January 2, 2014 - 3:26am #46

Tutorial: Step 3

January 1, 2014 - 9:01pm #45

Hi Sir.

How to make button in android sir?

Best regards,

Marco

Tutorial: Step 3

June 25, 2013 - 8:57am #44

Good luck with your thesis !

Tutorial: Step 3

June 25, 2013 - 7:15am #43

Ooh oke sir thank you very much sir

I use Natural Features Tracking in my thesis sir, but i'm still confuse about it

But i'll find out more about Natural Features Tracking sir

Thank you

Tutorial: Step 3

June 25, 2013 - 1:55am #42

Ok. But what is your question exactly?

do you want to know how the Natural Features Tracking algorithm works ?

The implementation of specific computer vision algorithms in Vuforia is not public, it is confidential, and we cannot describe them.

If you want to know how "Natural Features Tracking" works in general, this is also beyond the scope of this Forum.

 

Tutorial: Step 3

June 25, 2013 - 12:24am #41

Specially related to vuforia sir
Because i use vuforia in my case
Thank you sir

Tutorial: Step 3

June 25, 2013 - 12:23am #40

Specially related to vuforia sir
Because i use vuforia in my case
Thank you sir

Tutorial: Step 3

June 25, 2013 - 12:00am #39

Ok. So, this is general question about natural feature tracking algorithms, not specifically related to Vuforia, right ?

 

Tutorial: Step 3

June 24, 2013 - 10:42pm #38

Hi,

I mean is Natural Features Tracking used in program(like c++ or java) sir.

And what exacly the function of Natural Features tracking

Thank you sir

Tutorial: Step 3

June 24, 2013 - 8:13am #37

Hi.

What is your question about Natural Feature Tracking exactly ?

 

Tutorial: Step 3

June 24, 2013 - 8:03am #36

Hi sir, long time no see :)

I want to know about Natural Features Tracking sir

Can i call it a method or algorithm

Best Regards

 

Tutorial: Step 3

May 2, 2013 - 12:37am #35

Hi, 

the color is determined by the texture which is applied to each teapot depending on the specific target name;

if you look at the code in ImageTargets.cpp, you will find this code:

int textureIndex;
        if (strcmp(trackable.getName(), "chips") == 0)
        {
            textureIndex = 0;
        }
        else if (strcmp(trackable.getName(), "stones") == 0)
        {
            textureIndex = 1;
        }
        else
        {
            textureIndex = 2;
        }

        const Texture* const thisTexture = textures[textureIndex];

That code selects a specific texture, choosing among the 3 sample textures, which are located in the "/assets" directory under of the project dir:

  • TextureTeapotBlue.png (a texture with blue color)
  • TextureTeapotBrass.png (a texture with brass / yellow-ish color)
  • TextureTeapotRed.png (a texture with reddish color)

If you want to change the teapot color, you can replace those images with other images of your choice.

Note:

in the Java code, those images are loaded in the loadTextures(); method in ImageTargets.java

 

 

Tutorial: Step 3

May 2, 2013 - 12:11am #34

I mean to change the teapot color sir

My object is blue as default but when in chips marker it became yellow and in tarmac became red

Thank you sir

Tutorial: Step 3

May 2, 2013 - 12:00am #33

What do you mean with "chaning color of chips, stones and tarmac" ?

do you want to change the color of the teapots ? or something else.. ?

 

Tutorial: Step 3

May 1, 2013 - 9:29pm #32

Hi,

How about my second question sir ?

Its about how to change the color of chips,stones and tarmac

Thank you

Tutorial: Step 3

May 1, 2013 - 8:53am #31

Hi, concerning your first question, the model seems to be rendered in wireframe mode;

this is probably related to the way you exported it to OBJ from your editor (not sure if I can help much on this)

Concerning your second question:

if you look under the "/res" folder of your android project, you will find a set of directories called:

drawable-hdpi

drawable-ldpi

etc...

inside each of these folders you can find an image called blueprint_vuforia.png

that's the image that you can replace with other images.

 

 

 

 

 

Tutorial: Step 3

May 1, 2013 - 8:23am #30

Hi,

* Before i've asked about my own object, the cupboard. But my object it's not like the teapot(default), i mean the texture of cupboard not like a smooth object like the teapot. I make that object from 3d max and i export to .obj then i convert to .h . I dont know why my object like that.

should be like this :

         

but when i try, like this :

 

* Then, how can i change the color of chips,stones and tarmac ?

* When i run a project i'll get this logo in my devices :

Can i change it with the other picture sir ?

Forgive me if my question is too much sir

Thank you very much

Tutorial: Step 3

April 29, 2013 - 10:31am #29

Hi, Vuforia does not expose an API to set the threshold.

 

Tutorial: Step 3

April 29, 2013 - 9:40am #28

Hi,

Oh that's great

I still dont know what function of Cloud Recognation because i didn't testing yet. I mean Cloud Recognation used for.

Oh ya, how about the method sir ? Any method in vuforia which can i use ?

Like in ARToolkit, we can use threshold method

Thank you sir

 

Tutorial: Step 3

April 29, 2013 - 7:42am #27

Hi,

you are allowed to make commercial apps based on Vuforia; this is for free in general, although certain restrictions may apply to applications that use the Cloud Recognition feature.

Make sure to check the license agreement:

https://developer.vuforia.com/resources/dev-guide/legal-considerations-developer

and just in case you are also using (or plan to use) Cloud Recognition, please check this page too:

https://developer.vuforia.com/cloud-recognition-service

Concerning your question about adding a menu to change object, you can implement that, of course, but that's application specific, not about Vuforia, so I don't have specific advice about it.

Tutorial: Step 3

April 29, 2013 - 7:00am #26

Hi,

Its work sir, thank you very much

I've question again sir

I make AR for my essay and it needs like a method for completing this essay

In eclipse and vuforia which i'm doing now, any method can i use sir ?

Then, later if i've finished my own project with eclipse and vuforia, can i use it for commercial ? or I must pay ..

And can i make a menu in my device to change object in vuforia ? Like this : http://www.youtube.com/watch?v=33h6KCsKPys

Thank you very much sir 

Best Regards

Tutorial: Step 3

April 29, 2013 - 6:57am #25

Hi,

Its work sir, thank you very much

I've question again sir

I make AR for my essay and it needs like a method for completing this essay

In eclipse and vuforia which i'm doing now, any method can i use sir ?

Then, later if i've finished my own project with eclipse and vuforia, can i use it for commercial ? or I must pay ..

And can i make a menu in my device to change object in vuforia ? Like this : http://www.youtube.com/watch?v=33h6KCsKPys

Thank you very much sir 

Best Regards

Tutorial: Step 3

April 28, 2013 - 1:09pm #24

Hi, in order to rotate your 3D model, you can modify your code in renderFrame as follows:

        QCAR::Matrix44F modelViewProjection;

        SampleUtils::translatePoseMatrix(0.0f, 0.0f, kObjectScale,
                                         &modelViewMatrix.data[0]);

        float angle = 90.0f; // YOUR ROTATION ANGLE HERE (in degrees)
        SampleUtils::rotatePoseMatrix(angle, 1.0f, 0.0f, 0.0f,
                                     &modelViewMatrix.data[0]);

        SampleUtils::scalePoseMatrix(kObjectScale, kObjectScale, kObjectScale,
                                     &modelViewMatrix.data[0]);
        SampleUtils::multiplyMatrix(&projectionMatrix.data[0],
                                    &modelViewMatrix.data[0] ,
                                    &modelViewProjection.data[0]);

 

Tutorial: Step 3

April 27, 2013 - 4:23am #23

Hi,

I have problem again in imagetargets sir,

Before i've change the object with banana, and now i try to change it with my own cupboard object

Its work, but the position of this object is not correctly(top part of the cupboard located at "Y"). I want to rotate that , so the top part of cupboard will located at "Z".

Thank you sir

 

Tutorial: Step 3

April 26, 2013 - 12:02am #22

Sure, you can combine functionalities from different samples.

For instance, the following tutorial explains how to enable CloudReco features into ImageTargets sample:

https://developer.vuforia.com/forum/faq/android-how-integrate-cloudreco-imagetargets-sample

Note: with the exeption of the one above,  in general we don't have exact instructions or tutorials about how to combine different features.

 

Tutorial: Step 3

April 25, 2013 - 11:42pm #21

Can i combine that ?

I mean like combine Virtual Button and Cloud Recognition, or the other

Thank you

Tutorial: Step 3

April 25, 2013 - 12:42pm #20

You can use the animated object in any of the sample; this depends what feature of Vuforia you want to use (ImageTargets, FrameMarkers, ...)

 

Tutorial: Step 3

April 25, 2013 - 7:45am #19

Hi,

I've so many question about vuforia sir, hope you not bored with my question and thanks for your help

I've seen the sample apps in developer vuforia like imagetargets, frame markers, ext and i want to know if i have animation object where should i import that object, in imagetargets? or multi targets , or the other sample apps

Thanks you

Tutorial: Step 3

April 25, 2013 - 7:07am #18

Hi jinzw,

you posted the same question here:

https://developer.vuforia.com/forum/qcar-api/sample-project

 

 

Tutorial: Step 3

April 25, 2013 - 6:29am #17

 

Why I have set the QACR enviroment variable, but it still told me 

 

Unbound classpath variable: 'QCAR_SDK_ROOT/build/java/QCAR/QCAR.jar' in project 'ImageTargets'

Tutorial: Step 3

April 25, 2013 - 5:17am #16

you're welcome

Tutorial: Step 3

April 25, 2013 - 5:15am #15

Hi,

Oh finally ... Thank you very much sir

Thank you

Tutorial: Step 3

April 25, 2013 - 12:30am #14

Hi, in my tests, a good scale for the banana is around 100.0f;

also, don't forget to always rebuild with ndk-build and then refresh the project in Eclipse each time you make a change.

 

Tutorial: Step 3

April 25, 2013 - 12:08am #13

Hi,

It's work sir, but the size of banana so tiny

I've try to change the kObjectScale :

default is 3.f; and i try change to 50.f; but still tiny

I've try this too :

But nothing happened, still tiny

Thank you sir

Tutorial: Step 3

April 24, 2013 - 3:06am #12

Ok, so, you need to replace bananaVertices with bananaVerts (note: those arrays are defined in banana.h);

this is the correct code (so you can double-check):

 glVertexAttribPointer(vertexHandle, 3, GL_FLOAT, GL_FALSE, 0,
                              (const GLvoid*) &bananaVerts[0]);
        glVertexAttribPointer(normalHandle, 3, GL_FLOAT, GL_FALSE, 0,
                              (const GLvoid*) &bananaNormals[0]);
        glVertexAttribPointer(textureCoordHandle, 2, GL_FLOAT, GL_FALSE, 0,
                              (const GLvoid*) &bananaTexCoords[0]);

        
        glEnableVertexAttribArray(vertexHandle);
        glEnableVertexAttribArray(normalHandle);
        glEnableVertexAttribArray(textureCoordHandle);
        
        glActiveTexture(GL_TEXTURE0);
        glBindTexture(GL_TEXTURE_2D, thisTexture->mTextureID);
        glUniform1i(texSampler2DHandle, 0);
        glUniformMatrix4fv(mvpMatrixHandle, 1, GL_FALSE,
                           (GLfloat*)&modelViewProjection.data[0] );

        glDrawArrays(GL_TRIANGLES, 0, bananaNumVerts);

 

Tutorial: Step 3

April 24, 2013 - 2:39am #11

Hi,

I do sir

I just edit in ImageTargets.cpp

Thank you

Tutorial: Step 3

April 24, 2013 - 2:09am #10

Hi, have you included <banana.h> in ImageTargets.cpp ?

 

Tutorial: Step 3

April 24, 2013 - 2:06am #9

I do, and i got this :

Thank you very much for replay

 

AttachmentSize
Binary Data bytes

Tutorial: Step 3

April 24, 2013 - 1:51am #8

Have you rebuilt with ndk-build after changing the code ?

 

Tutorial: Step 3

April 24, 2013 - 1:44am #7

Hi,

I've follow this post : https://developer.vuforia.com/forum/ios/different-3d-model-not-shown to try change the object in Imagetargets

But when i run, it still teapot in marker

Just edit in ImageTargets.cpp

Thanks for replay

Tutorial: Step 3

April 23, 2013 - 9:01am #6

Hi, all steps are explained in detail; 

perhaps some of them are a bit more complicated to understand if, for example, you don't have too much familiarity with OpenGL programming (or other aspects);

my recommednation is to try to understand it, and if you need a bit more in depth knowldge on OpenGL, you can try learning a bit of OpenGL programming first.

 

Tutorial: Step 3

April 23, 2013 - 7:51am #5

Hi,

Thanks for replay

I've seen that tutorial and i've try but i still confuse

Could you explain to me gradually sir

I'm so sorry to trouble you

Thanks

Tutorial: Step 3

April 22, 2013 - 10:36pm #4

Tutorial: Step 3

April 22, 2013 - 8:58pm #3

Hi, Alessandro

I've finish the tutorial and i've try the samples(like imagetargets,dominoes,ext)

Now i want to change object in ImageTargets with my own object, but i dont know how to start to change that object

Where i must change the code, i dont know how to say

Really need help

 

Thanks

Tutorial: Step 3

April 22, 2013 - 1:27pm #2

Hi, 

have you verified that the NDK is correctly setup by running this :

 

cd /cygdrive/c/Development/Android/android-ndk-r8e/samples/san-angeles

ndk-build

 

Log in or register to post comments