Adding Rigged Quest Two Controllers to your VR Project

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments

Sometimes the simple things are the best and what we all needed.

👍︎︎ 2 👤︎︎ u/DarthJandis 📅︎︎ Apr 08 2021 🗫︎ replies
Captions
so if we press play we should be able to actually load up and we should have both our normal hands and now if we select our bool and we set this to true which says we're using our quest two hands we should actually be able to jump in once it loads but we can actually see we actually have both the quest 2 controllers set up correctly hey everyone welcome back to another video so yesterday i was doing a twitch stream showing off a client project that i'm currently working on if you want to see that and follow along with it then check out the link below for finding me on twitch just game dev xr and in that i actually implemented a system where i set up oculus quest 2 controllers for the actual motion controller pawn so i thought we'd actually take a minute in this video and then i'll show you how to actually set that up for your own projects so the first thing we need to do is actually download some oculus quest 2 controllers they're available through the oculus website so i've got it already open here so just oculus controller art you can actually just do that by searching oculus quest to controllers and research this comes up as actually we'll do models and you see here we've got oculus controller art which once we select this we agree just hit download and i've already got this downloaded so i'm not going to do it now but what that'll do is it will provide us with a file which if i open it up we can unzip and we'll get a folder called oculus controller art and in here we get a couple of different types of oculus controllers for this example we're going to use the oculus quest 2 and i'm going to show you how we can bring this in and create an option so we can choose whether we want to use the default hands or we want to choose the controllers so first thing we're going to do is use a blank template we're going to create a new folder for oculus controllers and now we're going to bring in the actual controllers div 0. i did this because i think it's a polycount issue so you can see that's actually a lower file so we're going to use this one and we can start by dragging that in and you see here we get the option for skeletal mesh import mesh and then standard fpx import options if you don't need skeletal meshes for anything then you can disable this so you just untick it but for this case we're going to use a skeletal mesh because it comes with a rigged controller so if you wanted to put in animations you can do it so you can see the trigger's been pulled so we're going to do import all and you'll see what that will do is it will bring in two different types of controllers and we'll actually get a material that is built for us we're not actually going to use this as default we're going to delete our color and we're going to open up that file again actually and we're going to bring in the quest to textures so you see here we've got a couple of options i'm just going to bring in the png and yours might be named differently i've renamed mine to t underscore quest controller and underscore b so for base color then i can drag this in what we're going to do is we're going to now drag in our texture that we have to our material plug this into base color if you're working with vr i recommend just selecting in the main area and we're going to go rough so if you keep an eye on the actual shader count here 175 and we select fully rough we should actually bring that down a little bit not much but we brought it down which is exactly what we're after and you can see now we've got a material we've got our controllers and they're all set up next thing we need to do is jump over to our motion controller pawn i've got another content browser set up so i can easily access it and we're going to open up our bp motion controller and in here we want to move to the top right because we're going to do all our code in this area and you'll see that we moved to the viewport we actually have our hands which is already in here and the first thing we want to do is actually change our hierarchy but what's already in here so i'm going to move my arc direction arc spline and grab sphere and make those a child of the motion controller and not the hand because what we're going to do now is we're actually going to select the motion controller we're going to add and we're going to add a skeleton mesh and we're going to call this quest controller sweet and you'll see now we've got a blank skeleton mesh so we can search for our controllers and you can see that pops up here what we want is the right controller so quest 2 controllers div 0 right and then that will pop into our scene and what you do is just rotate this around by 90 degrees what i'm going to do while we're here actually is select our arc spline and i'm going to move this so it's a little bit more centered so just there same as the grab sphere as well as our arrow so should be about right you can change these later on and we'll leave that for now and we're going to hit compile now what we're going to do is actually create a bool so b and we're going to call this use quest controllers now we're going to drag this in we're going to do a get as well as a branch and we're going to plug that in just after the set visibility so if we're not using so by default we're going to have our use quest controller set to false if it is false we're then going to use the hand mesh and you'll know that we haven't deleted them from the scene because we're going to keep these in here just so you've got the options and what we're actually going to do is we're going to drag in a reference to our quest 2 controllers and we're going to set visibility and plug that just in between both so what we're going to do is if we're using the hands so if the quest controllers are set to false we're going to set them to hidden and then we're going to use the hand mesh as it is to then invert it as we normally would what we need to do now is to get our second controller so if we pressed play we would only have the right controller in our hand it might be mirrored but it wouldn't work so what we're going to do is we're going to copy our set visibility our hand and our switch on e controller at hand we do ctrl c ctrl v and just paste it above and now from our true we're going to plug that into visibility and we're going to get a reference to our hand mesh so now what we're doing is if we're using our request 2 controllers we're going to set the hands to hidden so we won't be able to see them and now we need to set our skeleton mesh to use our left and right hands super simple we just do a reference to our quest controllers drag that in set scalable mesh and then plug that into left so if we press play we should be able to actually load up and we should have both our normal hands and now if we select our bool and we set this to true which says we're using our quest two hands we should actually be able to jump again once it loads now you see it's a little bit laggy on my end just because of my machine i think but we can actually see we actually have both the quest two controllers set up correctly and they actually almost exactly where they should be and that's pretty much it if you're a patreon and you want to get access to this i'll have it up in the template folder so if i just bring that over for now so if you're not aware already the all the tutorials i've been adding to a custom template project which you guys can access through the patreon it has all the 2d tv stuff 360 video examples 2d loading screens which has a video coming soon a 3d keyboard example and basically everything on this list now so if you want to get access to this you can do that through the patreon and it's already set up the same way as we've just done so if you're new to the channel don't forget to like it actually helps quite a bit for other people to see these videos in the content especially those just starting out if you if you aren't subscribed then do so helps as well but for now maybe possibly head over to the discord check it out over there and maybe check out the patreon as well see how you see if there's anything here that could help but until next time stay safe and i'll see you then bye you
Info
Channel: GDXR
Views: 1,822
Rating: undefined out of 5
Keywords: Gamedev, Indie, Indie Gamedev, Indie game Devlog, Game Devlog, Game, Dev, XR, GameDevXR, Blueprints, Coding, Unreal, Engine, VirtualReality, VR, ExtendedReality, tutorial, how to, how, To, develop games, making a game, Dev Log, beginer, Unreal Engine 4, archviz, architecture tutorial, beginner tutorial, basics, blueprint tutorial, blender, beginner tutorial series, coding, devlog, Jonathan, Bardwell, Quest, two, Quest2, Questtwo, controllers, controls, meshes, controller, add, models
Id: sC9xK6lUnhs
Channel Id: undefined
Length: 9min 38sec (578 seconds)
Published: Thu Apr 08 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.