Log in or register to post comments

How to get a tap event on the 3D model.

October 31, 2013 - 7:33am #1

Hi everyone, I have followed https://developer.vuforia.com/forum/android/how-get-tap-event-3d-model#comment-2004800 and get some error message in cyg

Also, i have replaced getNumActiveTrackables() with getNumTrackableResults() and also replaced getActiveTrackable( tIdx) with getTrackableResult( tIdx ); 

 
getTrackableResult( tIdx ); 
Compile++ arm    : ImageTargets <= ImageTargets.cpp
jni/ImageTargets.cpp: In function 'void Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargetsRenderer_renderFrame(JNIEnv*, jobject)':
jni/ImageTargets.cpp:449:70: error: cannot convert 'const QCAR::TrackableResult*' to 'const QCAR::Trackable*' in initialization
jni/ImageTargets.cpp:455:62: error: 'const class QCAR::Trackable' has no member named 'getPose'
jni/ImageTargets.cpp:479:30: error: request for member 'getName' in 'trackable', which is of non-class type 'const QCAR::Trackable*'
jni/ImageTargets.cpp:483:35: error: request for member 'getName' in 'trackable', which is of non-class type 'const QCAR::Trackable*'
jni/ImageTargets.cpp: In function 'void Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargets_startCamera(JNIEnv*, jobject)':
jni/ImageTargets.cpp:746:40: error: 'getInstance' is not a member of 'QCAR::Tracker'
jni/ImageTargets.cpp:748:49: error: 'const class QCAR::Tracker' has no member named 'getCameraCalibration'
/cygdrive/c/adt-bundle-windows-x86_64/android-ndk-r9-windows-x86_64/android-ndk-r9/build/core/build-binary.mk:348: recipe for target 'obj/local/armeabi/objs-debug/ImageTargets/ImageTargets.o' failed
make: *** [obj/local/armeabi/objs-debug/ImageTargets/ImageTargets.o] Error 1
 

How to get a tap event on the 3D model.

July 23, 2014 - 1:12am #3

hi popovvs86  i also would like to have that code

Thanks

How to get a tap event on the 3D model.

November 5, 2013 - 3:53pm #2

It is difficult for me to understand the errors that go with someone else's code. Easier to do everything from start. If you need to make the action for object on tap touch, I can send an example with all the necessary scripts.

 

Log in or register to post comments