devwiki:arfoundation

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
devwiki:arfoundation [2022/05/10 14:16] – [AR Foundation Setup - markerless v2] yingdevwiki:arfoundation [2022/05/24 12:10] (current) – [Other related info] ying
Line 64: Line 64:
  
   - build setting: switch to target platform   - build setting: switch to target platform
 +    * building setting > player setting: other > input setting: both
   - Package Manager from Unity registry : install (AR foundation) + (ARCore XR) + (XR interactive toolkit)   - Package Manager from Unity registry : install (AR foundation) + (ARCore XR) + (XR interactive toolkit)
     * note: if xr interactive pop up, choose  (no for new input, go ahead for xr update)     * note: if xr interactive pop up, choose  (no for new input, go ahead for xr update)
Line 83: Line 84:
     - ar session origin > add: AR environment prob manager     - ar session origin > add: AR environment prob manager
         - (opt) HDRLightEstimation.cs into Directional Light, (put ar camera there); then, at AR camera manager, light estimation : everything         - (opt) HDRLightEstimation.cs into Directional Light, (put ar camera there); then, at AR camera manager, light estimation : everything
-    - AR camera: > add AR gesture mgr+    - AR camera: > add AR gesture interactor
     - AR session: > add XR interaction mgr     - AR session: > add XR interaction mgr
     - AR session: > add AR placement interactable [opt: use AR Placement interactable – Single] (put to place prefab there, select mode: single/multi)     - AR session: > add AR placement interactable [opt: use AR Placement interactable – Single] (put to place prefab there, select mode: single/multi)
   - create GameObject Prefab   - create GameObject Prefab
     - root GameObject > - add: collider (if its children no collider)     - root GameObject > - add: collider (if its children no collider)
-    - root GameObject > - add : AR selection [opt: ARSelectionInteractableAuto.cs]; (selection > put obj for selection visualizer)+    - root GameObject > - add : AR selection interactable 
       - (opt) quad obj prefab with new material (unlit/transparent > with texture)       - (opt) quad obj prefab with new material (unlit/transparent > with texture)
 +      - put that selector prefab inside the GameObject prefab, hide, and drag it to selector indicator.
 +      - alternative: [opt for single prefab case: ARSelectionInteractableAuto.cs];
     - root GameObject > - add : Translation [opt: ARTranslationInteractableAnchor.cs]     - root GameObject > - add : Translation [opt: ARTranslationInteractableAnchor.cs]
     - root GameObject > - add : Rotation/Scale interactable component     - root GameObject > - add : Rotation/Scale interactable component
Line 103: Line 106:
       * Go To AR session > AR placement Interactable Single Anchor:        * Go To AR session > AR placement Interactable Single Anchor: 
         * interactable events: add new, drag Canvas to object, and use PlacedObject() function as response         * interactable events: add new, drag Canvas to object, and use PlacedObject() function as response
 +  - prefab animation
  
  
Line 114: Line 118:
  
   * import AR GSP package, right click add > AR GPS > Create basic scene structure   * import AR GSP package, right click add > AR GPS > Create basic scene structure
 +  * GSP stage object, uncheck "Use moving average"
  
 ====== UI Setup ====== ====== UI Setup ======
Line 128: Line 133:
  
   * https://www.quality-wolves.com/arkit-vs-arcore-vs-vuforia   * https://www.quality-wolves.com/arkit-vs-arcore-vs-vuforia
 +
 +Tool:
 +  * view phone screen on windows:
 +    * https://github.com/Genymobile/scrcpy
  
  • devwiki/arfoundation.1652192203.txt.gz
  • Last modified: 2022/05/10 14:16
  • by ying