I want to develop an augmented reality application for android that is capable of using markers to generate 3D objects and these 3D objects are interactive upon touch using the mobile's touch input.
I have browsed through the available SDKs like Vuforia , Junaio or Layar Player and found that they all support:
- Marker detection with 3D virtual image overlay
- Virtual buttons that get active when you make them invisible. (Vuforia)
- Interactive video playback.
However, what I am looking for is:
- Virtual object in AR that can be made interactive using mobile's touch.
I am pretty sure it is possible, as there are virtual video overlays that upon clicking/tap would start a video (similar to an interactive virtual element).
Q. Could someone suggest a library/toolkit best suited for this functionality that I'm looking for?
or
Q. Is there something that I apparently missed during my search with the aforementioned toolkits that already support the functionality I want?
Well, this is for Unity 5.x
First, go through Vuforia's Documentation to know more about Image Targets and AR Camera.
Import your 3D models to the scene so that all interactive objects are a child of the image target.
Read touch on mobile phone (I used android for my project)
Convert touch point into a ray from the screen into the 3D world
Create a plane in the scene (for the ray to hit)
If, the ray hits the plane, get the x,y,z position. Value of pos will have the world position
Please modify the code according to your need. This is a very basic example.