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:
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:
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
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.
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
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);
Hi jinzw,
you posted the same question here:
https://developer.vuforia.com/forum/qcar-api/sample-project
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
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.
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
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]);
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
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
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.
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
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
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.
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:
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
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.
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.
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