Topic locked

How to create onscreen clcikable buttons

May 2, 2013 - 1:58am #1

Hi,

I have an image target on which i want to play videos. After detecting image target, i want to show some clickable buttons on phone screen. When user selects a button, accordingly I want to play a video. I am havig different videos for different button click. I want to show clickable buttons on screen only after detecting image target. I went through videoplayback code and am clueless how to process. Please help me by giving some pointer to proceed.

Thank you,

Sushil

How to create onscreen clcikable buttons

April 8, 2016 - 12:01am #6

How to create onscreen clcikable buttons

April 6, 2016 - 3:18pm #5

this link does not work anymore...... where can i get the info that was in the link???

https://developer.vuforia.com/resources/dev-guide/open-web-site-and-display-toast-target-detection

 

How to create onscreen clcikable buttons

May 2, 2013 - 10:45pm #4

Hi,

the tutorial I was referring to is for Android only; if you are working with Unity, you can:

- implement an ITrackableEventHandler to receive an event when a target is detected; you can look at the DefaultTrackableEventHandler script which is in the sample, for inspiration

Rendering the button on the target is done in 3D in the VideoPlayback sample; using GUI.Button will only show a button in 2D (i.e. screen-aligned); s you can use that method if you want a 2D button overlaid on top of the AR view.

 

How to create onscreen clcikable buttons

May 2, 2013 - 9:45pm #3

Thank You very much AlessandroB. I will go through this code and will try to modify to solve my purpose. I just have one more query. If I have Unity tool, can I achieve this using GUI.Button class?

Thank You,

Sushil

How to create onscreen clcikable buttons

May 2, 2013 - 2:08am #2

Hi, I would suggest to read this article:

https://developer.vuforia.com/resources/dev-guide/open-web-site-and-display-toast-target-detection

This article explains how to perform some actions (such as showing some message in the UI) when a Target is detected.

You can re-use part of the logic there to actually trigger the visualization of the play button icons in the VP sample.

The relevant code for your case is in the renderFrame() function of the VideoPlayback.cpp file in the JNI folder.

 

Topic locked