An iOS app that displays images from your Photo Library on the wall in AR.
- Target: iPhone / iOS 16.0+, iPad / iPadOS 16.0+
- Build: macOS 13.1+, Xcode 14.2+
An iOS app in a separate project repo allows you to generate images using Stable Diffusion on your devices and save them to your Photo Library. Let's appreciate them in AR with this iOS app.
- GitHub repo of the iOS app - AR Diffusion Museum: https://github.com/ynagatomo/ARDiffMuseum
From this project you can see:
- ARKit: plane detection and displaying the planes
- RealityKit: dynamic image-texture replacement and using a custom material (Metal Shader)
- PhotoKit: PhotoPicker (new in iOS 16)
none
- selecting images from Photo Library
- detecting virtual or horizontal planes in AR
- displaying images in AR and automatic image switching based on viewing angle
- showing visual effects on the images in AR
- built-in sample images
This project provides a minimal UI. Feel free to extend it as you like and create your own app.
This project contains a vertex shader to play waving geometry animation in AR. It uses a custom material and geometry modifier of RealityKit 2.
- RealityKit: CustomMaterial https://developer.apple.com/documentation/realitykit/custommaterial
- RealityKit: GeometryModifier https://developer.apple.com/documentation/realitykit/custommaterial/geometrymodifier
Please create your shader and replace with it.
The app uses a simple Metal Shader to provide a visual effect. Please modify it as you like.
The app uses a simple picture frame. As this project contains the Blender file of the picture frame, you can modify it.
- modify or create your picture frame with Blender
- convert it to USDZ with Reality Converter
- replace or add it to the Project
- edit the
AppConstant.swift
to name it if needed
- Blender file:
assets/panel1_1.blend
- ImgGenSD2: https://github.com/ynagatomo/ImgGenSD2
- AR Diffusion Museum: https://github.com/ynagatomo/ARDiffMuseum
none