From 11ff392defda1aa19ede564c0bf08fc63cc5c346 Mon Sep 17 00:00:00 2001 From: shubhamgupta2956 Date: Sat, 21 Sep 2019 20:24:44 +0530 Subject: [PATCH 1/6] Blog including steps involved in setting up development environment for ARCore --- ...9-09-21-internal-hackathon-arcore-setup.md | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 _posts/2019/2019-09-21-internal-hackathon-arcore-setup.md diff --git a/_posts/2019/2019-09-21-internal-hackathon-arcore-setup.md b/_posts/2019/2019-09-21-internal-hackathon-arcore-setup.md new file mode 100644 index 0000000..ec8120c --- /dev/null +++ b/_posts/2019/2019-09-21-internal-hackathon-arcore-setup.md @@ -0,0 +1,20 @@ +--- + layout: post + title: Working with ARCore + excerpt: Playing with Unity and Google’s ARCore + author: + name: Shubham Gupta + link: https://github.com/shubhamgupta2956 + bio: Developer, SDSLabs + image: shubham.jpg +--- + +Installing Unity is an easy task. Just download the setup files and after accepting all the agrements and defining the various things, it will install automatically and you are good to go. But the main problem comes when you want to do android development using unity. + +Unity by default does not contain any SDK, JDK related to andrid development. So you have to install it by your own which is not easy as it seems as sdk manager in not available . For insatlling SDK, one can do two things:- +1. Install Android Studio +2. Install SDK command line tools + +While the first method is quite easy. You jut have to install android studio and with it you get SDK manager which will download all th required SDKs. But wait... installing Android Studio... Not every computer has this much capable hardware which can run this heavy beast. + +The second way is the hard way. It includes use of command line. The command line tool can be downloaded from https://developer.android.com/studio. After downloading, extract the zip file \ No newline at end of file From e24264ae4d94c2ab881d3bdf993b57114b5663d4 Mon Sep 17 00:00:00 2001 From: shubhamgupta2956 Date: Sat, 21 Sep 2019 21:41:28 +0530 Subject: [PATCH 2/6] Almost complete. Review required. --- ...9-09-21-internal-hackathon-arcore-setup.md | 30 ++++++++++++++++--- 1 file changed, 26 insertions(+), 4 deletions(-) diff --git a/_posts/2019/2019-09-21-internal-hackathon-arcore-setup.md b/_posts/2019/2019-09-21-internal-hackathon-arcore-setup.md index ec8120c..4267a09 100644 --- a/_posts/2019/2019-09-21-internal-hackathon-arcore-setup.md +++ b/_posts/2019/2019-09-21-internal-hackathon-arcore-setup.md @@ -9,12 +9,34 @@ image: shubham.jpg --- -Installing Unity is an easy task. Just download the setup files and after accepting all the agrements and defining the various things, it will install automatically and you are good to go. But the main problem comes when you want to do android development using unity. +# The Motivation behind this blog -Unity by default does not contain any SDK, JDK related to andrid development. So you have to install it by your own which is not easy as it seems as sdk manager in not available . For insatlling SDK, one can do two things:- +Installing Unity is an easy task. Just download the setup files and after accepting all the agrements and defining the various paths,etc. , it will install automatically and you are good to go. But the main problem comes when you want to do android development using unity. + +# What is ARCore? + +According to Wikipedia, ARCore is a software development kit developed by Google that allows for augmented reality applications to be built. +ARCore uses three key technologies to integrate virtual content with the real environment: +* Motion Tracking: it allows the phone to understand its position relative to the world. +* Environmental understanding: It allows the phone to detect the size and location of all type of surfaces, vertical, horizontal and angled. +* Light Estimation: it allows the phone to estimate the environment’s current lighting conditions. + +# Help! How to escape this! + +Unity by default does not contain any SDK, JDK related to andrid development. So you have to install it by your own which is not easy as it seems as sdk manager in not available. For insatlling SDK, one can do two things:- 1. Install Android Studio 2. Install SDK command line tools -While the first method is quite easy. You jut have to install android studio and with it you get SDK manager which will download all th required SDKs. But wait... installing Android Studio... Not every computer has this much capable hardware which can run this heavy beast. +While the first method is quite easy. You jut have to install android studio and with it you get SDK manager which will download all the required SDKs. But wait... installing Android Studio... Not every computer has this much capable hardware which can run this heavy beast without any lag. + +The second way is the hard way. It includes use of command line. The command line tool can be downloaded from https://developer.android.com/studio. After downloading, extract the zip file. Migrate to tools/bin and open command prompt in that folder. Type the command + +`sdkmanger --list` + +It will list all the packages that can be installed. To install any pacakge just type the command `sdkmanager packages [options]`. For example, here's how to install the SDK tools for API level 28: + +`sdkmanager "android-28"` + +After that the only thing remaining is to add this SDK's path in the path variable. Add it by going in the menu bar, go to Unity > Preferences > External Tools. -The second way is the hard way. It includes use of command line. The command line tool can be downloaded from https://developer.android.com/studio. After downloading, extract the zip file \ No newline at end of file +Now it's all set. Happy Hacking. \ No newline at end of file From a845a8efa111fed84f553a74da93de31e74fe3c9 Mon Sep 17 00:00:00 2001 From: shubhamgupta2956 Date: Sat, 21 Sep 2019 21:46:52 +0530 Subject: [PATCH 3/6] Minor spelling mistakes fixed --- _posts/2019/2019-09-21-internal-hackathon-arcore-setup.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_posts/2019/2019-09-21-internal-hackathon-arcore-setup.md b/_posts/2019/2019-09-21-internal-hackathon-arcore-setup.md index 4267a09..1f094d8 100644 --- a/_posts/2019/2019-09-21-internal-hackathon-arcore-setup.md +++ b/_posts/2019/2019-09-21-internal-hackathon-arcore-setup.md @@ -23,11 +23,11 @@ ARCore uses three key technologies to integrate virtual content with the real en # Help! How to escape this! -Unity by default does not contain any SDK, JDK related to andrid development. So you have to install it by your own which is not easy as it seems as sdk manager in not available. For insatlling SDK, one can do two things:- +Unity by default does not contain any SDK, JDK related to andrid development. So you have to install it by your own which is not easy as it seems as sdk manager is not available. For installing SDK, one can do two things:- 1. Install Android Studio 2. Install SDK command line tools -While the first method is quite easy. You jut have to install android studio and with it you get SDK manager which will download all the required SDKs. But wait... installing Android Studio... Not every computer has this much capable hardware which can run this heavy beast without any lag. +While the first method is quite easy. You just have to install android studio and with it you get SDK manager which will download all the required SDKs. But wait... installing Android Studio... Not every computer has this much capable hardware which can run this heavy beast without any lag. The second way is the hard way. It includes use of command line. The command line tool can be downloaded from https://developer.android.com/studio. After downloading, extract the zip file. Migrate to tools/bin and open command prompt in that folder. Type the command From f52b4a5682390ead994f4f527d49593111fe06a0 Mon Sep 17 00:00:00 2001 From: shubhamgupta2956 Date: Sun, 22 Sep 2019 00:42:12 +0530 Subject: [PATCH 4/6] Added process for setting up whole development environment --- ...9-09-21-internal-hackathon-arcore-setup.md | 40 ++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-) diff --git a/_posts/2019/2019-09-21-internal-hackathon-arcore-setup.md b/_posts/2019/2019-09-21-internal-hackathon-arcore-setup.md index 1f094d8..5a96a37 100644 --- a/_posts/2019/2019-09-21-internal-hackathon-arcore-setup.md +++ b/_posts/2019/2019-09-21-internal-hackathon-arcore-setup.md @@ -21,7 +21,45 @@ ARCore uses three key technologies to integrate virtual content with the real en * Environmental understanding: It allows the phone to detect the size and location of all type of surfaces, vertical, horizontal and angled. * Light Estimation: it allows the phone to estimate the environment’s current lighting conditions. -# Help! How to escape this! +# Setting up development environment + +## Requirements + +*Unity 2017.4.26f1 or later + +**Make sure to include Android Build Support during installation + +**The Universal Render Pipeline (formerly known as Ligthweight Render Pipeline or LWRP) is not supported by the ARCore SDK for Unity + +**When using Unity 2019, the following Unity packages are required: + +1. Multiplayer HLAPI +2. XR Legacy Input Helper + +*ARCore SDK for Unity 1.12.0 or later + +*Android SDK 7.0 (API Level 24) or later, installed using the SDK Manager in Android Studio + +## Get the ARCore SDK for Unity +* Download ARCore SDK for Unity 1.12.0 or later. + The SDK is downloaded as arcore-unity-sdk-1.12.0.unitypackage. + +## Create a new project and import the SDK +*Open Unity and create a new 3D project. + +*Unity 2019 only: Select Window > Package Manager and install the following packages: + +**Multiplayer HLAPI (required by the CloudAnchors sample) +**XR Legacy Input Helpers (required by Instant Preview, which uses the TrackedPoseDriver) +*Import the ARCore SDK for Unity: + +**Select Assets > Import Package > Custom Package. + +**Select the arcore-unity-sdk-1.12.0.unitypackage that you downloaded. + +**In the Importing Package dialog, make sure that all package options are selected and click Import. + +# Error! Help! Unity by default does not contain any SDK, JDK related to andrid development. So you have to install it by your own which is not easy as it seems as sdk manager is not available. For installing SDK, one can do two things:- 1. Install Android Studio From 9c1f89b89e1ee417f7a811d06518265424e10c7f Mon Sep 17 00:00:00 2001 From: shubhamgupta2956 Date: Sun, 27 Oct 2019 03:18:48 +0530 Subject: [PATCH 5/6] minor issues fixed --- ...9-09-21-internal-hackathon-arcore-setup.md | 52 +++++++++---------- 1 file changed, 25 insertions(+), 27 deletions(-) diff --git a/_posts/2019/2019-09-21-internal-hackathon-arcore-setup.md b/_posts/2019/2019-09-21-internal-hackathon-arcore-setup.md index 5a96a37..b8e34f2 100644 --- a/_posts/2019/2019-09-21-internal-hackathon-arcore-setup.md +++ b/_posts/2019/2019-09-21-internal-hackathon-arcore-setup.md @@ -11,70 +11,68 @@ # The Motivation behind this blog -Installing Unity is an easy task. Just download the setup files and after accepting all the agrements and defining the various paths,etc. , it will install automatically and you are good to go. But the main problem comes when you want to do android development using unity. +Installing Unity is an easy task. Just download the setup files and after accepting all the agreements and defining the various paths, etc., it will install automatically and you are good to go. However, the main problem arises when you want to do android development using unity. # What is ARCore? According to Wikipedia, ARCore is a software development kit developed by Google that allows for augmented reality applications to be built. ARCore uses three key technologies to integrate virtual content with the real environment: -* Motion Tracking: it allows the phone to understand its position relative to the world. -* Environmental understanding: It allows the phone to detect the size and location of all type of surfaces, vertical, horizontal and angled. -* Light Estimation: it allows the phone to estimate the environment’s current lighting conditions. +* Motion Tracking: It allows the phone to understand its position relative to the world. +* Environmental understanding: It allows the phone to detect the size and location of all types of surfaces, vertical, horizontal and angled. +* Light Estimation: It allows the phone to estimate the environment’s current lighting conditions. -# Setting up development environment +# Setting up the development environment ## Requirements -*Unity 2017.4.26f1 or later +* Unity 2017.4.26f1 or later -**Make sure to include Android Build Support during installation +** Make sure to include Android Build Support during installation -**The Universal Render Pipeline (formerly known as Ligthweight Render Pipeline or LWRP) is not supported by the ARCore SDK for Unity - -**When using Unity 2019, the following Unity packages are required: +** When using Unity 2019, the following Unity packages are required: 1. Multiplayer HLAPI 2. XR Legacy Input Helper -*ARCore SDK for Unity 1.12.0 or later +* ARCore SDK for Unity 1.12.0 or later -*Android SDK 7.0 (API Level 24) or later, installed using the SDK Manager in Android Studio +* Android SDK 7.0 (API Level 24) or later, installed using the SDK Manager in Android Studio ## Get the ARCore SDK for Unity * Download ARCore SDK for Unity 1.12.0 or later. The SDK is downloaded as arcore-unity-sdk-1.12.0.unitypackage. ## Create a new project and import the SDK -*Open Unity and create a new 3D project. +* Open Unity and create a new 3D project. -*Unity 2019 only: Select Window > Package Manager and install the following packages: +* Unity 2019 only: Select Window > Package Manager and install the following packages: -**Multiplayer HLAPI (required by the CloudAnchors sample) -**XR Legacy Input Helpers (required by Instant Preview, which uses the TrackedPoseDriver) -*Import the ARCore SDK for Unity: +** Multiplayer HLAPI (required by the CloudAnchors sample) +** XR Legacy Input Helpers (required by Instant Preview, which uses the TrackedPoseDriver) +* Import the ARCore SDK for Unity: -**Select Assets > Import Package > Custom Package. +** Select Assets > Import Package > Custom Package. -**Select the arcore-unity-sdk-1.12.0.unitypackage that you downloaded. +** Select the arcore-unity-sdk-1.12.0.unitypackage that you downloaded. -**In the Importing Package dialog, make sure that all package options are selected and click Import. +** In the Importing Package dialog, make sure that all package options are selected and click Import. # Error! Help! -Unity by default does not contain any SDK, JDK related to andrid development. So you have to install it by your own which is not easy as it seems as sdk manager is not available. For installing SDK, one can do two things:- -1. Install Android Studio -2. Install SDK command line tools +Unity by default does not contain any SDK, JDK related to android development. So you have to install it on your own which is not easy as it seems as SDK manager is not available. For installing SDK, one can do two things:- +* Install Android Studio +* Install SDK command-line tools -While the first method is quite easy. You just have to install android studio and with it you get SDK manager which will download all the required SDKs. But wait... installing Android Studio... Not every computer has this much capable hardware which can run this heavy beast without any lag. +While the first method is quite easy. You just have to install android studio and with it, you get SDK manager which will download all the required SDKs. But wait... installing Android Studio... Not every computer has this much capable hardware that can run this heavy beast without any lag. -The second way is the hard way. It includes use of command line. The command line tool can be downloaded from https://developer.android.com/studio. After downloading, extract the zip file. Migrate to tools/bin and open command prompt in that folder. Type the command +The second way is the hard way. It includes the use of the command line. The command-line tool can be downloaded from https://developer.android.com/studio. After downloading, extract the zip file. Migrate to tools/bin and open the command prompt in that folder. Type the command `sdkmanger --list` -It will list all the packages that can be installed. To install any pacakge just type the command `sdkmanager packages [options]`. For example, here's how to install the SDK tools for API level 28: +It will list all the packages that can be installed. To install any package just type the command `sdkmanager packages [options]`. For example, here's how to install the SDK tools for API level 28: `sdkmanager "android-28"` -After that the only thing remaining is to add this SDK's path in the path variable. Add it by going in the menu bar, go to Unity > Preferences > External Tools. +After that, the only thing remaining is to add this SDK's path in the path variable. Add it by going to the menu bar, go to Unity > Preferences > External Tools. Now it's all set. Happy Hacking. \ No newline at end of file From ef1cdebdab8f8fe0d6e9f4bab7fe042ed38e8439 Mon Sep 17 00:00:00 2001 From: shubhamgupta2956 Date: Sun, 27 Oct 2019 03:21:44 +0530 Subject: [PATCH 6/6] numerical list replaced by bullets fixed --- _posts/2019/2019-09-21-internal-hackathon-arcore-setup.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_posts/2019/2019-09-21-internal-hackathon-arcore-setup.md b/_posts/2019/2019-09-21-internal-hackathon-arcore-setup.md index b8e34f2..c380079 100644 --- a/_posts/2019/2019-09-21-internal-hackathon-arcore-setup.md +++ b/_posts/2019/2019-09-21-internal-hackathon-arcore-setup.md @@ -31,8 +31,8 @@ ARCore uses three key technologies to integrate virtual content with the real en ** When using Unity 2019, the following Unity packages are required: -1. Multiplayer HLAPI -2. XR Legacy Input Helper +* Multiplayer HLAPI +* XR Legacy Input Helper * ARCore SDK for Unity 1.12.0 or later