You can pretest the mobile app by scanning the below QR code on your smartphone after installing Expo. Because AWS lambda functions have a 30 seconds timeout due to the API Gateway they rely on, I decided to break down the server app into two separate server apps (in other words two separate AWS lambda functions). AWS Lambda lets you run code without provisioning or managing servers, making it the perfect infrastructure to run the backend server app. For that task, I chose Amazon AWS Lambda Functions. Mobile phones can lose connectivity to the internet quite easily, it is therefore of interest to move all the network related tasks to a server infrastructure where we know the network will be reliable.
A second challenge was how to port all the network related activities off the mobile app to a backend server app. We want our phone to remember our login info, and not bother us again (until we uninstall or sign-out).
The biggest challenge here, is 'Authentication on mobile'. To interface with the camera roll ? of the smart phone, I reused code from this repository. The current Expo documentation can be accessed here.
Expo is a set of CLI tools, libraries and services which let you quickly build native iOS and Android apps by writing JavaScript. To help building a mobile app that will work in both Android and iOS environments, I chose to use the Expo client. I’ve been interested in React Native for a while, and have been wanting to use it to build a mobile app that uses the Forge Reality Capture API. The GitHub repository can be accessed here. Part 3 will focus on creating another AWS lambda function that will be responsible for translating the OBJ output file to SVF format that the Forge Viewer can open.
Part 2 will focus on creating a Reality Capture backend app running from an AWS lambda function that creates a photoscene, upload images to it and process the photoscene. Part 1 of this three part demo app series, covers "getting started", "building a mobile UI", and "connecting to Forge Login" With the mobile version of Forge Viewer, you can view the resulting Reality Capture OBJ file - think of it as a 3D mesh model of a photoscene that you have captured through pictures taken from your smartphone. In this repository, we will walk through 'building a basic React Native app' that can handle Forge login so you can process image files on your smartphone through the Forge Reality Capture API and open the resulting viewable in the Forge Viewer.
Uses Viewer to show resulting 3D mesh model and textures. Uses Reality Capture to convert camera pictures into a 3D mesh model in OBJ file format. Demonstrate how to build a mobile app using Forge Reality Capture API.