Topic locked

How to create cube as virtual button

July 17, 2021 - 8:46am #1

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!

How to create cube as virtual button

August 2, 2021 - 10:25pm #10

okay i'll try it, thank you so much for helping me

How to create cube as virtual button

August 2, 2021 - 2:11pm #9

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

July 31, 2021 - 9:03am #8

thank you so much for helping me. but i want to ask can the virtual button be used in the ground plane?

How to create cube as virtual button

July 29, 2021 - 12:39pm #7

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

July 29, 2021 - 9:00am #6

hi!!!

please help me because i'm a beginner vuforia:". thank you

How to create cube as virtual button

July 24, 2021 - 11:52am #5

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

July 22, 2021 - 4:29am #4

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

July 21, 2021 - 2:19pm #3

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.

AttachmentSize
Image icon tesunity.png210.08 KB
Image icon usr.png354.15 KB

How to create cube as virtual button

July 20, 2021 - 4:12am #2

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

AttachmentSize
Image icon pic2021-07-20_13-00-47.jpg54.1 KB
Topic locked