- Sort Posts
- 4 replies
- Last post
multiple object with different position
multiple object with different position
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
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):
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).