ABC of Augmented Reality 3D Data Visualization (Reality Composer + AR QuickLook)
In this tutorial, we are going to visualize 3D data with an augmented reality experience, by integrating reality composer files with ARQuick Look. The ABC of visualizing is a three-step approach Add, Build, and Create to visualize data in Augmented Reality.
Insight into data provides a sense-making business decision based on understanding customer behavior. It is indisputably resourceful for understanding the world and making better decisions. A well-designed and accessible data visualization can clearly communicate complex data and turn it into understanding and knowledge.
AR Quick Look is an API that enables users to place virtual content on any surface that ARKit finds in a real-world environment while providing interactions through a touch gesture to move and scale objects.
Reality Composer is a tool that let anyone quickly prototype and build AR scenes ready to integrate into apps or experience with ARQuickLook. It is an easy-to-use with build in AR library, animations, and interactions to enrich 3D content. We can use custom 3D objects or select from the available library
Next, we are going to see the steps to create a simple 3D Chart that can be rendered in our reality, by using ABC steps.
Add: add scenes and assets like the 3D bar chart with custom animation. our components or the contents of our scene by adding custom assets or available assets from the reality composer content library.
Build: The next step is to build our experience by changing default parameters based on desired experience. This includes adding behavior (triggers and actions). Behavior is composed of two items, the triggers, and the action sequences. Triggers, as the name suggests, are simply the criteria for the action sequence to begin, an example of a trigger is a tap that can initiate a move, rotate, or scale action sequence. Finally, we can export them to Xcode (ide for development) after building the behavior or our desired experience.
Create The last and final step is to create the experience in Xcode by using a few lines of code.
The code above uses the QLPreviewController is a specialized view controller for previewing an item, to use a preview controller, you must provide a data source object. The data source provides preview items to the controller and tells it how many items to include in a preview navigation list. The data source for a preview controller must adopt this protocol to provide preview items to the controller using QLPreviewControllerDataSource.
Next is to build and run. Then voila our 📊 is ready
Reference