Hello!

2 days ago someone I asked about the best way to create a hologram and place it in the real world using Hololens. Some time ago, I wrote a post with the step by step on how to do this with URHOSharp, and today will go over the steps to do it with the HoloToolkit.

In previous posts I have already commented on how to create a project in Unity3D and how to import the HoloToolkit. From here, the following steps would be

  • Delete the default assets Main camera and Directional light
  • Save the scene
  • Adjust the values required to run project of Unity as UWP in Hololens
    • Project Settings / Player
    • Project Settings / Quality
    • File / Build Settings
  • Import HoloToolkit
  • Search in the Holotookit assets and add the following assets
    • MainCamera
    • Spatial Mapping
    • Cursor with Feedback
  • Add an Empty Game, I usually name this one Managers, and add the following components
    • Gaze Manager
    • Gaze Stabilizer
    • Gesture Manager
    • Hands Manager
    • World Anchor Manager
  • Add an Empty Game, I usually name this one HoloCollection
    • Add a hologram in the same
    • Add the following components to the hologram
      • World Anchor Manager
      • Tap to Place

 

The output is similar to the following video, where we can see how the gesture AirTap select a hologram, I move in the space shown with Spatial Mapping and another gesture AirTap position it.

2016 10 10 Hololens move and place object.gif

That’s it for today: I’ve left the step by step and now do not forget me more!

Greetings @ Toronto

El Bruno

References

50 responses to “#Hololens – How to place a Hologram using AirTap and #HoloToolkit”

  1. […] El Bruno, How to place a Hologram using AirTap and HoloToolkit […]

    Like

  2. […] El Bruno, How to place a Hologram using AirTap and HoloToolkit […]

    Like

  3. […] El Bruno, How to place a Hologram using AirTap and HoloToolkit […]

    Like

  4. […] El Bruno, How to place a Hologram using AirTap and HoloToolkit […]

    Like

  5. […] El Bruno, How to place a Hologram using AirTap and HoloToolkit […]

    Like

  6. Hi elbruno,

    first of all, thanks so much for your posts =)

    I’m trying to use this “TapToPlace” and seems that the project launchs fine in Hololens, but I can’t see any 3D model (as cube or cylinder). I can see the visual meshes of the mapping, but my “hologram” is not anywhere =(

    Any idea?

    Like

    1. Hi Adri
      Have you check the distance of the cube ? maybe is too far away and that’s why you can’t see the model
      regards
      -Bruno

      Like

  7. Is there an updated tutorial for this? WorldAnchorManager is now a singleton class so it can’t be added to two objects in one scene. I don’t see GestureManager and HandsManager in the current Hololens Toolkit. And does the CursorWithFeedback prefab require a transform to be in the the Primary Cursor Visual field in the inspector now? I can’t get this TapToPlace function to work at all.

    Like

    1. Hi Ridley,
      You are right, GestureManager and HandsManagers are deprecated in the latest version of the HoloToolkit. I won’t update this post, however I’ll try to write a new post using the new set of managers. Anyways, the code is not so different, so you can get it very fast once you learn the basis of the HoloToolkit.
      Regards
      -Bruno

      Like

      1. HI Bruno,

        Any updates on this? I couldn’t figure it out with the latest version of HoloToolkit

        Like

  8. […] de pruebas / demo con Office 365. Hace unos días Ridley me comentaba que mis ejemplos sobre “How to place an Hologram using AirTap” tenían algunos errores de sintaxis, ya que las clases GestureManager y HandsManager no […]

    Like

  9. […] a test environment/demo for Office 365. A few days ago Ridley told me that my examples on “How to place a Hologram using AirTap” had some syntax errors since classes like GestureManager and HandsManager no longer exist in […]

    Like

  10. Any uipdates on how this functionality works with HoloToolkit 5.5 where the GestureManager is depricated? Any help is appreciated!

    Like

    1. My tomorrow post will be on this !
      Regards
      -Bruno

      Like

  11. […] El Bruno, How to place a Hologram using AirTap and HoloToolkit […]

    Like

  12. […] El Bruno, How to place a Hologram using AirTap and HoloToolkit […]

    Like

  13. […] El Bruno, How to place a Hologram using AirTap and HoloToolkit […]

    Like

  14. […] El Bruno, How to place a Hologram using AirTap and HoloToolkit […]

    Like

  15. […] El Bruno, How to place a Hologram using AirTap and HoloToolkit […]

    Like

  16. […] El Bruno, How to place a Hologram using AirTap and HoloToolkit […]

    Like

  17. […] El Bruno, How to place a Hologram using AirTap and HoloToolkit […]

    Like

  18. Hi,

    Thank You for Your post. It works great for me. I have one problem: the game object (sphere) that I am moving, behaves as it woudn’t have any collider. So when I want to put the sphere on the table it is placed inside it.

    Do You have any idea how to fix it?

    Like

    1. Hi Mark

      Have you added / enabled Spatial Mapping. If so, with a collider the sphere should not pace inside a table (or any other surface detected by the spatial mapping).
      One tip here, is to enable the “Draw mesh” option in Spatial Mapping, so you know the real space detected

      Regards
      -Bruno

      Like

  19. […] El Bruno, How to place a Hologram using AirTap and HoloToolkit […]

    Like

  20. […] El Bruno, How to place a Hologram using AirTap and HoloToolkit […]

    Like

  21. […] How to place a Hologram using AirTap and HoloToolkit […]

    Like

  22. […] How to place a Hologram using AirTap and HoloToolkit […]

    Like

  23. […] How to place a Hologram using AirTap and HoloToolkit […]

    Like

  24. […] How to place a Hologram using AirTap and HoloToolkit […]

    Like

Leave a reply to #Hololens – Solución al problema con TapToPlace agregando validación de planos (hasta que #HoloToolkit sea compatible) – El Bruno Cancel reply

Discover more from El Bruno

Subscribe now to keep reading and get access to the full archive.

Continue reading