Understand AR viewer
An AR viewer is actually a widget that acts as an interface for your device's camera. This interface is used to invoke the camera to scan a marker for your marker-based AR sets. You can then customize the output and view it in full-screen on your Creator app's page.
The input for your AR viewer can be either of the following types:
- Marker-based AR sets: This AR-type relies on the identification of markers or user-defined images to activate an augmentation. Markers are distinct patterns that your device cameras can easily recognize and process. Marker-based AR works by scanning a marker that triggers an augmented experience (whether an object, text, video, or animation) to appear on the device. Markers can be scanning codes or physical objects that exist in the real world. For example, students can scan QR codes in their textbooks and view animated concepts on their devices.
- Parameters: Parameters are named values that are appended to your page URL as a query string. Page parameters are used to pass values to pages, similar to how we pass arguments to functions. They can pass data across the pages of applications in your Creator account. Learn more
Example
- With AR, classroom education can be intuitive and interactive, as it enables teaching staff to show virtual examples of textbook concepts. This in turn will enable students to engage actively, learn faster, and memorize information easily. Imagine you've created a learning app for your school named Learn with AR. In the Microservices section, under the AR library, you can create an AR set titled 3D diagrams and add 3D models of textbook images along with their markers. Now, you can create a page titled E-Book and add an AR viewer in it. You can select the 3D diagrams AR set as the AR Viewer's input. When your students access the E-Book page in live, they can click the diagrams and view them in AR mode — rotate, zoom in and zoom out and view in full-screen as well. When you access your Creator app via mobile, apart from viewing the diagrams in AR Viewer (similar to web), students can also open their device scanner, scan their textbook images and view them as plotted (popup) models on top of their textbook. In this method, students can select to view the images in two modes:
- AR mode: Here, the image can be rotated only horizontally, but users can rotate/move their device to view the scanned image.
- Object mode: This mode allows you to view the scanned image in a 360-degree rotation. You can also zoom in and zoom out.