Canāt wait for a sequel for Nicolas Cage And John Travoltaās Face/Off movie? Then create your own simple augmented reality (AR) face swapping demo application with Unity, AR Foundation, and echoAR! The full demo can also be found on echoARāsĀ GitHub.
Register
Donāt have an API key? Make sure to register for FREE atĀ echoAR.
Setup
- Create a new Unity project.
- Clone theĀ Unity-ARFoundation-echoARĀ sample code.
- Open the sample scene underĀ AR Foundation\Scenes\FaceTracking\FaceMesh.unity.
- Set the API keyĀ in theĀ echoAR.csĀ script inside theĀ echoAR\echoAR.prefabĀ using the Inspector.
- Add an image hologramĀ by uploading one of theĀ face-#.jpgĀ files from theĀ assetsĀ folder to the console.
- Overwrite the existingĀ echoAR/CustomBehaviour.csĀ script with the new CustomBehaviour.cs file.
Build & Run
Build and run the AR application. Verify that theĀ AR Foundation\Scenes\FaceTracking\FaceMeshĀ scene is ticked in theĀ Scenes in BuildĀ list and click Build And Run.
Learn More & Get Support
Refer to ourĀ documentationĀ to learn more about how to use Unity and echoAR. Feel free to reach out atĀ [email protected]Ā or join ourĀ support channel on Slack.
echoARĀ (http://www.echoAR.xyz; Techstars ā19) is a cloud platform for augmented reality (AR) and virtual reality (VR) that provides tools and server-side infrastructure to help developers & companies quickly build and deploy AR/VR apps and experiences.