Log in or register to post comments

add many object

May 14, 2013 - 11:44pm #1

hello :D

I'm newbie for android sdk vuforia, can you help me tell how to import many object to image target project?

I want to add many object to one marker

thanks :)

add many object

May 20, 2013 - 1:00am #7

thank you so much AlessandroB

add many object

May 15, 2013 - 5:36am #6

You need to act on this line of code:

SampleUtils::translatePoseMatrix( );

in there, you need to use different values for each different objects (either in X, Y or Z direction)

 

add many object

May 15, 2013 - 4:53am #5

It work :)

but  I can't translate the second model, the second model position same as the first model position,

how to translate the second model?

thanks

add many object

May 15, 2013 - 1:43am #4

So, the first thing I would recommend is to read this article:

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

This explains how (in general) you can replace the sample 3D model (teapot) with your own custom model.

Then, once you understand that, you should be able to add more than 1 model just by creating several header files (a .h file for each model) and duplicate the OpenGL code so to render each model; 

the relevant code is in ImageTargets.cpp, in particular in the renderFrame() function.

 

add many object

May 15, 2013 - 12:29am #3

yes, that I mean, how to do that?

add many object

May 14, 2013 - 11:50pm #2

Hi, I guess you mean many "3D models" to be rendered on top of the same marker.. do I understand right ?

 

Log in or register to post comments