AR(Instant Placement) — A TCW project Case Study — TheCodeWork
Welcome to the final segment of our chain of case studies on Augmented Reality (AR). You have been following the series, right? Well, worry not, if you didn’t. Here is a list of the other two-segmented included in the Augmented Reality Case study. Have a look:
Okay, so let’s talk about this final part of the series, shall we? This is about Instant placement.
Instant Placement in augmented reality technology, basically overlays digital content onto the real world. That too without the use of any marker or external indication. How cool is that?
However, why is it so relevant now? How can it be useful? We will disclose every detail in this blog, so do stay tuned.
The Instant Placement API enables the users to place digital or AR objects on any surface instantly. They can do this without moving the device in order to permit ARCore to build a full tracking or identify surface geometry.
Once the user places an object, its posture is identified in real-time with the movement of the user in the surroundings. When ARCore identifies the correct posture in the area, it renews the object’s posture as well as its tracking method.
This app renders an instant 3d model overlapping with camera capture using Augmented reality.
Instant Target is a characteristic of AR Instant Tracking technology that allows the end-users to save as well as load AR sessions.
You must be thinking, what are AR sessions, right? Well, AR sessions include relevant digital notes, visual augmentations, management, directions — and the entire AR experience altogether. This can be obtained and experienced by various users across various operating systems (Android, iOS, and UWP) and devices through diverse timelines.
Don’t you see where this is leading to? This entire thing makes revisiting and the AR experience simple and worthy. Isn’t that desirable?
Instant Placement also permits users to edit, load, as well as resave their AR experiences on the fly. How cool is that?
The use and application of AR’s Instant placement include the following industries, namely:
You can get a detailed review of the target industries in this video on our YouTube Channel at TheCodeWork: AR for business.
There are some following steps
- API level has to be around Api 24 -Android 7 or higher. Android Studio version Should be 3.1 for Augmented Reality Apps. It can be more than this version too, but 3.1 is optimum.
- In build.gradle of App, you have to add sceneform UX library in addition to Sceneform Assets library.
- Select the Compile Option which supports Java for the Sceneform library.
- In the Android Manifets.xml file, you have to allow permission for AR features in the application. For example, Internet permission, Camera permission.
- You also have to add the metadata to make the app available at “Google Play Services for AR”.
- Add the bits as directed by Sceneform ux library.
- Install the beta version of the Google sceneform accessories plugin. This must be done via the Android studio only.
- There is one setting icon on the left side of the screen when we select the instant placement option and then enable it then you will see an instant 3d model object on the screen.
- In this project, we have used various classes to show instant placement.
- Be sure to note down the code in the MainActivity as well.
- Run the App.
We have used the Sceneform, a 3D framework library to build ARCore apps easily, without the use of OpenGL. We are using 1.15.0 version of google.ar.sceneform.ux:sceneform-ux.
You will require the following in-app permissions to use this application. These are camera permission, hardware.camera.ar permission, and last but not the least, Internet permission.
You will see the 3d model on the plain surface, like this one here:
Thankfully, we didn’t face too many difficulties in this project. However, there was a problem while installing the Google senceform (beta) plugin.
However, to overcome this obstacle, we tried installing various versions of Android API to support the Google senceform (beta) plugin.
Our future plans for this project are to control the movement of the 3D model with touchless hand gestures just by moving the fingers or hand without touching the screen.
Wish us luck, will you?
Thank you for reading till the end and staying with me all through. Augmented Reality is growing at a rapid phase and it’s difficult to stay away from its various applications.
This has been a highly motivated project by the Android Development Team at TheCodeWork. We will be working more towards the AR tech from here on as we already mentioned.
In addition to this, if you are someone who needs a tech team for your business or an entrepreneur who is stuck in the idea phase, do reach out to us at TheCodeWork.
We are here for you!