Google Daydream: Virtual Reality Development with Unity 3D 2018.2 | Circuit Stream | Skillshare

Google Daydream: Virtual Reality Development with Unity 3D 2018.2

Circuit Stream, Learn to Create VR and AR Apps!

Play Speed
  • 0.5x
  • 1x (Normal)
  • 1.25x
  • 1.5x
  • 2x
8 Lessons (17m)
    • 1. What You'll Build

      1:04
    • 2. Enabling Developer Mode on Your Phone

      0:45
    • 3. Unity Settings

      1:54
    • 4. Setting Up Unity for Mobile Development

      2:12
    • 5. Linking Tools to Unity Editor

      2:52
    • 6. Linking Tools to Unity Editor (Part 2)

      2:44
    • 7. Creating Your Unity Scene

      2:44
    • 8. Building Your Scene to Your Phone

      2:31

About This Class

The Complete Virtual and Augmented Reality Course series is a hands-on course that teaches you how to create projects on over seven major headsets and devices with Unity 3D 2018.2.

By the end of this section, you will have made a base project that's ready to launch on Google Daydream.


What Will I Learn?

  • Learn the tools and technologies used by professionals working in VR and AR
  • Gain the skills to quickly and confidently create your own applications using the industry's leading tools
  • How to strategically move into a career in the VR/AR field
  • Fundamentals of C# programming



Requirements

  • Mac or Windows laptop or desktop computer
  • An iPhone or Android
  • No previous experience required
  • Optional: VR and AR headset or device


Description

We start super simple.

No prior experience of Unity or coding required.

Circuit Stream welcomes the complete beginner.

We'll teach you the industry's best VR and AR design and development principles.

Our courses start with specific skills and all lessons are project based.

This means you'll immediately begin learning the tools and technologies used by professionals working in VR and AR.

You won't spend hours learning knowledge that doesn't apply.

You'll find instructors that explain concepts clearly, along with examples and additional resources.


If you want to:

  • Learn from experts in VR and AR
  • Gain the skills to quickly and confidently create your own applications using the industry's leading tools
  • Strategically move into a career in the VR/AR field

Circuit Stream will be the best VR and AR course for you.

Dive in now to learn the skills in Unity you need to create VR and AR!


Who is the target audience?

  • Circuit Stream welcomes the complete beginner. We'll teach you the industry's best VR and AR design and development principles.

Transcripts

