"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team

Getting touch event On 3D model

I need to display more than one 3d objects on ImageTarget sample ,and needs to get touch on object event .

can anyone give me the right solution .......

thanks in advanceĀ 

hi abhisekkatare,

You can use the following code as an example, which places a second teapot translated by a few units, on top of the same image target:

// second teapot

abhishekkatare

Tue, 07/24/2012 - 06:19

Thanks a lots...

now i can add more than one 3d models...

but my requirement is to get touch events ...from screen .....

when user touches screen how can i determine if he/she trying to touch which model ...?

I do not need to let him touch ,like in dominos example....

Hi abhishekkatare,

Ok let's break this down, but bear in mind the two are related:

To get touch events from the screen, your view/class must handle events / implement methods for 

abhishekkatare

Fri, 07/27/2012 - 06:08

Hi, Nalins

thanks for your response ....

I tried to much than i found that . in dominos example we draws domino by getting touch coordinates(x,y). so we can further calculate the intersection 

of touch event point and domino for delete functionality .

 

It is not clear to me what you are trying to do.

However this code ends up with the modelViewProjection set up for an augmentation:

abhishekkatare

Wed, 08/08/2012 - 05:18

Hi NalinS,

I have tried to much ,but unable to get solution ....

can you please try to understand it further 

I have rendered more than 3 square  with texture that seems like buttons....

now user tries touch them through screen(not virtual buttons) 

No problem abhishekkatare.

Glad I could help.

If are able to share your solution and your learnings, then the rest of the community will be most grateful :)

N

abhishekkatare

Mon, 08/13/2012 - 12:20

Quick  trick :

you have to drop domino at position of your 3d object 

if you are useing more than one 3d object you should drop domino at all 3d object position

RoyTheRoy

Sat, 02/01/2014 - 13:11

Hello,

     As we know, Virtual buttons  does not support Cloud databases. So, my question is I am using cloudreco to load a 3d model. And dominoes is handling touches using virtual buttons. So, it is not useful for cloud recongnition.

 And dominoes is handling touches using virtual buttons

No it is not - look at the code.

 

You can follow a discussion of how someone applied touches to cloud reco image targets here:

https://developer.vuforia.com/forum/ios/3d-touch-error

sarathbabu

Wed, 12/21/2016 - 10:27

I need to display more than one 2d objects on ImageTarget sample ,and needs to get touch on object event .

The below solution is not working me. Please help me