hello!
I want to ask how can the cube be used as a virtual button? I want the cube to function as a button and when pressed it will go to another scene, I use user defined targets. thanks!
- Sort Posts
- 9 replies
- Last post
How to create cube as virtual button
Hello,
HoloLens' spatial reconstruction is superior to Vuforia's Ground Plane feature, so there is no roadmap for Engine to support Ground Plane on HoloLens.
The Microsoft MRTK provides the same functionality as our Ground Plane feature, and more.
Thanks,
Vuforia Engine Support
How to create cube as virtual button
Hello,
The Virtual Button feature works by detection occlusion in a region of an Image Target. This region can be set by hand-modifying the dataset's XML file, as the previously mentioned library article documents. The feature only works on 2D Image Targets, and the button cannot be rendered as a cube by Vuforia Engine - likely it could be done in Unity as a game object with animation, keying on the callback from Engine that the target's specified region was occluded. However, I can anticipate some potential challenges here with latency.
Reviewing your posts, I believe that you would be better suited to develop this functionality using HoloLens MRTK. It provides functionality for creating and detecting presses of holographic buttons, which can result in some action.
Thanks,
Vuforia Engine Support
How to create cube as virtual button
sorry I'm really confused about using HoloLens:'', is there any other way that I can use the cube as a button like a virtual button?. What I want is that the cube can be pressed and then it can call to other scenes such as menus. and those are all ar objects. i mean like this video but without marker based https://www.youtube.com/watch?v=kEflBg8Ifzs
How to create cube as virtual button
Hello,
I think it should work but it could not be tested in the unity editor play mode, unfortunately. You need to test it on the HoloLens device.
The first point is the test the examples on the HoloLens device to see if you can port it to the device and if it works.
The further steps could then to change the behavior as intended step by step.
BR
Vuforia Engine Support
How to create cube as virtual button
Hi,
I've tried HoloLens samples Vuforia Hololens but when I run the main menu I can't click to go to another scene. what I want to do is turn this cube into an ar object sorry I'm still confused about how to use it because I'm a beginner at Vuforia.
Attachment | Size |
---|---|
![]() | 210.08 KB |
![]() | 354.15 KB |
How to create cube as virtual button
Hi,
possibly you can can check the HoloLens samples Vuforia Hololens 1+2 Sample for Unity 2020.2 and later or Vuforia Hololens 1+2 Sample for Unity 2019.4 LTS depending on the used Unity version.
You can see there a start menu scene 1-Menu in the folder Assets/SamplesResources/scenes
There we have implementation of the 3d buttons which could be clicked /tap so to select and open the next scene.
Additionally you can review the post How to call a scene in unity using virtual buttons
BR
Vuforia Engine Support
Attachment | Size |
---|---|
![]() | 54.1 KB |
okay i'll try it, thank you so much for helping me