Log in or register to post comments

multiple object with different position

July 4, 2013 - 3:34am #1

Dear Al and all members,

I'm trying to load more than 1 object in 1 Image tracker, and each object is in different position.

ex : 1 teapot object, and 3 object with jpeg / png file

thanks,

 

regard

multiple object with different position

September 30, 2013 - 3:47am #5

this is just about basic OpenGL programming; it's not a problem of Vuforia, just requires some OpenGL coding;

the only hint I can give here is to make sure that the glBindTexture() uses a different texture for each 3D model

(see the code in renderFrame() function, where the glBindTexture() line is used).

 

 

multiple object with different position

September 29, 2013 - 9:56pm #4

Dear Al,

is there any clue for my problem ??

 

thanks

multiple object with different position

September 29, 2013 - 8:15am #3

dear admin and members

perhaps there is a little missunderstanding here, i got how to show multy simoultanous target, which is 1 target with 1 object.

my issue is how to show more then 2 object (2D and 3D) on 1 marker.

when i try to combine teapot.h with my object folowing this instruction :

https://developer.vuforia.com/forum/faq/android-how-do-i-replace-teapot

teapot and my object was blends together just like teapot using 2nd object as it texture..

please help me on this..

 

thanks

multiple object with different position

July 4, 2013 - 4:11am #2

Hi, the ImageTargets sample already shows how to achieve that, by associating teapots 3D models with different colors to different targets (e.g. a blue teapot for "stones" target, a yellow teapot for the "chips" target, etc...).

You can definitely start from the code in that sample (see in particular the renderFrame() function in the ImagTargets.cpp file).

Also, if you want to track and display the augmentation for more than 1 target simultaneously (i.e. see multiple augmentations on multiple targets when they are simultaneously located within the camera field if view), you can achieve that by  setting the , like in this code (which you can find again in ImageTargets.cpp):

 

JNIEXPORT void JNICALL
Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargets_onQCARInitializedNative(JNIEnv *, jobject)
{
    // Register the update callback where we handle the data set swap:
    QCAR::registerCallback(&updateCallback);
 
    QCAR::setHint(QCAR::HINT_MAX_SIMULTANEOUS_IMAGE_TARGETS, 3);
}
 
 
Log in or register to post comments