2. SOMMAIRE
Présentation
Unity AR plugins Time line
ARKit et ARCore dans Unity
AR Foundation
Guide pour bien démarrer
Démo, Performance, Tips et Limitation
Alternative
Conclusion
Bibliographie
AR FOUNDATION- BARBARA SCHIAVI- UNITY3DLYON MEET UP 2
3. PRÉSENTATION
Barbara SCHIAVI https://barbara1603.wixsite.com/portfolio
Ingénieure informatique, spécialiste en Image, Interaction et RV
Auto-Entrepreneur : DIGITALITY REAL https://www.digitalityreal.com
Précédemment : AR/VR specialist chez Big Red Button Entertainment
Pourquoi Unity et Unity3D Lyon MeetUp ?
Lien très fort depuis DUT 2013 Unity v4.6
L.A. Unity MeetUp (2015-2018), Unity Vision Summit 2016, HoloHack
2017, Unity Hack Week 2018
AR FOUNDATION- BARBARA SCHIAVI- UNITY3DLYON MEET UP 3
4. UNITY AR PLUGINS TIME LINE
La Réalité Augmentée ?
~2014 : Vuforia (détection d’images)
2016 : Google Tango
2017 : ARCore / ARKit
2017 : ARInterface (projet Github)
ARFoundation depuis Unity 2018.1+
AR FOUNDATION- BARBARA SCHIAVI- UNITY3DLYON MEET UP 4
5. AR FOUNDATION- BARBARA SCHIAVI- UNITY3DLYON MEET UP 5
ARKIT ET ARCORE DANS UNITY
ARCore : à partir d’Android Nougat 7.0 et
Unity 2017.1
(Google Pixel, Pixel XL, Pixel2, Pixel2 XL,
Samsung S9, S9+, S8, S8+, Note 8, S7…)
ARKit : à partir de version iOS 11+ et
Unity 2017.1
(iPhone X, 8+, 8, 7+, 7, 6S+, 6S, SE, iPad
Pro)
Système d’Odométrie Visuelle et Inertielle (en. VIO)
6. AR FOUNDATION- BARBARA SCHIAVI- UNITY3DLYON MEET UP 6
ARKIT ET ARCORE DANS UNITY
ARKit
Environment Probes
(Probe réflexion sur les objets)*
Suivit de l’appareil dans l’espace en temps
réel (Position Tracking)
AR Camera Lighting
(Probe réflexion)
AR World Maps* Points d’intérêt (Feature points) Points d’intérêt orientée (Oriented Feature
point)
Scan et reconnaissance d’objets* Hit-Testing (Feature points / Raycast sur
surface de 2D à 3D)
Cloud Anchor
Face Tracking / Facial Blendshape (iPhone X) Identification des surfaces planes
horizontales ou verticales (sol, table, porte,
mur, etc)
Estimation des conditions d’éclairage
ambiant (Light Estimation)
AR Scaling
AR Anchor
Détection d’images/marqueurs 2D
*ARKit 2.0 (bêta-test)
7. AR FOUNDATION
AR FOUNDATION- BARBARA SCHIAVI- UNITY3DLYON MEET UP 7
A partir d’Unity 2018.1+ via Package Manager
AR Foundation permet d’utiliser ARCore et ARKit en supportant les fonctionnalités suivantes :
Suivit de l’appareil dans l’espace en temps réel (Position Tracking)
Détection surfaces planes horizontales ou verticales (sol, table, porte, mur, etc)
Estimation des conditions d’éclairage ambiant (Light Estimation)
Points d’intérêt (Feature points)
Hit-Testing (Feature points / Raycast sur surface)
AR Scaling
AR Anchor
Détection d’images/marqueurs 2D supporté par ARKit 2.0 et ARCore 1.3 dans ARFoundation pour fin 2018.
8. GUIDE POUR BIEN DÉMARRER
AR FOUNDATION- BARBARA SCHIAVI- UNITY3DLYON MEET UP 8
1. Installe Unity 2018.1+
2. Oublie pas de cocher Android Build Support ou iOS Build Support dans l’installateur.
3. Une fois le projet créé, dans Unity, installe AR Foundation, et ARCore XR Plugin ou ARKit XR Plugin via le
Package Manager (Dans Window > Package Manager > All).
4. Télécharge le projet GitHub arfoundation-samples et copie le contenue dans le dossier de ton projet.
5. Ouvre Project Settings, DECOCHE x86 dans Target Architectures et NE COCHE PAS ARCore Supported.
6. Switch Platform Android ou iOS dans Build Settings puis Build and Run la scène de ton choix des exemples du
projet GitHub.
7. Autres informations pour créer ta propre scène :
https://docs.unity3d.com/Packages/com.unity.xr.arfoundation@1.0/manual/index.html
9. DÉMO, PERFORMANCE, TIPS ET LIMITATION
AR FOUNDATION- BARBARA SCHIAVI- UNITY3DLYON MEET UP 9
Performance
Limitation
Tips
• Ralentie à cause de memory
management
• Baisser à cause du nombre
d’objets générés
• Anchors sont assez
gourmandes (Pensez à
detruire les anchors quand
vous bougez/supprimez vos
objets)
• Changement de scènes
• Détection par Points d’Intérêt à
la place de Surface quand
possibilité
• Arrêter la détection de Surface
quand pas nécessaire
(désactiver AR Session)
• La scène démarre à la position
(0,0,0) où est votre téléphone
• Taille réelle 1u = 1m
• Informer l’utilisateur quand
une surface est détectée (tuto)
• Besoin de trouver des surfaces « intéressantes » et non uniformes
• Espace assez éclairé
• Cloud Anchor a besoin d’être sur le même angle de vue
• Besoin de téléphones récents
10. ALTERNATIVE
AR FOUNDATION- BARBARA SCHIAVI- UNITY3DLYON MEET UP 10
Ground Plan Detection
Vuforia Ground Plane permet de placer du contenu numérique sur des surfaces
horizontales de votre environnement, telles que les sols et les tables. Il supporte la
détection et le suivi des surfaces horizontales.
A partir de Unity 2017.3 Patch 2
iPad Air, iPad Mini, iPhone 6, 6+, 5, Samsung S7, S6…
Liste des appareils compatibles:
https://library.vuforia.com/articles/Solution/vuforia-fusion-supported-devices.html
11. CONCLUSION
AR FOUNDATION- BARBARA SCHIAVI- UNITY3DLYON MEET UP 11
Fonctionnalités ARKit ARCore ARFoundation Vuforia
Suivit de l’appareil dans l’espace en temps réel (Position
Tracking)
x x x
Points d’intérêt (Feature points) x x x
Hit-Testing (Feature point / Raycast sur surface de 2D à 3D) x x x x
Identification des surfaces planes horizontales ou verticales (sol,
table, porte, mur, etc)
x x x x
(seulement horizontales)
Estimation des conditions d’éclairage ambiant x x x
AR Scaling x x x
AR Anchor x x x
Détection d’images/marqueurs 2D x x x
Probe réflexion sur les objets
(Environment Probes)*
x x
AR World Maps* x
Scan et reconnaissance d’objets* x x
Face Tracking / Facial Blendshape (iPhone X) x
Points d’intérêt orientée (Oriented Feature point) x
Cloud Anchor x
*ARKit 2.0 (bêta-test)
12. AR FOUNDATION- BARBARA SCHIAVI- UNITY3DLYON MEET UP 12
Merci Pour Votre Attention
Des Questions ?
Contact :
Barbara SCHIAVI
Barbara.schiavi@live.fr
07 83 70 15 58
https://www.digitalityreal.com
13. BIBLIOGRAPHIE
AR FOUNDATION- BARBARA SCHIAVI- UNITY3DLYON MEET UP 13
Articles:
https://developers.google.com/ar/discover/concepts
https://lab.kaizen-solutions.net/2018/04/23/arkit-arcore-vuforia/
https://library.vuforia.com/articles/Solution/ground-plane-guide.html
https://unity3d.com/fr/what-is-xr-glossary
ARInterface (AR Multiplayer cross-platform)
https://blogs.unity3d.com/2017/11/01/experimenting-with-multiplayer-arcore-and-arkit-jump-in-with-sample-code/
Vidéos:
https://www.youtube.com/watch?v=yS2OtBcpDLA
https://www.youtube.com/watch?v=_Y7pM9TP_CM
https://www.youtube.com/watch?v=MqA0XhfKIE0