I have been working on AR apps since Y2021. This repo is for sorting out AR building blocks that I have developed in those AR apps.
Requirements:
- Unity
- ARFoundation and ARKit/ARCore
Note: this building block requires iPhone/iPad equipped with LiDAR.
EDM (Electronic Distance Measurement) in the surveying terminology is useful for AR applications as well.
Last year I saw this AR device "SiteVision" at a trade show in Tokyo. The device is also equipped with Lazer-based EDM.
iPad Pro and iPhone 12 Pro are equipped with LiDAR. I have found that EDM based on the LiDAR is very useful when I am placing an AR anchor on a wall.
=> code
Most of smartphone models in the market are not equipped with LiDAR. We use point cloud for distance measurement instead of LiDAR.
=> code
This app is just to visualize the origin on the world coordinates.
=> code
This app uses ARCameraBackground for recognizing a QR code with ZXing library.
=> code
This is to explane how IFC-format BIM can be rendered in my original AR app.
I downloaded "FZK Haus" and "Azuma House" from the following BIM archive: http://openifcmodel.cs.auckland.ac.nz
Then I modified the original BIM with Blender (with BlenderBIM add-on) for my AR app:
- modified some parts to make them look better
- added CC0Texture to some faces
- added a piano chair
- etc
=> code
This is a typical AR app, but it uses the EDM feature above for placing an object at a specific location.
=> code
This app supports multiple AR markers.
=> code
This app is to display 240-degree 16K panorama pictures taken with iPhone SE Camera App. iPad mini is the best device to enjoy the high-resolution panorama pictures with this AR/VR app. Just save you panorama pictures in the folder "Resources/Panorama" and make the settings below before starting the app.
I created the following shader graph for displaying a panorama picture (Texture2D) on the 240-degree screen.
And the screenshots of this AR app on my iPad mini.
=> code
Note: I have disabled the "Auto Focus" option in Camera Manager to stabilize the screen.
This Python3 script is to convert a PDF document into a transparent PNG image for AR applications:
$ PDF_converter_for_AR.py -i floorplan_sample.pdf