Skip to content

Instantly share code, notes, and snippets.

@AlaaEddinAlbarghoth
Last active May 2, 2019 08:49
Show Gist options
  • Save AlaaEddinAlbarghoth/b546d5560dd26da8bd9437bd875ee279 to your computer and use it in GitHub Desktop.
Save AlaaEddinAlbarghoth/b546d5560dd26da8bd9437bd875ee279 to your computer and use it in GitHub Desktop.
Enable ARCore, This page describes how to enable ARCore functionality in your Android Studio projects.
# First of all, add this libraries to the module gradle:
implementation 'com.google.ar.sceneform.ux:sceneform-ux:1.8.0'
implementation 'com.karumi:dexter:5.0.0'
# Second go to the Manifest and add this lines:
<uses-permission android:name="android.permission.CAMERA"/>
<uses-feature android:name="android.hardware.camera.ar" android:required="true"/>
<application>
....
<meta-data android:name="com.google.ar.core" android:value="required"/>
....
</application>
# Thrid, Now you can download 3D model to our project (you can download from Poly)
1- Add "Sample Data Directory" to the app by adding Directory>.
2- You can download digital objects from Poly.google.com, the seffix is '*.fbx'
Make sure you have install 'Google Sceneform' plugin
1- Create a 'raw' folder in 'res' folder,
2- Import the files you download it in sceneform library and select the destination 'row' folder
You can download a QR image and put in it 'Lion' text
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment