Skip to content

Demo Project to place/hang an image on a vertical plane using Unity ARFoundation (ARKit/ARCore)

Notifications You must be signed in to change notification settings

michaelhaessig/ARFoundation-Image-On-Plane

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ARFoundation-Image-On-Plane

Demo Project to place/hang an image on a vertical plane using Unity ARFoundation (ARKit/ARCore)

Features

Image Selection

Pixabay public API is used to search for an image to place on a wall.

Vertical Plane Detection

After an image is selected, the AR Scene opens and starts searching for vertical planes. Once a plane is found, the image gets automatically placed on the plane. The center of the screen is used to control the position on the plane.

Touch

The position of the placed image can be modified using touch gestures.

Fixed Image

Once satisfied with the current position, a tap on the image fixes it in place.

Setup

requirements:

  • Unity Editor 2018.3+

dependencies:

Development

To test the plane detection you need a device with ARKit or ARCore support.

The project can also be run in the Editor, the ARPlaceImageScene contains a disabled GameObject "WallDev". This GameObject simulates a Wall, very useful to test some changes without having to deploy on a mobile device.

Check out the video i have made to demonstrate the dev workflow.

Improvements

I built this code as an evaluation to find out what is currently possible with the ARKit/ARCore frameworks plane detection algorithms.

If you see any abvious improvements i would love to here from you!

Assets

the project uses the following assets

About

Demo Project to place/hang an image on a vertical plane using Unity ARFoundation (ARKit/ARCore)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published