Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Getting Started With MRTK (for Beginner)

Getting Started With MRTK (for Beginner)

TakashiYoshinaga

June 20, 2020
Tweet

More Decks by TakashiYoshinaga

Other Decks in Technology

Transcript

  1. Getting Started With MRTK
    for Beginner

    View full-size slide

  2. #AR_Fukuoka
    Hashtag

    View full-size slide

  3. Goal
    Learn about object manipulation as the basic usage of MRTK
    https://youtu.be/qUQXZACp35A

    View full-size slide

  4. Sample Data
    http://arfukuoka.lolipop.jp/mrtk/Sample.zip

    View full-size slide

  5. Downloading MRTK (1/3)
    https://github.com/Microsoft/MixedRealityToolkit-Unity
    releases

    View full-size slide

  6. Downloading MRTK (2/3)
    Microsoft Mixed Reality Toolkit v2.4.0 is used for this tutorial
    少し下にスクロール

    View full-size slide

  7. Downloading MRTK (3/3)
    Download Foundation.2.4.0.unitypackage
    Foundation.2.4.0.unitypackage

    View full-size slide

  8. Creating Project (1/6)
    Launch UnityHub and click Project
    Project

    View full-size slide

  9. Creating Project (2/6)
    Click ▽ aligned on the right side of NEW button.

    View full-size slide

  10. Creating Project (3/6)
    Select 2018.4.xxf1 (2018.4.23f1 is selected in this deck)
    2018.4.xxf1

    View full-size slide

  11. Creating Project (4/6)
    ①3D ②Set the project name
    (ex.ARFukuoka_MRTK)
    ③Select the directory
    to save the project

    View full-size slide

  12. Creating Project (5/6)
    Create

    View full-size slide

  13. Creating Project (6/6)
    Unity Editor will appear

    View full-size slide

  14. Installation of MRTK (1/3)
    Double click the unitypackage.
    Click Import button of Import Unity Package dialog.
    Microsoft.MixedReality.
    Toolkit.Unity.Foundation
    .2.4.0.unitypackage
    Import

    View full-size slide

  15. Installation of MRTK (2/3)
    Apply
    Click Apply button to switch the setting to xR.

    View full-size slide

  16. Installation of MRTK (3/3)
    Close
    Close MRTK Project Configurator dialog.

    View full-size slide

  17. Adding 3D Object into the Space (1/3)
    Right click blank
    of Hierarchy

    View full-size slide

  18. Adding 3D Object into the Space (2/3)
    ①3D Object
    ②Cube

    View full-size slide

  19. Adding 3D Object into the Space (3/3)
    Cube should appear

    View full-size slide

  20. Run
    View from camera
    will be shown.
    Click to play
    Click it again to
    stop preview

    View full-size slide

  21. Modification of Objectʼs Transform
    Click Cube

    View full-size slide

  22. Modification of Objectʼs Transform
    Move Rotate Scale

    View full-size slide

  23. Inputting Values to Transform Object
    Click Cube

    View full-size slide

  24. Inputting Values to Transform Object
    p Properties of each object can be added/edited in Inspector
    p Position/Rotation/Scale are editable in Transform.
    Inspector

    View full-size slide

  25. Inputting Values to Transform Object
    Set as following
    Positionを 0 0 1
    Rotation 0 0 0
    Scale 0.3 0.3 0.3
    p Properties of each object can be added/edited in Inspector
    p Position/Rotation/Scale are editable in Transform.

    View full-size slide

  26. Controlling Viewpoint of Scene
    Letʼs set the object at
    the center of scene tab

    View full-size slide

  27. Controlling Viewpoint of Scene
    Double Click Cube

    View full-size slide

  28. Controlling Viewpoint of Scene
    Object can be shown on the center of Scene tab.

    View full-size slide

  29. Controlling Viewpoint of Scene
    [←] [→]: Move to Left/RIght
    [↑][↓]: Zoom In/Out
    [Alt]+Drag: Rotation
    +Drag: Move to ←→↑↓

    View full-size slide

  30. Next Step
    Not only Transform but also
    appearance and behavior and
    properties can be edited in Inspector

    View full-size slide

  31. Changing Color of Cube (1/4)
    ① Cube
    ② See Mesh Renderer
    ③ Open Materials

    View full-size slide

  32. Changing Color of Cube (2/4)
    Element0

    View full-size slide

  33. Changing Color of Cube (3/4)
    Appearance information
    is described in Material file

    View full-size slide

  34. Changing Color of Cube (4/4)
    Detail of Material is shown at the
    bottom of Inspector.
    But Default-Material is not editable.

    View full-size slide

  35. Itʼs necessary to create Material file
    to edit appearance of a object.

    View full-size slide

  36. Creating Material (1/3)
    Create Material to describe color of Cube.
    ①Assets
    ②Right Click

    View full-size slide

  37. Creating Material (2/3)
    Create Material to describe color of Cube.
    ①Create
    ②Material

    View full-size slide

  38. Creating Material (3/3)
    New Material should appear
    Create Material to describe color of Cube.

    View full-size slide

  39. Application of Material (1/2)
    Open Materials of Cube in Inspector
    ② See Default-Material
    ①Cube

    View full-size slide

  40. Application of Material (2/2)
    Replace Default-Material with New Material.
    Drag & Drop into
    Default-Material

    View full-size slide

  41. Editing Color of Cube (1/3)
    ①Cube
    ②Material should be
    New Material

    View full-size slide

  42. Editing Color of Cube (2/3)
    Open NewMaterial
    Click □ next
    to Albedo

    View full-size slide

  43. Editing Color of Cube (3/3)
    Color should be changed

    View full-size slide

  44. How to Save this Scene (1/4)
    File

    View full-size slide

  45. How to Save this Scene (2/4)
    SaveAs...

    View full-size slide

  46. How to Save this Scene (3/4)
    ①Name as Sample1
    ②Save

    View full-size slide

  47. How to Save this Scene (4/4)
    Sample1 should be appear in Assets

    View full-size slide

  48. You can override the scene
    with current info by
    Ctrl / Command + S

    View full-size slide

  49. Letʼs use MRTK from now!

    View full-size slide

  50. What Youʼll Do at First?
    Prepare moving around and using hand in UnityEditor

    View full-size slide

  51. Using Camera of MRTK (1/3)
    MixedRealityToolkit

    View full-size slide

  52. Using Camera of MRTK (2/3)
    Add to Scene and Configure...

    View full-size slide

  53. Using Camera of MRTK (3/3)
    MixedRealityToolKit and
    MixedRealityPlayspace
    should appear

    View full-size slide

  54. Play (1/4)
    Click Play

    View full-size slide

  55. Play (2/4)
    [A][D] :Move to Left and Right
    [W][S] :Zoom In/Out
    [Q][E] :Move to Up and Down
    RightClick + Drag :Rotation

    View full-size slide

  56. Play (3/4)
    [Shift] :Show left hand
    [Space] :Show right hand
    While hand is appearing+
    [Click] :Pinch
    [Scroll] :Forward/Back

    View full-size slide

  57. Play (4/4)
    Stop before going to next step

    View full-size slide

  58. Letʼs manipulate Cube

    View full-size slide

  59. Making Cube Manipulatable (1/3)
    ①Cube
    ②Add Component

    View full-size slide

  60. Making Cube Manipulatable (2/3)
    Search [manipulation]
    Select ManipulationHandler

    View full-size slide

  61. Making Cube Manipulatable (3/3)
    ①Cube
    ②ManipulationHandler
    should be added

    View full-size slide

  62. Enable Near Interaction
    ①Cube
    ②Add Component

    View full-size slide

  63. Enable Near Interaction
    ①Search [Near]
    ②NearInteractionGrabbable

    View full-size slide

  64. Enable Near Interaction
    ①Cube
    ②NearInteractionGrabbable
    should be added

    View full-size slide

  65. Play (1/4)
    Click Play

    View full-size slide

  66. One Hand Manipulation

    View full-size slide

  67. Play (2/4)
    Shift or Space

    View full-size slide

  68. Play (3/4)
    Put the cursor on Cube

    View full-size slide

  69. Play (4/4)
    Drag and move Cube

    View full-size slide

  70. Two Hand Manipulation

    View full-size slide

  71. Play (1/5)
    Show left hand by
    pushing Shift

    View full-size slide

  72. Play (2/5)
    ①Click after putting cursor on Cube
    ② Hit [T] to fix left hand

    View full-size slide

  73. Play (3/5)
    Show right hand by pushing Space

    View full-size slide

  74. Play (4/5)
    Drag and move

    View full-size slide

  75. Play (5/5)
    You can Rotate/Scale Cube

    View full-size slide

  76. Letʼs Add Another Object

    View full-size slide

  77. Adding Obj File(1/7)
    Assets

    View full-size slide

  78. Adding Obj File (2/7)
    Sample Folder → Model

    View full-size slide

  79. Adding Obj File (3/7)
    Drag & Drop
    Model into Assets

    View full-size slide

  80. Adding Obj File (4/7)
    Model

    View full-size slide

  81. Adding Obj File (5/7)
    model.obj

    View full-size slide

  82. Adding Obj File (6/7)
    Drag & Drop model.obj
    into Hierarchy

    View full-size slide

  83. Adding Obj File (7/7)
    ①model
    Set chair as following nbv
    Position 0.5 -0.3 1
    Rotation 0 180 0

    View full-size slide

  84. In order to enable chair to detect
    contact with hand, Collider should
    be added to model.obj

    View full-size slide

  85. Adding Collider (1/5)
    ①model
    ②Add Component

    View full-size slide

  86. Adding Collider (2/5)
    ①Search box
    ②BoxCollider

    View full-size slide

  87. Adding Collider (3/5)
    Bounding box will appear

    View full-size slide

  88. Adding Collider (4/5)
    ①model
    ②Edit Collider

    View full-size slide

  89. Adding Collider (5/5)
    Adjust position of each
    face by moving■

    View full-size slide

  90. Make Chair Manipulatable (1/5)
    ①model
    ②Add Component

    View full-size slide

  91. Make Chair Manipulatable (2/5)
    ① Searchmanipulation
    ②ManipulationHandler

    View full-size slide

  92. Make Chair Manipulatable (3/5)
    ①model
    ②Add Component

    View full-size slide

  93. Make Chair Manipulatable (4/5)
    ①Search near
    ②NearInteractionGrabbable

    View full-size slide

  94. Make Chair Manipulatable (5/5)
    ①model
    ②NearInteractionGrabbable should be appear

    View full-size slide

  95. Restrict the Direction of the Chair
    ①model
    ②Set One Hand Rotation Mode Near/Far to
    Gravity Aligned Maintain Rotation to User

    View full-size slide

  96. Allow Only Rotation for 2 Hand Operation
    ①model
    ②Set Rotate for
    Two Hand Manipulation Type
    ③ Set Y Axis Only for
    Constraint On Rotation

    View full-size slide

  97. Play
    Put cursor on chair
    Drag to move Rotate with to hands

    View full-size slide

  98. Remove Performance Viewer
    Can be deleted

    View full-size slide

  99. Remove Performance Viewer
    ①MixedRealityToolKit
    ②Copy & Customize

    View full-size slide

  100. Remove Performance Viewer
    ①Change Profile Name to Sample1 MixedRealityToolkit...
    ②Clone

    View full-size slide

  101. Remove Performance Viewer
    ①Diagnostics
    ②Turn Enable Diagnostics
    System into Off

    View full-size slide

  102. p HoloLens2
    p ARFoundation(ARKit/ARCore)
    Running On AR Devices

    View full-size slide

  103. p HoloLens2
    p ARFoundation(ARKit/ARCore)
    Running On AR Devices

    View full-size slide

  104. Build Setting for HoloLens2
    File

    View full-size slide

  105. Build Setting for HoloLens2
    Build Setting

    View full-size slide

  106. Build Setting for HoloLens2
    ①Universal Windows Platform
    ②Switch Platform

    View full-size slide

  107. Build Setting for HoloLens2
    Apply

    View full-size slide

  108. Build Setting for HoloLens2
    Player Settings...

    View full-size slide

  109. Build Setting for HoloLens2
    ①XR Settings
    ②Select 16-bit depth ad Depth Format

    View full-size slide

  110. Build for HoloLens2
    Build

    View full-size slide

  111. Build for HoloLens2
    New Folder

    View full-size slide

  112. Build for HoloLens2
    Rename new folder to build

    View full-size slide

  113. Build for HoloLens2
    ①build
    ②Select Folder

    View full-size slide

  114. Wait for a moment...

    View full-size slide

  115. Build for HoloLens2
    Open build

    View full-size slide

  116. Build for HoloLens2
    Open solution (*.sln) with VisualStudio2019

    View full-size slide

  117. Build for HoloLens2
    Release ARM

    View full-size slide

  118. Build for HoloLens2

    View full-size slide

  119. Build for HoloLens2
    Device

    View full-size slide

  120. Connect HoloLens2 and PC
    by using USB cable

    View full-size slide

  121. Build for HoloLens2
    ① Debug
    ②Start without debug

    View full-size slide

  122. p HoloLens2
    p ARFoundation(ARKit/ARCore)
    Running On AR Devices

    View full-size slide

  123. p HoloLens2
    p ARFoundation(ARKit/ARCore)
    Running On AR Devices

    View full-size slide

  124. Instalation of ARFoundation
    Window

    View full-size slide

  125. Instalation of ARFoundation
    Package Manager

    View full-size slide

  126. Instalation of ARFoundation
    ①AR Foundation
    ②Open version list

    View full-size slide

  127. Instalation of ARFoundation
    ①All Version
    ②1.5.0-preview.6

    View full-size slide

  128. Instalation of ARFoundation
    Install

    View full-size slide

  129. Setting procedure for iOS
    is from next page.

    View full-size slide

  130. Installation of ARKit (for iOS)
    ①ARKit XR Plugin
    ②2.1.2

    View full-size slide

  131. Installation of ARKit (for iOS)
    Install

    View full-size slide

  132. Setting procedure for Android
    is from next page.

    View full-size slide

  133. Installation of ARCore (for Android)
    ①ARCore XR Plugin
    ②2.1.2

    View full-size slide

  134. Installation of ARCore (for Android)
    Install

    View full-size slide

  135. Setting procedure for both
    ARCore/ARKi is from here.

    View full-size slide

  136. Build Setting for ARFoundation
    ①MixedRealityToolkit
    ②DefaultHoloLens2Configuration

    View full-size slide

  137. Build Setting for ARFoundation
    Copy & Customize

    View full-size slide

  138. Build Setting for ARFoundation
    ①Set ProfileName as Mobile MixedRealityToolkit...
    ②Clone

    View full-size slide

  139. Build Setting for ARFoundation
    ①Camera
    ②Clone

    View full-size slide

  140. Build Setting for ARFoundation
    ①Set ProfileName as Mobile MixedRealityCameraProfile
    ②Clone

    View full-size slide

  141. Build Setting for ARFoundation
    Camera Setting Providers

    View full-size slide

  142. Build Setting for ARFoundation
    -

    View full-size slide

  143. Build Setting for ARFoundation
    AddCameraSettingsProvider

    View full-size slide

  144. Build Setting for ARFoundation
    Newdataprovider 0

    View full-size slide

  145. Build Setting for ARFoundation
    Open Taypeを開く

    View full-size slide

  146. Build Setting for ARFoundation
    ①MicrosoftMixedReality.Toolkit.Experimental.UnityAR
    ②UnityARCameraSetting

    View full-size slide

  147. Remofe Performance Viewer
    Diagnostics

    View full-size slide

  148. Remofe Performance Viewer
    Turn Off Enable Diagnostics System

    View full-size slide

  149. Build for ARFoundation
    File

    View full-size slide

  150. Build for ARFoundation
    Build Settings...

    View full-size slide

  151. Build for ARKit(iOS)
    ①iOS
    ②Switch Platform

    View full-size slide

  152. Build for ARCore(Android)
    ①Android
    ②Switch Platform

    View full-size slide

  153. Build for ARFoundation
    Apply

    View full-size slide

  154. Build for ARFoundation
    Player Settings...

    View full-size slide

  155. Setting procedure for iOS
    is from next page.

    View full-size slide

  156. Build for ARKit(iOS)
    Other Settings

    View full-size slide

  157. Build for ARKit(iOS)
    Set Bundle Identifier
    ex) com.Yoshinaga.ARFukuoka

    View full-size slide

  158. Build for ARKit(iOS)
    Strip Engine CodeをOff

    View full-size slide

  159. Setting procedure for Android
    is from next page.

    View full-size slide

  160. Build for ARCore(Android)
    Set Package Name
    ex)com.yourname.arfukuoka

    View full-size slide

  161. Build and Run
    for ARCore/ARKit

    View full-size slide

  162. 動作の様⼦

    View full-size slide

  163. Ctrl / Command + S
    Save

    View full-size slide

  164. Letʼs Use Spatial Awareness
    Next Step is...

    View full-size slide

  165. Use room mesh model

    View full-size slide

  166. Duplicate Current Scene
    File

    View full-size slide

  167. Duplicate Current Scene
    Save As...

    View full-size slide

  168. Duplicate Current Scene
    Save As...

    View full-size slide

  169. Import of Spatial Mesh Model
    Assets

    View full-size slide

  170. Import of Spatial Mesh Model
    Import New Asset

    View full-size slide

  171. Import of Spatial Mesh Model
    ①room.obj
    ②import

    View full-size slide

  172. Import of Spatial Mesh Model
    room should appear

    View full-size slide

  173. Import of Spatial Mesh Model
    MixedRealityToolkit
    Clone

    View full-size slide

  174. Import of Spatial Mesh Model
    ①Set ProfileName as Sample2 MixedRealityToolkit...
    ②Clone

    View full-size slide

  175. Visualization of Spatial Mesh Model
    ①MixedRealityToolkit
    ②Spatial Awareness

    View full-size slide

  176. Visualization of Spatial Mesh Model
    Clone

    View full-size slide

  177. Visualization of Spatial Mesh Model
    ①Set ProfileName as Sample2MixedRealityCameraProfile
    ②Clone

    View full-size slide

  178. Visualization of Spatial Mesh Model
    Windows Mixed Reality Spatial Mesh Observer

    View full-size slide

  179. Visualization of Spatial Mesh Model
    Typeを開く

    View full-size slide

  180. Visualization of Spatial Mesh Model
    ①Microsoft.MixedReality.Toolkit.SpatialObjectMeshObserver
    ②SpatialObjectMeshObserver

    View full-size slide

  181. Visualization of Spatial Mesh Model
    Clone

    View full-size slide

  182. Visualization of Spatial Mesh Model
    ①Set ProfileName as Sample2SpatialObjectMeshObserver...
    ②Clone

    View full-size slide

  183. Visualization of Spatial Mesh Model
    See Spatial Mesh Object

    View full-size slide

  184. Visualization of Spatial Mesh Model
    See room (Do NOT click)

    View full-size slide

  185. Visualization of Spatial Mesh Model
    Drag&Drop into ExampleSpatialMesh

    View full-size slide

  186. Visualization of Spatial Mesh Model
    Replaced to room

    View full-size slide

  187. Replace Material of Spatial Mesh
    Click ○ aligned on the right
    of MRTK_
    Wireframe

    View full-size slide

  188. Replace Material of Spatial Mesh
    Defaultで検索
    Defaultを選択
    ※他のMtaterialでもOK

    View full-size slide

  189. Replace Material of Spatial Mesh
    Example Spatial Mesh
    Default Material

    View full-size slide

  190. Using Gravity
    ①model
    ②Add Component

    View full-size slide

  191. Using Gravity
    ①Search rigid
    ②Rigidbody

    View full-size slide

  192. Using Gravity
    ①model
    ②Rigidbody
    ③Turn ON Use Gravity

    View full-size slide

  193. Depending on the development environment,
    the chair may fall off before the mesh
    appears on the scene.
    Keep the chair in the air at first and allow it
    to fall when you let go of your hand.

    View full-size slide

  194. Turn Off Gravity
    ①model
    ② See Rigidbody

    View full-size slide

  195. Turn Off Gravity
    ①Use GravityをOff
    ②Is KinematicをOn
    Note︓
    Turn Is Kinematic On to prevent physical interference.
    Prevents the chair from hitting the mesh and flying away
    when the app is launched.

    View full-size slide

  196. Turn On Gravity After Manipulation
    model
    The ManipulationHandler has OnManipulation
    Started/Ended, which makes it easy to get
    the operation started and finished.

    View full-size slide

  197. Turn On Gravity After Manipulation
    ①model
    ②Add Component

    View full-size slide

  198. Turn On Gravity After Manipulation
    ①Clear Search Area
    ③Set Script Name
    ex)PhysicsScript
    ②New script
    ④Create and Add

    View full-size slide

  199. Letʼs Write Script
    ①model
    ②Physics Script should appear.

    View full-size slide

  200. Letʼs Write Script
    ①model
    ②Open Physics Script

    View full-size slide

  201. using System.Collections;
    using System.Collections.Generic;
    using UnityEngine;
    public class PhysicsScript : MonoBehaviour
    {
    // Start is called before the first frame update
    void Start()
    {
    }
    // Update is called once per frame
    void Update()
    {
    }
    }
    Editing Script

    View full-size slide

  202. using System.Collections;
    using System.Collections.Generic;
    using UnityEngine;
    public class PhysicsScript : MonoBehaviour
    {
    Delete Start and Update function
    }
    Editing Script

    View full-size slide

  203. using System.Collections;
    using System.Collections.Generic;
    using UnityEngine;
    public class PhysicsScript : MonoBehaviour
    {
    //SetGravityにtrue/falseを渡すことで重⼒および物理⼲渉のOn/Offを切り替える
    public void SetGravity(bool flag)
    {
    //重⼒のOn/Offを設定
    gameObject.GetComponent().useGravity = flag;
    //物理的な⼲渉のOn/Offを設定
    gameObject.GetComponent().isKinematic = !flag;
    }
    }
    Function to Switch On/Off Physics

    View full-size slide

  204. Turn On Gravity when Manipulation is Ended
    ①model
    ②On Manipulation Ended
    ③Click +

    View full-size slide

  205. Turn On Gravity when Manipulation is Ended
    ①model
    Drag & Drop into
    area of shown as None

    View full-size slide

  206. Turn On Gravity when Manipulation is Ended
    ①model
    ②Click No Function

    View full-size slide

  207. Turn On Gravity when Manipulation is Ended
    ②SetGravity(bool)
    ①PhysicsScript

    View full-size slide

  208. Turn On Gravity when Manipulation is Ended
    ①model
    ③Turn On
    ②See Manipulation Ended

    View full-size slide

  209. Setting Hand Gesture
    ①model

    View full-size slide

  210. Setting Hand Gesture
    ①SetManipulation Type
    as One Handed Only
    ②Set Constraint on Rotation as None

    View full-size slide

  211. The object (chair) will rebound and roll
    when spatial meshes are refreshed
    on the actual HoloLens.
    Turn off gravity as soon as collision
    with spatial mesh

    View full-size slide

  212. using System.Collections;
    using System.Collections.Generic;
    using UnityEngine;
    public class HandScript : MonoBehaviour
    {
    //SetGravityにtrue/falseを渡すことで重⼒および物理⼲渉のOn/Offを切り替える
    public void SetGravity(bool flag)
    {
    gameObject.GetComponent().useGravity = flag;
    gameObject.GetComponent().isKinematic = !flag;
    }
    //Called when collision is occured
    private void OnCollisionEnter(Collision collision)
    {
    SetGravity(false);
    }
    }

    View full-size slide

  213. Delete Unused Object
    Remove Cube

    View full-size slide

  214. Delete Unused Object

    View full-size slide

  215. Play on Unity Editor

    View full-size slide

  216. Letʼs build and deploy this
    application into xR device.

    View full-size slide

  217. p HoloLens2
    p ARFoundation(ARKit/ARCore)
    Run On Each Device

    View full-size slide

  218. p HoloLens2
    p ARFoundation(ARKit/ARCore)
    Run On Each Device

    View full-size slide

  219. Setting for HoloLens2
    ① model
    ② Spatial Awareness

    View full-size slide

  220. Setting for HoloLens2
    See Windows Mixed Reality Spatial Mesh Observer

    View full-size slide

  221. Setting for HoloLens2
    Open dropdown menu aligned on right of Type

    View full-size slide

  222. Setting for HoloLens2
    ①MicrosoftMixedReality.Toolkit.WindowsMixedReality.SpatialAwareness
    ②MicrosoftMixedReality.Spatial.MeshObserver

    View full-size slide

  223. Build -> Deploy -> Run
    Installation

    View full-size slide

  224. p HoloLens2
    p ARFoundation(ARKit/ARCore)
    Run On Each Device

    View full-size slide

  225. p HoloLens2
    p ARFoundation(ARKit/ARCore)
    Run On Each Device

    View full-size slide

  226. Setting for AR Foundation
    ①MixedRealityToolkit
    ②See Mixed Reality Toolkit

    View full-size slide

  227. Setting for AR Foundation
    MobileMixedRealityToolkitConfiguration
    (The setting made in the first half of tutorial)

    View full-size slide

  228. Letʼs use plane detection
    instead of spatial awareness.

    View full-size slide

  229. Using Plane Detection
    ①MixedRealityPlayspace
    ②Add Component

    View full-size slide

  230. Using Plane Detection
    ①SearchAR Plane
    ②AR Plane Manager

    View full-size slide

  231. Using Plane Detection
    ①MixedRealityPlayspace
    AR Session Origin & AR Plane Manager
    should be added

    View full-size slide

  232. Using Plane Detection
    Right click on the blank of Hierarchy

    View full-size slide

  233. Using Plane Detection
    ①XR
    ②AR Default Plane

    View full-size slide

  234. Using Plane Detection
    ①See AR Default Plane
    ②Assets

    View full-size slide

  235. Using Plane Detection
    Drag&Drop AR Default Plane
    into Assets

    View full-size slide

  236. Using Plane Detection
    Delete AR Default Plane

    View full-size slide

  237. Using Plane Detection
    ①MixedRealityPlayspace
    ②See Plane Prefab

    View full-size slide

  238. Using Plane Detection
    ①SeeAR Default Plane
    (※ Do NOT click)
    ②Drag & Drop into None
    aligned right of Plane Prefab

    View full-size slide

  239. Using Plane Detection
    Plane Prefab should be
    AR Default Plane

    View full-size slide

  240. Build -> Deploy -> Run
    Installation

    View full-size slide