Final – AR Project

Technology

Unity 3D

Objective

To create an informational MR which scans an artwork that will display additional info and integrate the project with a controller.

Experiment

The experiment for this project is pretty simple as it utilizes the same exact process as creating a normal AR Project. However, it should be noted that to create the VR Glasses/MR view, users will have to change the AR Camera’s Digital Eyewear setting of the project to “Phone + Viewer”.

To integrate the project with a controller, users will have to connect the controller to their device before hand. In this experiment, a universal controller was utilized. After doing so, users should check the value of each button. For instance, button A = joystick number 0. Although there is a way to check it simultaneously, I decided to check it each value manually to avoid hassle. To add and set its value users will have to add a button setting through Project Settings > Input. Below is a sample of the added value setting.

To invoke a command using the project setting, users will have to attach a script to an empty game object. Below is the script.

Then, users will have to set the value of the public game object stated in the script. Below is a sample of it.

That concludes the end of the experiment. Below is its final outcome.

Challenge

The challenge faced in this project was mainly on the controller integration part. It was quite difficult to find an appropriate tutorial to learn about said things. However, in the end, the experiment worked.

Conclusion

This will be the final outcome of the “informational” part of the project. Although there may be some minor future changes in the wording, the technical aspect is completed.

Changing Scenes in Unity

Objective

The objective of this experiment is to evoke the Change Scene function in Unity by pressing a button.

Experiment

In this experiment, I have created two simple scenes containing of one sphere. In scene “Blue,” the sphere color is blue, and in scene “Red” the sphere’s color is red. Below are the images of the scene.

Blue Scene
Red Scene

I also created a button scene for the UI.

After creating all scenes, now we have to evoke the ChangeScene function using the OnClick event in Unity.

Firstly, a script have to be created. In this case, I named the file “MenuScript.” Through this script, we are able to load the scenes placed on the OnClick event.

Then, attach the script to the main camera. The script may be attached to any object as long as it is always available in each scene. After that, link the OnClick event to the main camera on each button (Refer to the image below).

Once everything is set up, run the project. Below is the final result of the experiment.

Challenge

There are no challenges found in this experiment

Conclusion

Although this experiment is extremely simple and still needs to be developed more, it will be beneficial to the end product.