Wednesday, 10 February 2021

How to make augmented reality applications using processing for Android.

 How to make augmented reality applications using processing for Android.


Arcore.

Google offers a framework for creating augmented reality (AR) applications for Android, called Arcore. AR-based telephone experiences usually involve drawing digital 3D content on the physical world, as seen from the perspective of mobile phones, in such a way that the digital content convincingly seems to be part of the real-world environment. Doing this requires applying the complex algorithm in real-time to recognize objects in the physical environment, such as walls, furniture pieces, even people, and determine the position (position and orientation) of the telephone relative to the world. Fortunately for us, Arcore handles all these calculations automatically and provides APIs to access real world features and attach digital content to them from our code. Although it is possible to access Arcore directly from processing, Android mode includes the AR library which makes it easier to use Arcore in our processing sketch and apply the processing image to create AR content.


Hidden world


AR is a rapidly growing field, thanks to the framework such as Arcore on Android (and Arkit on iOS) and to the rapid rate of technical improvement. The integration of real-world environment with digital content opens up many new possibilities for telephone mediating experience in the physical world. AR experiments from Google and the ARKIT ARKIT Application list that is awesome for iOS is a good resource for finding projects that use AR creative.


Requirements

To ensure a good AR experience, Google passes the device to be supported by Arcore.  The device in the list must work with processing also to create AR projects.


Start

You must choose an AR option on the Android menu to ensure that your sketch is built as an AR application:

While in VR you can make enough a lot of 3D processing sketches to VR just by importing the VR library and using VR Renderer, using AR requires a few more steps. First of all, we need to add an attacker to our sketch and call the start function () to get AR tracking. Two other classes in the AR library are Arterrackble and Anchor, they represent the surface that can be traced in real-world spaces (such as tables or walls), and the point in the room that remains relative to the surface that can be traced given.

Objects that can be tracked in limited processing on the surface of the aircraft, although can be tracked on the underlying Arcore can represent other types of features in physical space, such as the cloud point. Each object can be tracked contains basic information about the physical entity that is represented, including the current size and status (whether being tracked, paused, or stopped). To draw a crossable plane, we first need to apply the transformation that changes the coordinates of the processing world into a traceable system, in this way, it is easy to represent relative points for the trackable field that stretches X and the Z-axis regardless of the orientation in connection with the system Processing coordinates

No comments:

Post a Comment