Skip to content

Repository files navigation

LinkedIn


Logo

Live Album

This is a simple AR image tracking video player, based on AR Foundation, ARKit, utilizing Unity and C#.

Demo video can be seem here

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Roadmap
  5. Contributing
  6. License
  7. Contact

About The Project

animated

(back to top)

Built With

(back to top)

Getting Started

Download the project and open it with Unity version 2021.2.18f or latest. Below you can see some steps on how to create this project yourself.

Prerequisites

Unity version 2021.2.18f or latest; AR Foundation package; A photograph or any other image; A video source (can be a link).

Installation

1 - Open your project and inside the package manager, install the AR Foundation package:


install AR Foundation

2 - On Player Settings, check the plug-in providers (ARKit for IOS or ARCore for Android)

Plug-in Providers ARKit


3 - Setup the scene for AR:

Captura de Tela 2022-04-10 às 00 17 20 Captura de Tela 2022-04-10 às 00 17 30


4 - Create a ParentPrefab and inside it, a plane and a VideoPlayer object with a Video Player component;


5 - Use the image to be tracked as the plane's material;


6 - Create a 3D button inside the ParentPrefab, containing a Sphere with glass material and two text mesh pro elements for the play/pause symbols;

Captura de Tela 2022-04-10 às 00 36 50


7 - Create the animations for the Play/Pause functions and add the VideoAnimControl script to the ParentPrefab;


8 - Add the Ar Button Script to the Sphere object and set VideoPlayer as the Vp element;


9 - Create a canvas with a a button. Set ARSession.Reset to it (so you can restart the tracking session)


10 - Create a XRReferenceImageLibrary, referencing it to the image to be tracked. Add it as the Serialized Library, in the AR Tracked Image Manager (AR Session Origin).

XRReferenceImageLibrary

*Create a XRReferenceImageLibrary


Done!

(back to top)

Usage

To iterate the idea, you can create a multiple prefab / multiple tacked images version. Soon I will update the project with the possibility for the user to upload the media (images to be tracked and videos)

(back to top)

Roadmap

  • Play/Pause Button
  • Multiple images and videos
  • User friendly

(back to top)

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

(back to top)

License

Distributed under the MIT License. See LICENSE.txt for more information.

(back to top)

Contact

Reach out - Victor Cappa @imaginar
Linkedin

Share the project - Live Album

(back to top)

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages