How To Make a Quest 3 Mixed Reality Game - Unity Tutorial

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
okay so look at what just arrived at my door meta new VR headset the quest 3 it is a little bit thinner than Quest 2 as more resolution but the best feature to me is definitely the color path through so in this tutorial we will learn how to use it to create a first mix rity application using Quest 3 now lucky for you there will be two more tutorial about mix Ry and Quest 3 here on this YouTube channel but at the end I will also release an exclusive tutorial on my patreon where we will make a nixar game from scratch using all of the technique we learn so if you want to support my work and get access to exclusive content join us Link in the description below a big shout out also to the sponsor of this video Wonderland engine Wonderland engine is a game engine that focus on making both augmented and virtual reality game on the web it is free to download easy to use and I also made a tutorial about it on this channel to get you started you can of course find it in the description below so big shout out to them for their huge support and without further Ado let's get started with the tutorial okay so to make a qu 3 mix ready game the first thing we need to do is of course to create the project in unity so let's go inside the unity Hub and now the first thing that you want to make sure is that you have an install of unity which support Android so for example in my case I've got here 20223 which has both Android and Windows for its platform otherwise you can click here to add modules and you can here add the Android build support module now of course you can use any version of unity above 2021 so feel free to choose the one that you like now anyway let's go to project and let's create a new project by clicking on new project there you go make sure that the version of unity you want to use is check at the top here and we can choose here a certain template now as you can see there is the VR template over there but to show you every step of the way we will we'll do the VR setup ourselves so here make sure to select 3D core we can give a certain name like CEST 3xr app there you go and we can click on create project okay here it is beautiful D is now finally open and the first thing you want to do inside un is to enable XR in this project for this we need to go to edit project settings and down below we can find here the XR plug-in management if we select it we can then click on install XR plugin management there you go now because this version of unity has both PC and Android as you can see we have a tab here for PC and another for Android but now to make sure that the quest 3 is working here on the unity editor but as well when we build the game we need to enable Oculus here for the plug-in providers and do the same here on Android okay now that we have Oculus seed for both PC and Android we can close this windows and here is the important thing to know about The Next Step well the important thing to know is that we have two road to go from here one with the Oculus integration and one using the unity XR interaction tool kit they both have different benefits Oculus integration integrates more easily some specific feature of the quest and unity Exar interaction toolkit is more crossplatform and cross device now if you want more information you can watch this video I made but in our case we are going to use Tada the Ulus integration right here that's you can find on the unity asset store Page now to add it to our project we simply need to click on add to my asset and then you should see this open in unity we can click on open with the unity editor okay and here you go as you can see we can see now that the Oculus integration has opened with the package manager now make sure that the version is above 57 right now in my case I've already downloaded on this computer but otherwise you need to click on the download button over there and after it is downloaded you can directly import it inside this project by clicking here on import beautiful now we can have a look at everything that this package contain we can simply now click on import again okay now if the package ask you anything just say yes to it yes we want to send usage statistic yes we want to show the assets yes we want to clean up yes we want to clean up package yes we want to restart yes we want to upgrade yes we want to restart and there you go after everything the Oculus integration package is now inside our project so we can just close the package manager and get started on our game now just before getting started we want to make sure that all of the project settings are ready to deploy into the quest 3 but there is a great tool made by Oculus to know if we have currently set up the project for the quest 3 so to to open it we need to go to Oculus tools and here the project setup tools and there it is now make sure to apply all of the thing that he wants on both PC and Android this is what I'm going to do now there it is as you can see Oculus is happy with all the settings on PC now let's do the same for Android beautiful now the project is finally set up for the quest three on both PC and Android now one last thing that I want to do before we can finally get started on our scene right there is to go to file build setting and as you can see by default the Windows Mac Linux platform is selected but we want it to be the Android so let's select it and click on switch platform okay here it is as you can see the project now is switched to the platform Android we can close this windows and get started finally after all of this on our project so first thing we want to replace here the main camera by the ovar camera rck so let's search here on project for oara rig there we go we can select the second one so this one and we can drag it in our hierarchy beautiful now I want to add some hands and some controllers to the players so for this we can instead of OVR camera B search for the OVR controller preab perfect now let's navigate under here the left and Ure and the right and Ure and drag the OVR controller prefab under the left controller andure and the right controller andure there you go now for the OVR controller prefab under the right end we can select the controller to be R touch and for the OVR controller prefab under the Left End select the L touch beautiful now we can do the same but this time for not controllers but end tracking so for this let's search for the OVR n prefab and we can drag one directly under the left hand and Shore this time and another one under the right and and Shore so as you can see by default the OVR and prefab is already set for the end left on all of these components so let's let's do the same this time for the right end and instead set hand right on the OVR end hand right on the OVR skon and hand right on the OVR mesh beautiful now we have a camera rig that is set up with both controllers and end tracking but we are making a mix rity game so we of course need to add the path through features so for this let's right click in thearchy create empty and call this one path through beautiful I'm going to reset this component and add a path through layer so over path through layer right there we want to set the placement not to overlay but to underlay and there you go with this component we should see a path through but we need to do some settings on the ofar camera rig as well now the first one is to go under the center ey inure and because we can see the real world we don't want to see the sky box so here I'm going to uh set the clear flag to solid color and not Sky Box and for the background we can select it to be this black color okay but that's not it now we have the settings correctly done for the camera but we need to do it as well for the OVR manager that we can find here on the OVR camera rig now as you can see the first thing we want to make sure is that qu 3 is supported so make sure to enable it over there finally we can go down below and for the end tracking support we can select it to both controller and hands and and then down below as you can see we have a path through support that we can set to support it there you go and here make sure as well to set the inside path through enable path through to unable right there okay so now to test the application I'm simply going to right click go to 3D object and create a very basic Cube we can reset it at 0 0 again and place it a bit in front so that as you can see here the camera can see it I will do also a little rotation on the cube and maybe we can scale it to something like 20 cm oh and it seems a bit too far away right now not that I have scale it so let me just set the pivot to Global and try to approach it a bit better like this okay it should be better okay here it is now it is finally time to test our game now this is a bit the same as for the quest two we can test directly the quest three game using the unity editor for this you need to enable the Oculus link now the first step for enabling the Oculus link is to download here the Oculus desktop application and then plug your headset with a USBC cable and you should see here the qu 3 device appearing if you do so correctly and that you go on the quest three and enable Oculus link now there is a hidden setting to enable path through that you can find in parameters better and as you can see here no it is in French in my case but you should see here path through to enable via Oculus link that you need to enable you can also enable the other thing as well which are for the eye tracking and body tracking but anyway if you manage to correctly set up the Oculus thing for your quest free you can test the quest fre application directly here on the unity editor so let's find out if this work by clicking on play and there it is as you can see it is working I have hand tracking which is already working as you can see from well the black hands that are following my fingers but also if I grab my controllers TDA it switch and correctly display the quest three controllers and I can have a look at the cube in front of me but as you can see from your point of view everything is black but it is working on the qu 3 I promise it's just that by default the qu 3 is showing inside my headset but it's not showing on the unity editor now you will have to believe me on this one but of course for the the one that are not believing me that this is working I will have to of course build the application not here on Unity but directly to the meta Quest 3 now to build the project to Quest fre we need to go to file build settings and here make sure that the current scene is added in the scene in build by clicking on ADD open scene and the next thing is of course to click on build and run but wait before doing so we can export a game directly to the quest 3 only if the quest 3 is on developer mode and that it is currently plugged to your PC with a USBC cable now to set the qu 3 in developer mode you can do so using the Oculus mobile app by selecting your device going into the settings and enabling from there the developer mode and if you have successfully managed to do so you should have a Windows on your quest 3 asking you to share some information with the PC if you trust it now anyway if you succeed to make all of this we simply need to click on build and run you can give a name I'm going to give the name test and after a few second Unity should find your quest three that is plugged and build the game to your device and there you go as you can see after waiting a little bit we have launched the application directly on the quest and the Beautiful cube is in front of me everything is working well and this mean that now we have successfully managed to make a qu three application with path through but I have so much more thing to share with you guys so make sure to subscribe to not miss the two next episode that will be here on YouTube before finishing this video make sure to check out Wonderland engine the sponsor of this video which by the way already support Quest 3 and have their own tool to recreate the same thing for web VR you can find the tutorial I made about Wonderland engine in the description below thank you for watching and see you soon bye-bye [Music]
Info
Channel: Valem Tutorials
Views: 74,755
Rating: undefined out of 5
Keywords: valem, valem vr, valem tutorials, virtual reality, VR, xr, vr tutorial for beginners, vr tutorial unity, unity, unity vr, unity vr tutorial, basic, vr dev, vr development, beginner xr tutorial, how to make a vr game, vr basics tutorial, vr tutorial beginner, vr unity beginner, quest 3 tutorial unity, quest 3 unity, quest 3 mixed reality, quest 3 passthrough tutorial, unity quest 3, quest 3 development, how to make quest 3 game, quest 3 unity tutorial
Id: D8_vdJG0UZ8
Channel Id: undefined
Length: 13min 8sec (788 seconds)
Published: Sun Oct 15 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.