1. What You'll Build: in this section, we're gonna be going over how to develop applications for the Google Dadri. We'll be using the pixel, but you can use any daydream compatible device. So the first thing you'll learn is how to implement the gyroscope on the day Jim controller followed by the touch pad here and then the APA Let me go over this in unity. I'm gonna put on the daydream controller and I'm going to hit play on the Unity editor. We'll go over the gyroscope and you're gonna learn how toe match an item in the immunity to the controller itself. Then second thing will be using the thruster, which will be implemented by you using the touch pad. You'll learn how toe add force to this object with the touch pad. Next is the app buttons. You'll learn how to Instead, she ate objects using these red button or the APP button on the day Jim controller. In this case, just drop some bombs. So those are the three main concepts will go over in this section 2. Enabling Developer Mode on Your Phone: in this section. We're going to get your phone into develop remote so you can launch and build your application straight on to your phone from Unity. First thing. We're going to go into settings and look for about phone. Once you're in that section, you'll see at the bottom build number. You want to tap that seven times until it says you're now a developer, you go back. You should see developer options now appear in your system tray. Click Developer options and you're looking for USB debugging. Find that in your settings and just activate that now your phone is ready for mobile development. 3. Unity Settings: Now we're going to get unity set up so you can start developing more bell applications for it. Also going to get it ready for a Google daydream. Now, the first thing I'm launching, Unity and I'm gonna create a new project. I'm just gonna call it Google Daydream. I wanna make sure three d is selected. You create this project with the magic of editing we're gonna skip past this loading section. Now that we have unity launched, Finally, we're going to go to file the top left gonna go build settings and look for Android. Click that and switch the platform. Now we're going to go over to player settings and look for xar settings. Gonna make sure virtual reality supported is checked off and we're gonna add Daydream to it next. We want a name that is unique. So default company name. I'm just gonna go with Circuit Stream and the product name Google, Daydream on a copy and paste that into other settings. Now, in other settings, we have what's called a package name. This is another word for this is bundle identifier. We need this to make sure app actually works is gonna be some problems. This is mainly used so that you can publish on the app store on the play store. Sorry. Now, lastly, we're gonna go over toe edit and look for project settings and editor. Once we're there, you'll see at the top left next to device. When I make sure and click any android device. Now, you got unity ready. Next thing we're gonna do is get all the packages from Google and Android so we can set up the environment more for now. We're good to go. 4. Setting Up Unity for Mobile Development: Now that you have unity set up, what we're going to do next is download to tools that you'll need to develop for mobile applications. Now, tool number one will be the android sdk and tool number two will be the Java development kit. So first, let's download the android sdk. But I'm going to do is I'm gonna go up to edit in my unity editor and I'm gonna look for external tools. Now I'm going to scroll down and look for the word android. Now the list off three things sdk J d k, and indicate there should be blank for you as well. Now, next to it, you'll see the word browse and download now next to SDK, I'm gonna click the download button and it will take me to the most up to date link for ah Android development. So here's the first button it shows you left Click Download android again. You're gonna have to agree to this term. Otherwise, I can't help you pass this point. And here it is, downloading and installing android See at the bottom left of your browser. So when you're download is complete, you should see it in your downloads folder in my list. It's just downloads, and I've created a sub folder called The Big Three. Now number two. What you need to do is download the Java development kit. So if you go back to unity and you look in your editor, the prompt that's should still be there. Under edit preferences and external tools, we're gonna see the J. D. K. And next to it, we're gonna look for the download button again. When we click that, like before, it's going to take you to the most up to date. Like for your downloads, we're gonna see here the J. D. K download. But you know, left. Click on that and you'll see a list of downloads. In this case is the time of this video. It's 9.0 point one. The number may be different when you're using this link. Now you wanna click, accept license agreement and then look for your operating systems. In my case, it's Windows, so I'm going to left click on the J. D k ben dot dxy, and it will start the download as well. Now, those are the two tools you'll need to have developed for mobile applications and unity 5. Linking Tools to Unity Editor: Now that your downloads air finished, we're going to just start the installation process for the Android Studio and Java Development Kit. So first, let's install Android Studio, my Downloads folder and then click on Android Studio. Set a file and she's going to launch Android Studios installation window here. So, do you want to allow this app to make changes? Yes, now is just launching. Here it is. Welcome to Android Studio, the set up problem We hit next, and then you can choose to include the virtual device if you want or not. I'm going to keep it on here and click next, and a file directory path is then showed. So pick a file location that you're comfortable with. I'm going to leave it as the default will be easier to find later, we'll click. Well, I'm just going to copy this for our benefit. When you click next and I'm going to click Install And now here's the installation process extracting files and we'll have them in a moment. I'll be right back with you now that your installation is complete. Just gonna hit next and won't start Android studio. Just uncheck that box and click finish. There you have it. Android studio is now installed. Next step two, we need to install the Java development kit, so I'm going back to that file as well in the same directory. Double click and it should show you the Java Development Kit installation problem. So click yes to allow changes and not wait for the next problem. Right? So there is the prompt just going to click next on the set up and again, it's asking for a file directory when you can click change. If you want. I'm going again. I'm going to leave it at the default so it's easier to find later going to click next. And here it is, updating the component registration. Give it a moment to install. So now the progress in the installation is complete. Comes with the customs set up. Do you want to change their directory again? Gonna leave it at default and it's gonna ask you, Do you want to enable the Java content in the browser? This is up to you. I'm going to leave a checked when I click next, and the main installation is going to happen now. Now that your installation is complete, just click close. And now you're Java development kit is ready. And so is your android studio to be linked in your unity editor. 6. Linking Tools to Unity Editor (Part 2): now that you have Android studio in the Java Development Kit installed, which is going to launch Android Studio. So I'm just going to search for it in my search bar here and left clicking Android Studio and it's launching now. First thing you'll see is that the missing sdk prom We're just going to click next to set up Android studio and you'll see this is important. You'll see the Android SdK location. This. You may as well copy and paste it now on a note pad, so I'm going to launch my notes, launch notes and on nope. Adam is going to pace that location for later Now, if you choose to change this location, that's fine. And then save that one as well. This is important. So now hitting next you'll see a list of things that will be installed just going to click finish. And it's just going to download some components. Just gonna click finish and the Android Project Launch is going to show up. You just close this now and go back into unity. Now that we have at the sdk ready, we can start linking both the sdk and the J. D. K to unity. So Step one, let's finish the SD, Kate. We're going to edit. We're going to preferences when to click on external tools and then scroll down and see that empty path for the sdk. Now that we're finally downloaded and installed, we're just gonna click, browse and look for that sdk. Now, remember I said write down or copy paste that sdk location. This is where we need it. So I'm going to go find where I downloaded it. Just gonna control C and Control V that file path in this director here. So, bam! That's the location the sdk will be in. And all I have to do now is just click select folder there has found the correct file path . Next, what I want to do is I'm gonna click browse on the JD kick. That's step two. We're going to link the Java development kit, and when I click open, you're going to look for this file path Here, C program files java J D. K. So see, Dr Program files Java and then the JD cake. J d k. You should see a J R E father. That's fine. You can leave that look just going to select the folder. Now, if the select they're going to like that, you're good to go. And that that's the completion of Step two. You've linked the Janie Kay in the yesterday to unity. You're ready to move on. 7. Creating Your Unity Scene: Now that you're unity editors ready for mobile development, we can move on and develop for Google Dadri. Let's get that ready. First thing we want to do is download the unity package. After that, Step two will be to import that into unity. And finally, Step three will load a demo scene and try it out for ourselves. So Step one launched the Google Chrome browser. Whatever browser you have, it's fine. And let's search for Google. Daydream STK. The first link in the description will also be provided. It's choose your development environment. We'll scroll down and look for unity and then we'll see the getting started with Google VR in Unity on Android one. Scroll down and look for release pages. So here it is, Stallard, the Google VR. And let's just click on that one there. Now here's the package. You should see it on Get hub when you click on downloading this VR for version 1.12 at the time of this video, that is a version available. It may be later when you're downloading it yourself. So there is the package downloading in. Let's show it in our folder. So here it is I have two copies there. This is when we have and what we want to do now is go to step two. Importing it into unity will go back to Unity. And we're in our assets folder. I'm going to right click and look for import package. I'm gonna go to Custom Package and now we're gonna search where we downloaded that Google VRs TK So we remember it was in my downloads folder, so I'm gonna go to downloads that usually has a short cut for most computers. And there it is. Google VR for unity. I'm just gonna click that and then click on open. Now it's preparing the package and is decompressing it. And a list on a prompted coat. Come up with a list of things inside the package through an import. Everything and get it ready. Here we are. As it's almost done, you'll see it. Asset. You'll see a folder appear in your assets folder and that will be that will contain everything that the rule J dream provides. Now that Google VR has finished importing, we can see the folders appeared in her Assets folder left, click on that one, and then you can see a list of boulders inside. We're gonna look for demos. So it's the 1st 1 left here, left Click, and then I'm gonna scroll over here to Sean's gonna click that one. And there is four different examples of Google Daydream in Action. Now, in the next video, we'll go into Step three. Where will launch it and we'll test it on your phone. 8. Building Your Scene to Your Phone: now that you have unity ready, let's get one of the scenes and test out the devils. So I'm gonna double click the Google VR folder in the bottom of the screen. The assets tab. Next. I'm gonna look for demos. It's the 1st 1 here, so I'm going to double click the demos holder. And now you're gonna look for the scene's folder. Same place further to the right. In the middle, you'll see scenes and your double click that folder and will A you'll see four scenes to choose from in your assets folder. Now we're gonna test hello? VR its simple launch. That ready to double click that Hello VR file man launched the one that I have opened. Currently we're gonna test this one out in our Google Dadri. First, grab your Google Daydream compatible device and plug it into your computer. Yes, I've had the wire in the phone ready. It was gonna unlock the phone and allow USB debugging. Okay, Now is giving you the prompt to keep your phone in your device. Hold it up like this. And now you can see that there is the basic injured instant preview scene that's available I'm gonna hit play in the Google in the Unity editor at the top of the screen, you'll see that play button. You gonna click that one real quick and well, uh, so first thing I'm gonna do is make sure that the Google Day Jim controllers on turn it on by holding the home button. It also re centers your view. And well, so now we know it's working. Controller is functioning as well. When I put this in my day dream and test it out, this is definitely easier to do without having it on your head first. For sure. Here you go. Oh, yeah, that looks nice. Centred it. Pretty good stuff. All right, here we are. There was interaction. I can click on that guy and it's disappeared. It's over here. There you go. Change shape. That's a mini little game that Google has made for you. Now that you have that set up who tested the demo seed, you're now ready to make applications for the Google Daydream