Web-based augmented reality can bring a digital product model into a customer’s physical surroundings using a mobile browser. For teams building online product experiences, the challenge is not only displaying the model: the 3D asset must be correctly scaled, suitable for the target device and available in the file format its browser supports. A 3D model conversion pipeline can automate one important part of that work, preparing uploaded models for an AR preview without requiring operators to manage a fleet of conversion servers.
What a browser-based AR preview requires
A web-based augmented reality experience starts with a 3D model. That asset might come from a supplier, be created from photographs, or be produced by a 3D artist. Whatever its origin, its scale and download size matter. The model should use meter units, with one unit in the file representing one meter. Keeping the asset compact can also help limit download time; reducing polygon count in a 3D modeling application is one way to reduce file size.
Browser support introduces a format requirement. In the implementation described here, Safari on iOS uses USDZ for AR, while Chrome on Android uses glTF. The conversion workflow begins with a single-file glTF binary, identified by the .glb extension, and creates a USDZ version for iOS. The example web page provides the platform-specific path to the AR experience.
How the 3D model conversion pipeline works
The architecture connects an Amazon S3 upload to an automated conversion task. A model is placed in a designated S3 folder, and an S3 event triggers an AWS Lambda function. Lambda starts a task running in a Docker container on AWS Fargate. The container reads the GLB file, converts it to USDZ and writes the result to a separate folder in the same S3 bucket.
This event-driven design means that file conversion begins as a response to an upload. The workflow can process multiple files in parallel and does not require a team to provision or maintain conversion servers. The example uses a container because the 3D processing libraries have dependencies and can be large. The guide notes Lambda as another possible approach, while explaining that its authors selected Fargate containers for this implementation.
What each component does
- Amazon S3: Stores the source GLB file and the converted USDZ output in separate folders. It also holds the sample HTML page in the example deployment.
- AWS Lambda: Responds to the relevant S3 event and starts the conversion task, passing the configuration the task needs.
- AWS Fargate: Runs the conversion container without requiring the user to provision the underlying servers.
- Amazon CloudWatch: Receives task logs, providing a place to inspect the conversion process.
AWS CloudFormation is used in the example to create the required services and permissions. The resulting task uses an IAM execution role to access S3 and CloudWatch logs. Its CPU and memory settings are configured for the task; the guide says the minimum available resources are sufficient for simple models and that larger models may require adjusted values.
Preparing models and validating the workflow
Model preparation is an important part of the pipeline, not a step to leave entirely to the converter. The example uses a GLB file for a chair, resized so its units represent meters. Its model filename is also referenced by the sample HTML, illustrating why asset naming and application references need to remain aligned. For a broader catalog workflow, the upload could be incorporated into a digital asset management process or handled through a secure upload mechanism.
After deployment, validation follows the flow of the file through each service:
- Upload a GLB model to the bucket’s input folder.
- Confirm that the S3 event starts the Lambda function and that an Fargate task appears in the ECS cluster.
- Inspect the task’s CloudWatch log stream to review its output.
- Check for the converted USDZ file in the output folder.
- Open the sample HTML page to test the browser experience.
The sample page behaves differently depending on the viewing device. On a desktop or laptop browser, it displays a QR code that a user can scan with a mobile device. On a mobile browser, the page provides the action to launch the AR experience directly. In a production site, the same general approach can be integrated into an existing product detail page.
Operational considerations for teams
Automation reduces the need for manual file conversion, but it does not remove the need to manage asset quality and workflow configuration. Teams should check model scale, file size and naming conventions before upload, and confirm that task resources are suitable for the models being processed. Logs are useful when validating task execution, while separate input and output folders make the pipeline’s file movement easier to follow.
The guide’s cost table gives an example for its particular model and AWS configuration, rather than a universal price. It reports costs for S3 storage, Lambda and Fargate, and explains that charges are tied to the processing used. Actual costs depend on the deployed services and workload, so the historical example should not be treated as a current quote.
Conclusion
A reliable web-based augmented reality preview depends on coordinated model preparation, device-compatible formats and a dependable delivery workflow. An event-triggered pipeline using S3, Lambda and Fargate can automate GLB-to-USDZ conversion while avoiding the need to manage conversion servers. For technical teams, the practical priorities are to validate model scale and size, configure resources for the assets in use, monitor task logs and test the page on both desktop and mobile browsers.
Access Official Technical PDF