Log in or register to post comments

3D interaction

June 28, 2013 - 10:07am #1

Hi all, and dear moderator,

i have an issue with AR android interaction, 

the case is : i want to make interaction from 3D object by tapping it so 2D object and the 3 buttons came up automaticly after tapping it .

could you please help me..

regards,,

 

me

3D interaction

July 3, 2013 - 1:43am #6

Hi, you can take a look at the method called isTapOnScreenInsideTarget, which is used in VideoPlayback.java and defined in native code in VideoPlayback.cpp

 

3D interaction

June 28, 2013 - 11:49pm #5

i fixed the problem, that was from my device, and i set to OPENGLES 1.0, and it's look OK

but could you spesify which part of videoplayback.cpp and .java should i add into my image target

thanks,

 

regards

3D interaction

June 28, 2013 - 11:40pm #4

Make sure to ndk-build and refresh the eclipse project.

3D interaction

June 28, 2013 - 9:40pm #3

hi Al,

thanks to pointed that solution, but please could you more spesific in which part.

because, i try the videoplaybak i got error (unexpectely error)

here is the log

06-29 11:36:33.639: E/QCAR(17724): The library libQCAR.so could not be loaded
06-29 11:36:33.649: E/QCAR(17724): The library libVideoPlayback.so could not be loaded
06-29 11:36:33.679: D/QCAR(17724): VideoPlayback::onCreate
06-29 11:36:36.209: W/dalvikvm(17724): No implementation found for native Lcom/qualcomm/QCARSamples/VideoPlayback/VideoPlayback;.setActivityPortraitMode (Z)V
06-29 11:36:36.209: D/AndroidRuntime(17724): Shutting down VM
06-29 11:36:36.209: W/dalvikvm(17724): threadid=1: thread exiting with uncaught exception (group=0x40018578)
06-29 11:36:36.219: E/AndroidRuntime(17724): FATAL EXCEPTION: main
06-29 11:36:36.219: E/AndroidRuntime(17724): java.lang.UnsatisfiedLinkError: setActivityPortraitMode
06-29 11:36:36.219: E/AndroidRuntime(17724): 	at com.qualcomm.QCARSamples.VideoPlayback.VideoPlayback.setActivityPortraitMode(Native Method)
06-29 11:36:36.219: E/AndroidRuntime(17724): 	at com.qualcomm.QCARSamples.VideoPlayback.VideoPlayback.initApplication(VideoPlayback.java:1027)
06-29 11:36:36.219: E/AndroidRuntime(17724): 	at com.qualcomm.QCARSamples.VideoPlayback.VideoPlayback.updateApplicationStatus(VideoPlayback.java:740)
06-29 11:36:36.219: E/AndroidRuntime(17724): 	at com.qualcomm.QCARSamples.VideoPlayback.VideoPlayback.onCreate(VideoPlayback.java:349)
06-29 11:36:36.219: E/AndroidRuntime(17724): 	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
06-29 11:36:36.219: E/AndroidRuntime(17724): 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1615)
06-29 11:36:36.219: E/AndroidRuntime(17724): 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1667)
06-29 11:36:36.219: E/AndroidRuntime(17724): 	at android.app.ActivityThread.access$1500(ActivityThread.java:117)
06-29 11:36:36.219: E/AndroidRuntime(17724): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:935)
06-29 11:36:36.219: E/AndroidRuntime(17724): 	at android.os.Handler.dispatchMessage(Handler.java:99)
06-29 11:36:36.219: E/AndroidRuntime(17724): 	at android.os.Looper.loop(Looper.java:130)
06-29 11:36:36.219: E/AndroidRuntime(17724): 	at android.app.ActivityThread.main(ActivityThread.java:3687)
06-29 11:36:36.219: E/AndroidRuntime(17724): 	at java.lang.reflect.Method.invokeNative(Native Method)
06-29 11:36:36.219: E/AndroidRuntime(17724): 	at java.lang.reflect.Method.invoke(Method.java:507)
06-29 11:36:36.219: E/AndroidRuntime(17724): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867)
06-29 11:36:36.219: E/AndroidRuntime(17724): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:625)
06-29 11:36:36.219: E/AndroidRuntime(17724): 	at dalvik.system.NativeStart.main(Native Method)

 

thanks,

regards,

me

3D interaction

June 28, 2013 - 11:12am #2

Hi, you could have a look at the VideoPlayback sample, which contains code showing how to tap on a 3D object and perform some custom actions in response to the tap event. 

Relevant code is in VideoPlayback.java and VideoPlayback.cpp.

 

Log in or register to post comments