Hey Everyone, here's a link to some audio resources, as well as the project that I was working from:
https://drive.google.com/open?id=0B-K7b5j-kvt1Rm93c1pvLXQyZEE
The Unity project was made in 2017.2, so it probably won't work for everyone.
Here are a few links to Audio Spatializer plug ins. Each are done a little differently; I'm fond of Steam Audio for VR applications.
https://valvesoftware.github.io/steam-audio/index.html
https://developer.oculus.com/
https://developers.google.com/vr/concepts/spatial-audio
I just realized that I didn't cover Ambisonics, which is another interesting component of 3D audio. Ambisonics work a bit differently then normal audio sources, simulating a 3D sound field, rather than broadcasting the same audio in all directions. Unfortunately for mobile applications, ambisonic file sizes are quite large. I encourage you to check out some of the examples on the Oculus website.
Also, in order to pause/resume audio in Vuforia, I added the following lines to OnTrackingFound() in the DefaultTrackableEventHandler script...
AudioSource aSource = GetComponentInChildren<AudioSource>();
if (aSource.time >= 0.1f) {
aSource.UnPause();
} else {
aSource.Play();
}
And the following lines to OnTrackingLost():
AudioSource aSource = GetComponentInChildren<AudioSource>();
aSource.Pause();
Monday, October 23, 2017
Sunday, October 22, 2017
Trackable Monitor
This is a little piece of code that makes it easier to write code that responds to when your targets go in and out of view.
Attach it to your TrackedImage game objects. To write code that responds to the target appearing/disappearing, just include the following two functions in your MonoBehaviour.
void OnTrackingFound() {
void OnTrackingLost() {
You can download it here
Attach it to your TrackedImage game objects. To write code that responds to the target appearing/disappearing, just include the following two functions in your MonoBehaviour.
void OnTrackingFound() {
//code that runs when the target appears goes here
}void OnTrackingLost() {
//code that runs when the target disappears goes here
}You can download it here
Extended Tracking & Simultaneous Target Tracking
Extended Tracking
Extended tracking allows you to continue displaying the augment from a target, even if the target has been eclipsed from view.
To enable it, you just need to select the option "Enable Extended Tracking" on your ImageTarget prefab.
Be aware that extended tracking is not perfect. Once the target leaves the view of the camera, you may notice some instability in your augment like jittering or sudden changing angle.
You can find more information about extending tracking in the Vuforia documentation.
Tracking multiple targets simultaneously
As with extended tracking, enabling Vuforia to track multiple targets is a matter of changing a setting.
Select the AR Camera prefab in your scene, and click on the "Open Vuforia configuration" button.
This will take you to configuration screen where you entered your license key and setup your database of targets.
Underneath the license key, there is a text field called "Max Simultaneous Tracked Images". You can change the number of simultaneously tracked targets here.
Vuforia can track up to a maximum of 5 targets at the same time. Be aware that each target that you track comes with a performance cost, so make sure to test your experience on all devices you will be using for demoing.
More information can be found in the Targets section of the documentation.
Extended tracking allows you to continue displaying the augment from a target, even if the target has been eclipsed from view.
To enable it, you just need to select the option "Enable Extended Tracking" on your ImageTarget prefab.
Be aware that extended tracking is not perfect. Once the target leaves the view of the camera, you may notice some instability in your augment like jittering or sudden changing angle.
You can find more information about extending tracking in the Vuforia documentation.
Tracking multiple targets simultaneously
As with extended tracking, enabling Vuforia to track multiple targets is a matter of changing a setting.
Select the AR Camera prefab in your scene, and click on the "Open Vuforia configuration" button.
This will take you to configuration screen where you entered your license key and setup your database of targets.
Underneath the license key, there is a text field called "Max Simultaneous Tracked Images". You can change the number of simultaneously tracked targets here.
Vuforia can track up to a maximum of 5 targets at the same time. Be aware that each target that you track comes with a performance cost, so make sure to test your experience on all devices you will be using for demoing.
More information can be found in the Targets section of the documentation.
Tuesday, October 10, 2017
Using Git with Unity
For those that haven't used Git and Unity together before, this should help walk you through the basics.
https://stackoverflow.com/questions/18225126/how-to-use-git-for-unity3d-source-control
I strongly recommend doing this as coordinating in a group is going to be much easier using git.
Thanks to Regina for sending this link to me.
https://stackoverflow.com/questions/18225126/how-to-use-git-for-unity3d-source-control
I strongly recommend doing this as coordinating in a group is going to be much easier using git.
Thanks to Regina for sending this link to me.
Tuesday, October 3, 2017
Setting up Unity to load onto the Android Tablets.
I've put together a tutorial that runs you through everything you need to do to get your Unity project running on the Android tablets. Let me know if you run into an issues with these instructions.
https://docs.google.com/document/d/1U2ztwNk1RHEiWRoUMhPtz10cyoiOdVQApQSOQQ6dsII/edit?usp=sharing
To get a tablet, talk to Brendan Byrne in room 839 (I misspoke and said 845 before). Ask for one of the Android tablets and a micro USB cable. He is usually in his office from 9am-5pm.
https://docs.google.com/document/d/1U2ztwNk1RHEiWRoUMhPtz10cyoiOdVQApQSOQQ6dsII/edit?usp=sharing
To get a tablet, talk to Brendan Byrne in room 839 (I misspoke and said 845 before). Ask for one of the Android tablets and a micro USB cable. He is usually in his office from 9am-5pm.
Sunday, October 1, 2017
Setting up a Vuforia account
Begin by going to https://developer.vuforia.com
In the top right corner, you will see an option to register for an account. Do so.
You will be asked to give a company name. You have to do this, but it doesn't matter what you provide. You can either make one up, use your personal name, or put in NYU. Anything should work.
Once you have setup your account and responded to their confirmation email. You will be logged into your Vuforia Developer Portal account.
On that page, click the "Downloads" tab, and select "Download Unity Extension (legacy)"
In the top right corner, you will see an option to register for an account. Do so.
You will be asked to give a company name. You have to do this, but it doesn't matter what you provide. You can either make one up, use your personal name, or put in NYU. Anything should work.
Once you have setup your account and responded to their confirmation email. You will be logged into your Vuforia Developer Portal account.
On that page, click the "Downloads" tab, and select "Download Unity Extension (legacy)"
Subscribe to:
Posts (Atom)