Introduction to VR in Unity - PART 1 : VR SETUP
Vložit
- čas přidán 29. 06. 2024
- If you want to get started with VR development. This video is for you.
❤️ Support on Patreon : / valemvr
🔔 Subscribe : www.youtube.com/@ValemVR?sub_...
🌍 Discord : / discord
🐦Twitter : valemvr?lang=en
🔥 Tiktok : / valemxr
👍 Learn VR Development : www.youtube.com/@ValemTutoria...
Download Unity : unity3d.com/get-unity/download
HDRP vs URP : • HDRP vs. URP - Which U...
Unity XR Platform Blog Post : blogs.unity3d.com/2020/01/24/...
NEXT EPISODE : • Introduction to VR in ...
····················································································
📝Best VR Assets ( These links are Affiliate links which means it costs the same to you and I get a small commission. Thanks for your support!)
VR Interaction Framework
assetstore.unity.com/packages...
Hexabody (Physics VR Player)
assetstore.unity.com/packages...
Mirror and Reflection for VR
assetstore.unity.com/packages...
Auto Hand (automatic hand grab pose)
assetstore.unity.com/packages...
Hurricane VR (vr physics interaction)
assetstore.unity.com/packages...
3d Hand Model for VR
assetstore.unity.com/packages...
····················································································
Full Series on How to make a VR game • How to Make a VR Game ...
····················································································
If you want to learn VR dev, here are some other really good channel you should appreciate :
⌨️ Game Dev
Brackeys : / @brackeys
Dani : / @danidev
Code Monkey : / @codemonkeyunity
👨🎓 Vr Dev
Valem Tutorials : / @valemtutorials
Justin P Barnett : / @justinpbarnett
Vr with Andrew : / @vrwithandrew
····················································································
#vr #vrdev #madewithunity #valem #unity - Hry
Hey guys ! I made an update of this series on my channel Valem tutorial that you can find here : czcams.com/video/fM0k2n7u8sc/video.html
For anyone watching in 2021, at 14:36 there are new XR Controller versions, choose device based.
Thank you!
Thanks bro
Thanks so much really useful comment!
Thank you very much bruh!
I did but my arms are super far away. can you help me out?
Edit: I figured out how to fix that but now my hands won't set to the prefab I made they're just giant cubes.
For anyone using this tutorial in 2020.3 rather than "xr rig" you have to use "xr origin".
Thank you this helped me alot!
@@puppetdev8141 glad I could help!
@@puppetdev8141 Me too
I can't find either. I'm in 2022.3 and the SDK is 57.0
Sorry, @@SunidhiNaik . I can look into it a bit later if you'd like but I'm not on 2022.3 right now.
7:49 for people struggling to find this in Unity 2020, click on the gear icon in the top bar of the package manager, then in the window that opens up, select "Package Manager" in the left column, then enable "Enable Preview Package" under Advanced settings in the right column.
Omg, thanks so much man. You saved my vr dev carrer.
I still dont have anything XR related in the Player in Project settings
@@P3d3r0s0 I am doing this on 2020 1.9f1. It's a bit easier than this method. You have properly loaded the XR Interaction Toolkit (Package Manager - Gear Icon - Advanced Project Settings) on my version?
Hey @@jennaadams3899 , thank you for the help, i have the 2020 1.10f1 version though i don't think it matters and i'm using SteamVR, which probably is the problem. I ended up having to download and import the SteamVR plugin. Also had to recreate the project, it just wouldn't run, i had no idea it would be so hard just to get proper documentation on this, there's always a small detail that is different.
@@P3d3r0s0 I have finished the tutorial and it is very good. The only problems I have had is with my new Oculus 2 headset. The tutorial is working OK but the trouble is I dont think headset is set up right. Anyway best of luck.
Thank you so much, I don’t think you even realize what you’re doing by making a straight to the point tutorial that is easy and fun to follow for all ages but you’re literally helping people make their dreams of building vr games real for free. Thank you so so much.
I just wanted to say your probably the best vr tutorial guy right now you've been so helpful and it's amazing
Thanks man really appreciate it :)
Also one of the only guy making VR tutorials as well. Keep it up!
@@ValemVRfor some reason I can't build on the oculus quest in unity 2019 it always gives errors
yes he is the best!
i agree
Nice timing! Just finished the rest of your tutorials and was about to put everything together into one project. Starting from scratch with the Unity XR will remove much hassle in the future! :) Thanks for doing this!
I’m so glad to have found this - I started making a VR game but got confused when it came to OVR components and making it compatible with all headsets. This one video has helped so much, and I can’t wait to watch the rest of your series.
It's been a long time getting to this unified system and it's still moving, the OVR stuff was painful at times. I had originally written a large part of a framework like the XR interaction toolkit and it's mighty nice to find that a lot of that is all done for us now.
Hands down the best VR dev tutorial I've found, great work man
Wow, uploaded this minutes before I searched for something like this, great timing :)
Haha love it when that happens 👌🏻
I’ve been here since your first video. I guarantee to you that this series is going to grow your channel beyond your wildest dreams!
The Murder Podcast I can guarantee that that is true because that’s the reason I subbed to him
VR is SO good to make videos for right now. My channel is gaining subs like crazy since I started making tutorials
I was able to follow this Tutorial 2 years after it was made and everything still made since. Unity has upgraded but the level of detail and simplicity you bring to your tutorial allowed me to follow along and the only correction from March of 2022 is that "XR Rig" is now called "XR Origin", same component different name. Thank you so much for this tutorial and all the others I will be following along with.
This is the answer i needed
Thank you
Hero
When I click play, I do not see my head moving around like in the tutorial. It is just static. I have the Oculus PC app downloaded and my link cable is working(I see my monitor in my headset) but when I click play, its not like I am actually in the Unity game scene. It just looks the same in my headset as it does on my desktop. And I can not move my head around. I followed the tutorial exactly, anyone know what the issue might be?
I’m so trilled to watch the following videos already! Can’t wait. Thanks a lot dude
Thank u for the dedication and passion u put in these videos!
agreed
FINALLY someone is creating easy to consume, up to date and useful tutorials on VR development. Really really impressive content. Thanks for putting it all together
Quick tip for those who would like their bowling ball to slide more smoothly, you can create a Physics Material (right click -> create -> Physics Material) and set the dynamic friction and static friction to 0. You can then use this material on the sphere collider material (for the balls) and box collider material (for the bowling range floor)
noted
If anyone could help me with this quick issue I would appreciate it a lot. Im having an issue where my controller/hand prefab model is in line with my hand and moving with my hand but its a bit ahead of my hand, is there a way I can fix this?
As an engineer it blows my mind that the devs went thru the trouble to model both types of friction.
~11:37 Camera - with Unity 2019.4 do not delete the main camera, right click, XR>Convert Main Camera to XR rig. Skip ahead in video to 12:55
People pay attention to this comment. Do not pull a me and screw it up lol
For those like me physically looking for a Convert button and being dumb, the 2 options are Roomscale XR Rig / Stationary XR Rig, then skip ahead to 14:33 and swap the XR Controller Action Based to Device based for each hand
For those like me who didnt follow this advice: I just copied everything into a new scene and converted the main camera to xr rig successfully.
Im so lucky I saw this comment. jeez thank you so much.
Thanks so much for that. Phew!
Just wanted to leave my thanks as well :) it's been hard to find good step by step tutorials for VR development. I really appreciate the effort you've put into these videos! Very helpful
Thanks Jarrod, I know that I'm a bit late with this comment but I really appreciate your feedback
This is amazing! You broke this stuff down into such easy terms, and I appreciate you doing this for those of us who have never done development before. Good stuff!
Thank you so much. With VR changing and growing, I have had a very hard time finding "getting started" guides that weren't outdated in one way or another. This is exactly what I was hoping for!
Agreed. There’s not many people out there making VR tutorials.
Excellent video Valem, please keep producing content like this! You are pulling the VR industry forward by teaching novice's like me.
VR aside, this tutorial series (overall) is by far the best tutorial I've ever seen on how to use Unity for someone with programming experience. It gets straight to the point and has an appropriate code-Unity balance, instead of other tutorials that mention code as an afterthought for the first time three hours in.
Awesome tutorial! I was getting frustrated with how confusing the official Unity tutorials for VR were and this is just so much simpler and more intuitive. Thanks!
This is awesome, thank you again. I remember when your videos had like 1-2k views this is really good to see because they are the best VR dev videos on youtube :D
I'm very surprised how easy it was to build a sample VR application. This is rather inspiring.
Right?! It’s pretty simple to get into
I have been having trouble with SteamVR, excited for this series as I might be able to get my game working properly.
I'm excited too ! :D
Another great video! I'm glad you're taking on XR, too!
I have an Oculus Quest coming in soon and i cant wait to try it out. I started using Unity this year and your videos are very clear to follow and informative. I'm excited to follow this series!!
Loving the vr tutorials so far, they way you pronounce engine kills me! 😆
The first time you dive into a world you've created, you are so proud
Oh man thats exactly it!
Absolutely! I've been making Altspace worlds and I'm so ready to make full-fledged games.
Valem you are honestly the best VR game dev youtuber out there, your tutorials are very good and easy to understand! Thanks so much!
Amazing. This takes a game from scratch to a whole new level of scratch.
15:52 If your hands are clipping into your head (while in-game), here's a short guide:
Go to the VR Camera (VR Rig > Camera Offset > VR Camera)
Under the Camera component, click *Projection*
You should see Clipping Planes, set Near to "0.01" (Default Near: "0.03")
17:46 Now I just look stupid...
rip..
For anyone who may be stuck,
I couldn't get the ball to throw properly so I set the "XR Grab Intractable"s Movement Type from "Kinematic" to "Velocity Tracking" and I was able to get it rolling as expected.
I am using 2019.3.11f1
I tried that but then the ball wouldn't go through the hand it it became glitchy trying to stick to the hand but not go through it. Any ideas?
@@lachlanrobertson4649 same issue here
@@lachlanrobertson4649 That happened to me before i switched to Velocity tracking
This is exactly the start I've been looking for!
Excellent tuto, bravo Quentin !!! J'en ai visionné un paquet depuis longtemps mais celui-ci est vraiment top, d'une clarté rarement égalée...
Ahah J'adore ton accent! Tuto parfait, je sub et je file voir la suite juste après avoir testé ;)
This is the Brackeys version of VR, great tutorials thank you!
This is amazing love how clear you make your tutorials
Finally got round to watching this in full, always love your videos Valem 😎
So far this tutorial is the best thing that happen to me in 2021 :) Thank you!
Yess
"game engæin"
Loved the vid, man. Keep it up
I never left any comments on youtube before, but I really got to say that I thank you so much for this video. You were THE ONLY ONE who went thru step by step and helped me to build something that ACTUALLY WORKS FINALLY. I am feeling much more relieved. Really appreciate your help!!
Thank you Valem, i was watching your last series and unfortunately it was out of date, but thank you so much for making this
Much like everyone else here, just want to show appreciation for a really good tutorial, looking forward to watching the rest.
Unity: We made a folder you can store all of your materials in
Valem: We don’t do that here
Is it really game development if you dont have 2747383 assets chilling in the root folder at the end of the project? :D
@@ValemVR I never really clean things out and put those assets in the folder it needs to be, unless I'm working with someone xd
@@ValemVR I always move those to a "Sandbox" folder and reorganize from there lol
I just discovered your channel with your "I turned my house into a VR Game" video and that's awesome ! Good job !
THIS IS AMAZING thanks for making this video im going to have a lot of fun.
This is a great set of tutorials. Some changes are coming or in preview, some already here. The XRRig is deprecated for XROrigin. This appears to work the same. For XRControllers, there are device-based and action-based, the latter is the more modern setup using the new input action manager input mechanism. This probably needs the default config creating. Also note you need the XR plugin correctly set. If using the Open XR plugin, then you MUST include the controller profiles! Underneath the Open XR settings. If you don’t do this, you’ll get HMD tracking but no controllers. I had this set incorrectly and was scratching my head for 3 hrs :O
Note, You will need to google for the controller setup if you go with action-based.
So do I select action based or device based?
YOU ARE AWESOME THANK YOU
Keep it up, I don’t know that many French ppl who know so much English, good shit man
Thanks man! You made it really easy to get up and running on cross-platform development. Saved me a few headaches.
Ultra clair, c'est exactement le genre de série que je cherchais. Super boulot !
You're my favorite french sounding person
7:49 2020.3.30f1 windows tab at the top of the editor
11:39 2020.3.30f1 XRRig script is now called "XROrigin"
thank you very much sir
oh THAAAAANKS!!!!!
Absolutely stellar tutorials Valem, thanks so much. Looking forward to seeing more from you especially in this series. Please keep that coming you are making my journey into VR development soOOoO much better and easier, thanks again! :)
Wow
Wow
Thanks for doing this. VR is slowly but surely taking off
Thank you for watching this video guys, this is the pinned comment that I will use to answer all of the questions that you may have about this tutorial.
Q : I've uninstalled the vr package in XR Management to use the old Virtual Reality Supported method. But I cannot check the box, it stays that I have still some sdk on my project.
A : Go to package manager, show all package in project and you want to remove all vr package (OpenVR, Oculus Android, Oculus Desktop...) to be able to click on the Virtual Reality Supported box.
Q: Right screen is black. Only my left eye show something.
A: This is a bug made by URP with Multi Pass Rendering. To fix it, go to Edit > Project Settings > XR Management. There under the XR Management tab, you will find additional settings for each SDK, in the Oculus Settings, make sure to select Single Pass instead of Multi pass.
Q: Building a game for Quest takes a lot of time.
A: This is again because of URP which force the build to include a lot of shaders. This issue will be fixed in the future releases but a solution is to use the Standard 3D instead of URP in this case.
I was watching your older tutorials on this and they were really outdated. Then I gave up trying to follow your older tutorial due to many changes in the oculus sdk. I searched for a 2020 version for a tutorial and found this. You should comment on each of your older tutorials saying "This tutorial is outdated and may not work for you. Please watch the newer version which you can find here (Insert Link) So other people don't do the same thing that I did. Thanks :)
@@neaaat5545 thats a great suggestion thank you!
@@ValemVR Hi Valem, I've been following your tutorials for a while now and I've run into an issue, when I load up the project in my oculus quest my controllers show up in the air above me for a second then they vanish. I'm sure this is an easy fix because I'm a development pleb, but if you could give me some tips on how to fix this that'd be amazing.
Do you need a oculas link to do this with the quest?
@@lokiprice3149 yes
Once I successfully got the hand track working @ 15:50, I saved, excited then strutted around the house and demanded my family revere me as the GOD of VR.
how did you get it working?
@@willjulian8 what part are you stuck at ?
@@sporehux8344 I had no trouble following his tutorial but somehow despite using the same values my hands are massive and stuck inside my head.
That's pretty wholeshome ngl
The quality of your videos is insane, and I love your accent. Thank you!
I cannot thank you enough... bro helping someone learn is the best thing in the world. Thanx again
My pleasure man im glad you enjoyed it :)
I'm using a Quest with the Link and it's only rendering the left eye, the right eye is just black.
Edit: Going to Edit > Project Settings > Oculus (inside XR Plug-in Management) and changing Stereo Rendering Mode to Single Pass Instanced fixed the problem.
I had this same issue! Thank you so much for this answer. Fixed it for me.
The same Issue here, I was starting to get frustrated. Thanks
Thanks, this happens with the original rift too so I'm glad someone found a fix
I don't have the single pass option.. When I test with Link its entirely dark. Plus my Link is very unstable. Anyone find a way?
@Nadia Aziz i have same problem no single pass option and black vr in both eyes
this is the first time I watch your video. I am currently in 13:34 and I already sub since the intro. This is gold man! Thanks!
Best Quest development introduction I’ve seen by far!
Instant sub
Looking for Valve / SteamVR / OpenVR Support?
Valve recently added support for Unity XR. However, Unity hasn't added it to the Package Manager yet, so you will need to install git (not Desktop Version) and then add to Unity via Package Manager -> Add -> Install via Git.
Here is the announcement: steamcommunity.com/app/250820/discussions/7/2268069450205612646/
Here is the Git link: github.com/ValveSoftware/steamvr_unity_plugin.git#UnityXRPlugin
Good luck w/ your development works, and thanks for the tutorial Valem!
Thank Drew for sharing you rock !
@@ValemVR Same to you mate! I've already shared your video w/ some friends :D
Thank you so much! This might just save my study project due in a week :D
@@petripekkarinen2559 Good Luck! Hope you got it working!
If you are having problems with input controls in lessons 2, try finding them AFTER the Start function. For some Valve setups, the Universal Render Pipeline doesn't find your hardware until after Start() is called in your project.
@@drewdunne7496 I was having this problem, are you creating a new void function after start, or placing the code from the tutorial inside of void Update() ?
dude i litteraly love you. your accent makes learning 100000% times better thanks thansk thanks!
Brilliant and to the point. This is how tutorials should be done.
for anyone wondering where the XR Interaction Toolkit is in Unity 2020, make sure you go to the top of the list on the left and select "Packages: Unity Registry" instead of "Packages: In Project", took me a hot second to find that too. Also, make sure you have Preview packages enabled in the advanced settings.
Dude. Thank you.
@@kortalian np xD
watched some other of your tutorials and they are good and especially in this quarantine upgrading my skillset isn't a bad idea
Yesss, get all those upgrades! It’s the best thing you can do with all this down time 👍🏻
Great step-by-step guide for XR Interaction toolkit setup. Much better than other courses / tutorials. Thank you!
Merci beaucoup pour ce nouveau tuto.
J'adore vraiment ton travail et celui ci me fait gagner énormément de temps sur l'apprentissage des différent SDK
Je suis passé de steam VR à l'oculus kit rapidement grâce à toi et maintenant je vais pouvoir découvrir rapidement les outils VR intégrés directement dans unity grâce à toi.
Merci merci merci pour ton travail
Give this guy a medal. Perfect tutorial with no bullshit but all the important details show. 100%!!a
Valem watching pro tip: Click the video gear setting icon > set Playback speed 0.5
bro thank you so much, I'll be doing this tonight or early tomorrow morning. You literally explained everything I had questions about
I can't wait to get to your level sensei! Great tutorial!
Word of advice: If you find that you're initially not close to the table, move the table towards you - don't move your camera closer to the table. I started moving my components around and couldn't get any grabbing to work. Also, make sure you don't resize or scale the wrong components. You pretty much want to keep the VR Rig and every object inside it at 0,0,0.
If some one is struggling with this error "BuildFailedException: Android Minimum API Level must be set to 23 or higher for the Oculus XR Plugin."
the thing you have to do is to go to Edit --> Project Settings --> Player --> Other Settings --> Identification --> Minimium API Level --> Android 4.4 'Kit Kat' (API Level 23) or anything above.
@Nicole Weltman If you needed help with this, I might be able to help someone with this comment.
Good luck with fixing your bug
@@sipsopgamera7624 i cant find identification
You're a legend! Thanks for the awesome tutorial.
Man you are the best! A big thumbs up to your dedication and hard work! 👍❤️❤️✌️
For anyone that can't find the XR Interaction Toolkit 7:40 - 7:53 under package manager, make sure you click the little drop arrow under where it says "Package Manager" and select Unity Registry
THANK YOU! THIS WAS SO HELPFUL!!!
2:54 and by get to work I mean play beat saber for 11 hours and passing out on the floor then waking up the next day then getting to work. And by get to work I mean playing beat saber for 11 hours...
Dude Dani's videos are the best
@@bradb5129 They make me go Y E S
DANIIIII
@@Gamerpod.1 Let’s go danis the best
@@krazykaleb9560 Also did use the tutorial and are on oculus quest?
mind = blown. i'm gonna get to work! thank you so much dude
Thanks for putting this all together - very helpful !
Im doing this is spite of my friends calling me illiterate lol lets see where this gows
Having looked into VR development a few years ago and found it all a bit of a nightmare, I would say that from the background of being a professional games developer of 40 years experience (there aren't many people that can claim that), this looks like a good (and most importantly), simple, process. I will be trying all of this in the next few weeks (assuming my current project ends on time, as if). If you have got it right, and the other comments seem to think you have, Many congratulations.
Iv been through allot of Unity guys on youtube. its nice to have one that dosent go really slowly and understands the video can just be paused if ppl need time.
i absolutely love your accent, that made this tutorial like, 100000x better, and it's already perfect
Oh man, Valem thank you, thank you! I can't wait for the next chapters, I hope you will cover how to use inputs with the XR toolkit? Do patreon members receive early access?
you said next video we will learn about input system before I could finish the video I made the comment lol
Hey if anyone has got build errors when trying to export to quest 2 a possible fix might be:
Go to Project Settings -> Player -> Other Settings and under Graphics APIs click on vulkan then click the minus.
Hope this might have helped someone, and sorry if it didnt.
I need help. How do I connect my vr headset to my pc i put the cord in and hit play but the headset doesnt pair up its oculus do you know how to fix this
@@tylersmith8502 Do you have oculus software installed on the pc? If so does it register you're headset with cable as oculus link? (If the software dosent recognize it then mike from virtual reality oasis has a great video just search up : Oculus Quest - Is The OFFICIAL Oculus Link Cable The Best?
) Personally i connect my quest to the pc and build instead of click the play button. If you want to build heres a time stamp : 8:12 and 19:14 Please let me know if this helped
@@FrederikDV- i tried using th eoculus app on pc but it said my graphics card was not compatable and it wouldnt read the oculus
@@tylersmith8502 Your pc is not powerful enough
@@localginger1260 oh ok
Thank you so much for making these you do not know how much i wanted to make games :)
Thank you for your sacrifice. My IT grade appreciates it.
Fun fact on how powerful unity is:
VRChat was made in unity
Appreciate your detailed explanation and guidance :) keep making more of this tutorial! Maybe a scenario based?
Thank you, this was soooo use full, i finally got it to work!!
Hi valem, I have a little problem with WMR controllers, everything works fine except when I try and launch the ball, it loses all its velocity on the vertical axis.
I can grab it and move normally but when I release the grip button to throw, the ball has a natural movement on the horizontal plane but just drops to the ground... Any tips?
Is there a way to get around the "let go of an object and it collides with your hand" issue? Would it be plausible to just disable your hand models when holding something and turn it back on when not?
im having the same issue.whenever i let go of the ball it just collides with the hand and shoots out with force.But in this tutorial his ball doesnt act weird,idk why!
Really looking for some solutions,if anyone can help!!
This is incredible. What a time to be alive.
Amazing stuff.
Let's go and create.
Thank you
I think its time to get into creating my own stuff.
This tutorial is extremely helpful for a beginner! However, as such - I'm running into some issues. After creating the cubes for the Left and Right controllers/scaling them down - whenever I press play and enter the headset the cubes are MASSIVE! Any idea how to make them correct scale for my hands? (I currently have the X,Y,Z properties scaled to .05) Thanks
Try making a cube and nesting it under the hand instead of dragging it to the prefab slot.
TIP: You have giant hands and think you have done it the way it was shown in the tutorial? Well, I thought the same, and tinkered with it for 2 hours, repeating the same mistake again and again :-)
You have to make the controller object (the empty object, that was created before the cube) a prefab, not only the cube!
You have probably saved me 2h of life :D Thank you
oh my gosh. i have been trying to figure this out for like 4 hours and you helped me fix it in like 2 minutes. thank you so much
@@jarenmauery it took me two h too when I got stuck in the exact same problem... So don't worry, you and I are not alone in this.. haha... Sharing is caring, they say 😁👍