Hello,
I am working on a project that requires me to lay out a few buttons alongside a video. I realize that there is a Virtual Button Sample project, but those buttons only respond to augmented input (you have to actually put your hand/finger over them in the scene) and the button images are already printed on the Target Image. What is the best way to go about implementing a virtual button that is rendered with QCAR upon Target Image recognition that will respond to touch events?
I noticed through evaluation of the Video Playback Sample code that in VideoPlaybackRenderer.java::Matrix44F modelViewMatrix[] is used to check if a received touch is inside the Target Image being tracked. Is it possible to use a matrix array to track rendered objects such as my desired button?
I am in a bit of a time crunch for this one so any input is appreciated. Thanks in advance for any help!
Creating Virtual Buttons that Respond to Touch Events
Check out the Dominoes sample - https://developer.vuforia.com/resources/sample-apps
That shows how to capture touches on rendered objects.
Creating Virtual Buttons that Respond to Touch Events
Is there a reason the Dominoes sample for Android uses the NDK? Does it provide some performance advantages or is the same thing able to be done completely in Java?
Creating Virtual Buttons that Respond to Touch Events
You should be able to do the same from Java using our Java APIs - take a look at the VuforiaSamples-2-8-8 samples.