How to create cube as virtual button

0 votes
asked Jul 29, 2021 by wendyday (120 points)

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, without marker based. pls answer me, thanks!

1 Answer

0 votes
answered Jul 29, 2021 by kenn (17,610 points)
Are you using Unity? If yes, try to throw AR away from your head. How do you create a 3D button in Unity?
commented Jul 29, 2021 by wendyday (120 points)
I'm using Unity 3D. I want to make a cube as a button, when I press the cube it can move to another scene. like this video https://youtu.be/kEflBg8Ifzs , but without marker based
commented Jul 29, 2021 by kenn (17,610 points)
edited Jul 29, 2021 by kenn
There is no such feature in EasyAR if you mean the same effect in the video. But if you really want to do that, a simple image comparison shader would do the trick.
commented Jul 29, 2021 by wendyday (120 points)
can i use virtual button with markerless method?, i've been looking for virtual button tutorial using EasyAR but i can't find it
commented Jul 29, 2021 by kenn (17,610 points)
There is no "virtual button" or similar feature in the EasyAR language. Could you describe what are you going to do directly? Maybe what you need is not virtual button.
commented Jul 30, 2021 by wendyday (120 points)
I want to create an menu like a 2d menu but I want to make it 3d or the menu as an ar object. what makes me confused is how to turn a cube into a button so that the cube can be pressed and then it will move to another page or another scene
commented Jul 30, 2021 by kenn (17,610 points)
I am also confused. Your description does not match the video.

Do you want to press a cube on the touchscreen (from your description) or do you want to press something in the real world (like in the video, no cube is pressed)?
commented Jul 30, 2021 by wendyday (120 points)
yes I want to press something in the real world like in that video, in the video the white button can be pressed but not the touchscreen, I want to make it like that. sorry if it makes you confused
commented Jul 30, 2021 by kenn (17,610 points)
OK. I see. Can you be more specific in your purpose description? I mean, not describe it in technique way. Or in other words, what is your business requirement?
commented Jul 30, 2021 by wendyday (120 points)
I want to make an information menu, in that menu it contains information about my school and I also put videos on other pages or scene, in other words it's a 3d ar menu
like this for example
https://drive.google.com/file/d/1SiKU-RVphh074eUrjDarfyUOMKtpRdCu/view?usp=sharing
commented Jul 31, 2021 by wendyday (120 points)
Hii @ kenn can u give me a solution for my problem? Thank you
commented Aug 1, 2021 by kenn (17,610 points)
edited Aug 1, 2021 by kenn
It would be easier to use devices like Hololens to do this. You can make it happen if you have both hand tracking and device motion tracking on a device. There are reasons mobile phones do not magically turn into Hololens.

This is not impossible to happen on a phone, but is not what EasyAR can do right now.

And it looks like you are not building a commercial project, so you have a lot of possibilities and few limitations. Look beyond AR SDKs.
commented Aug 3, 2021 by wendyday (120 points)

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

Welcome to EasyAR SDK Q&A, where you can ask questions and receive answers from other members of the community.
...