Augmented Reality Tutorial No. 19: Unity3D and Vuforia for Virtual Buttons – Changing 3D Models

Augmented Reality Virtual Buttons

In this Augmented Reality Virtual Buttons tutorial Unity3d and Vuforia are used. These Virtual Buttons changes 3D character models.

Download # Unity3D 32bit (download and install it, if you don’t have it already) (*.exe file)

Unity3D is also available to download from here

Download # Download and Import Unity3D Extension (*.unitypackage file)

Unity3D extension is also available to download from here

Download # Print this Logo (Euforia of Beauty) to Augment the Content and Create the Tracker (*.jpg file)

Download # Euforiaaaaaaaaaa tracker  (*.unitypackage file)

Download # Download script in C# (for activating buttons, effect and so on)  (*.cs file)

Download # Download Whole Project files of VirtualButtons (the result to test it)  (*.rar file)

Tags: , , ,

43 Responses

  1. Thanks a ton for all these knowledge sharing and I have become a serious follower of your tutorials and has also subscribed your youtube channel. These tutorials are great assets for people like me who are getting in to AR field.

    • Thanks for your reply, I really need a tutorial on how to use vuforia and cardboard SDK.

      The app would scan the image target to track the AR world, and the user would be giving a button that when looked at will teleport the user into the VR world and Vice verser. just like the vuforia sample.

      Thanks,
      would be expecting the tutorial soon.

  2. Hi
    Thank you so much… this is very useful to beginners like me.
    I have a one question.
    I tried this with two different object and tried on android device. The issue is my both objects are visualize from starting.. Buttons didnt work…

    • Did you put virtual buttons on textured tracking object? If not, I suggest to make it so. Don’t put virtual buttons on plane without any textures. I hope that helps.

  3. Yeah!! already buttons are on Textured area..

    But i received at the time of program run. It couldnt find the path of ICSharpCode.SharpZipLib.dll to Unzip the file. I couldn’t understood. I am not programming guy…

    Can you help me?

    Is Csharp is language supports Andorid?
    Sorry it is difficult to me to understand script and do something on it..

  4. I know this might a stupid question but I noticed when Opening your Project that I downloaded In this site unity immediately open the “Game” tab and the “Scene” tab is missing I was wandering on how did you do that. Thank you so much on this tutorial reaLly learned a Lot on this experience.

  5. Hi,
    I downloaded the script file and loaded it directly in my scene. It didn’t work. Both the buttons and models appear as soon as i enter the play mode.

    Later i also tried changing the names of buttons and models according to what I have named them on my scene. It now shows shows me an error to fix the compiler.

    Could you please guide what all attributes are to be changed before loading the script.

    Thanks.

  6. Hi,

    PLEASE HELP ME…

    I am facing issues creating virtual buttons. I’ve followed this video. I am mentioning one video below to illustrate my issues..

    Link : https://www.youtube.com/watch?v=mxD0PiQ28_o

    Note:

    1. Virtual buttons is not working unless i am focus on to the button.
    2. With out touching button it changing model base on my camera movements .
    3. I changed max simultaneous tracked images 1 to 4 (each separate build in my Android mobile) .
    4. Virtual buttons Sensitivity setting also changed from HIGH to LOW (each separate build in my Android mobile).

    If you want i will send my Unity package file link also.

    Thanks
    ESWAR
    Email: eswarkumar.borra@gmail.com

  7. Assets/VirtualButtonEventHandler.cs(5,14): error CS0101: The namespace `global::’ already contains a definition for `VirtualButtonEventHandler’ What about this Error……………?

  8. Can we click virtual button using mouse pointer instead of touching by hand, if yes please suggest me the way. Thank you.

  9. Hallo I have just sent a comment but I cant see it here?
    I am following your Blog it is fantastic
    I am making an Augmented Reality app, I want a help in my code please
    how to make a VirtualButton When it pressed It will play specific animation on the charachter
    I want to make 3 buttons with each one there is different animation.
    thanks in advance.

  10. Hai.. Is there any tutorial trying to implement a way to produce a sound such as AR music instrument when a user put his finger on the virtual button. Do you think that this It is possible to do this ? Tq so much.

    • Hello. Of course, that’s possible, nothing fancy here. There are some with 3D models, so based on that you can adapt it to your needs.

  11. Hi ,

    I have tried to follow this tutorial . Everything worked fine except C# script . I am getting “The type or namespace name ‘VirtualButtonAbstractBehaviour’ could not be found (are you missing a using directive or an assembly reference?)” error in my script .
    Do I need to add any dlls exclusively ?