How to test your game without a VR Headset with the new XR Device Simulator and the HMD Mock. ▶ Get access to the source code: / valemvr ▶ Join the Discord channel: / discord
Пікірлер: 185
@johnisking342 Жыл бұрын
a year later and still a great video. for anybody watching this in the future you can follow all of these instructions except use "XR Origin (action based)" instead of the XR Rig shown in the video. If you dont use the action based one it wont show your controllers. Thank you for posting the video you're a hero in my book
@Bikerbarrie Жыл бұрын
head movement works but i cannot get controllers to work at all. but everything is setup to a T. not sure why it isnt working can you help?
@SatoziEditZ Жыл бұрын
Thanks
@snowtail19513 жыл бұрын
Perfect. Now I can make a VR game for little cost, then use the royalties from the game to buy a VR setup so I can actually test my product after it's finished.
@ecykal353 жыл бұрын
This is really helpful because my laptop is not compatible with my headset so I can make my game while I save up for a better pc
@rollizle3 жыл бұрын
I had to buy a new laptop to run VR, and once I got it, despite having the specs to run it, it wasn't compatible with my headset. Over a year later the Oculus Quest 2 launched, and Oculus Link works with my laptop so now I have both a laptop that can run VR and a headset that works with it. For the longest time though I had to build on my desktop which was super annoying. (Couldn't work on my project in class, couldn't build VR games at game jams, etc)
@tsykelvin62033 жыл бұрын
i can just move my sight why cant move my both hand?
@The_Mario_Files Жыл бұрын
Mine too
@tbnr_skull Жыл бұрын
can you make a new version of this
@TheGuayeah3 жыл бұрын
It would be great if you could make a video about Setting up the New Input System for any VR Controller
@densityvr38583 жыл бұрын
I agree!
@nouranelhamdy59543 жыл бұрын
Yeah I am really stuck at this point and I can't test any animation. Is there an alternative for TryGetFeatureValue() to use?
@lizzeplays12323 жыл бұрын
Yay
@levifink3 жыл бұрын
I definitely would be interested in a video on the action based XR Rig, keep up the awesome work!
@silviagioiaflorio51373 жыл бұрын
In newer versions you have to go in edit-> project settings and enable pre-release packages to see the XR package
@flamz12433 жыл бұрын
How do I get to the place were I enable pre-release
@GloryMeat3 жыл бұрын
As soon as I get the Oculus Quest 2 for Christmas, I'll be able to follow every tutorial you've made!
@MrVic-qu9qh3 жыл бұрын
well some don't work with each other so be careful.
@jakubpukovec77553 жыл бұрын
I couldn't get the action based input system working in Unity 2020.2. After switching to 2021.1.0b3 it started working. Thanks for the great video!
@tonilaseng46202 жыл бұрын
Deym this is so helpful, I need to develop vr environment for my final year project but my laptop couldn't support my oculus 2 link mode. I always sideload my apk for testing, but now I dont have to. Thank you!!!
@ronaldpavon34343 жыл бұрын
You're a true hero. Keep creating this type of videos you will get very far with this content.
@Bricksalive3 жыл бұрын
Thanks for this series man! Super helpful! Can you please do a tutorial for detecting hand motion for actions like running. Eg: swaying hands makes you run faster. And like in the game Stride where you can pull yourself over ledges with hand collision?
@yasseralkhatib90922 жыл бұрын
French = merci Spanish = gracias German = danke Italian = grazie Portuguese = obrigado Farsi/Persian = mam’noon Hindi/Indian = dhanyavaad Chinese = xièxiè Arabic = shukraan Japanese = arigato Thai = khàawp-khun Zulu = ngiyabonga Navajo = ahéhee’ Tongan = mālō Esperanto = dankon you just saved me with this tutorial bro
@ryanraphael30463 жыл бұрын
Since the lockdown, I've been doing this, without an headset. I'm yet to get one😫but I've made many VR apps already.
@sarakhaled44933 жыл бұрын
can u connect with my pls
@marcoszanre2 жыл бұрын
Amazing tutorial as always, thank you! Being able to start developing for XR, even if just for learning purposes, without an HMD is very welcome!
@JackieJKENVtuber3 жыл бұрын
This is great! My VR-Ready laptop is really low on storage space so being able to use my lesser (but usable) laptop to playtest without having to import the project to the headset everytime I change something.
@gracezhang36962 жыл бұрын
thank you so much for making this tutorial! so glad that i found this, i'm using macos so linking oculus to my laptop doesn't work... now i'm able to test play my project without building and deploying onto my headset!
@mesopable3 жыл бұрын
Valem is a king! Thank you for the video. Going to test can I setup this with mac. Previously not been able.
@mesopable3 жыл бұрын
Meh. Not a valid way for mac yet. Someday.
@ELRandomMan3 жыл бұрын
Hey Valem, can you please make a tutorial on how to slice objects in VR, such as cutting bread or something, everything I find wont work, or is out of date. If you can take your time to do this, thank you
@SYBIOTE3 жыл бұрын
this is so helpful , this is absolutely critical for testing and smooth workflow
@christophercoutinho92813 жыл бұрын
Great tutorial. First one out explaining how to use the Simulator. Hope you can do one showing us how to connect an Xbox controller to the simulator. Also as Input Actions are the way forward in Unity, it would be good to know how to write code using these new Input Actions.👍
@madlenbarth44853 жыл бұрын
For a reason I can't turn by using the mouse. I checked the inputs and everything looks right to me.. Maybe someone knows how to fix this issue?
@christmasjade12743 жыл бұрын
I have been trying for weeks and it still would not work for me neither
@ge9263 жыл бұрын
I had the same problem. It turns out I forgot to add the Input Action Manager component to XR Rig and later add the sample XRI Defauld Input actions to it from the assets/samples/XR Interaction Toolkit/...
@Hex0dus3 жыл бұрын
Very cool stuff Valem! Keep on doing it! And yes, the new setup would make a good addition!
@benr32933 жыл бұрын
Everything worked perfectly for me, except head rotation. I hold down control and nothing happens. Hands rotate as normal. Did this happen for anyone else?
@ryrilya22893 жыл бұрын
This also happens to me. Any idea?
@robertanetzova7953 жыл бұрын
Another comment helped me I paste it here 1. In the Hierarchy panel, under "XR Rig > Camera Offset", select Main Camera 2. In the Inspector panel for the camera expand Tracked Pose Driver (New Input System) 3. Double click on centerEyeRotation [XR HMD] under Rotation Action 4. Change the Path to XR HMD > XR Simulated HMD > centerEyeRotation 5. The Rotation action binding should now show centerEyeRotation [XR Simulated HDR] 6. Make sure that Tracking Type is set to Rotation And Position.
@lionrouge74233 жыл бұрын
Merci beaucoup pour ce tuto Valem, je devais faire tout un environnement de réalité virtuelle sans head-set et c'était vraiment compliqué même si j'avais commencé à le faire avec tes anciens tutos J'aimerais que tu puisses expliquer tout le nouveau XR Rig et aussi comment mettre du son Merci :)
@shashanksundi56693 жыл бұрын
Just the video I was looking for...Thank You!!!
@makulVR3 жыл бұрын
Can you please do a video for the new Input system? It would be very cool if those who have a Vive or GO also can enjoy your content.
@avya800 Жыл бұрын
Why should I buy a 20k INR Headset for 15k INR freelancing project
@mohamedmah539 ай бұрын
Hey thanks for the helpful tutorial. Id did everything like in the video but I have one issue. I cant move my hands in game everything else works just the had. Does someone had a same problem?
@maxknight23723 жыл бұрын
Heyo thanks for this tutorial but i was wondering if you could add this onto your multiplayer series to fully implement both headset and non headset in the same world (: (Btw your the best!!)
@maxknight23723 жыл бұрын
Including it automatically detects if the player has a vr headset or not or the player has to choose (: Sorry if this is a lot to ask I seriously cannot find a way to do this.
@xAjido3 жыл бұрын
I'm getting "Attempting to determine the size of an unknown feature type Id [-1]" error, I noticed you were getting this too in the earlier part of the video but not later, I'm still getting it even after following along with everything. Any suggestions?
@just-dodo3 жыл бұрын
+1...
@galactic_nova66533 жыл бұрын
I was getting spammed by this error too. Just figured out that Valem is getting spammed by it too but he has "collapse" activated in the debug console which keeps it from spamming. Hoped this helped. Have a good day. Edit: I've heard its a bug on unity's part
@nicolaskamien18252 жыл бұрын
I'm getting this too. Got a workaround?
@cobweb24042 жыл бұрын
Had the same bug. Should be fixed since 2020.3.27. I use 2020.03.32 and the error no longer occurs.
@Kombo-Chapfika3 жыл бұрын
Thank you, this is very useful while I wait for my oculus link cable.
@ecykal353 жыл бұрын
Can you do a tutorial on adding shooting in your multiplayer series please?
@maxknight23723 жыл бұрын
^
@drseed28282 жыл бұрын
Thanks for the tutorial! I got most things working, on an existing game, I had just began to work on. One problem; my laptop doesn't have a scroll wheel. Is there a way to remap the keys to use the up and down arrows, instead of the scroll button? I am a newbie to VR, but I did notice there was a "T" that I can click, in the: XR device simulator/scroll [Mouse]/ binding properties/Binding Path, that has /scroll and was wondering if that is where I can edit the scrolling mouse, to a different method, like the up and down arrows. Any ideas welcome.
@teomandi3 жыл бұрын
I am on Unity 202.3.3f1 in a clean URP project and I when I enable the Mock HDM Loader, I get hundreds time that error: ``` Attempting to determine the size of an unknown feature type Id [-1]. UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&) ``` Can anyone help me please because I am stuck with that.
@dreamlands79263 жыл бұрын
Hey great video! I can't seem to find the source code in the Patreon page although there is a link in the description, is it suppose to be there?
@lambsaucesauce46793 жыл бұрын
thanks i recentally got into building games and wanted to make games for vr
@Quineywinnie3 жыл бұрын
Lol i was literally hoping youd make this vid.
@lionrouge74233 жыл бұрын
Does somebody know why I can't rotate my head with Ctrl key but when I use it for the two controllers the rotation works fine?
@cristianorossetti9873 жыл бұрын
+1
@przemeks98993 жыл бұрын
I had the same problem and for me it was enough to change the rotation binding for the Tracked Pose Driver of the Main Camera to centerEyeRotation [XR Simulated HMD]: 1. In the Hierarchy panel, under "XR Rig > Camera Offset", select Main Camera 2. In the Inspector panel for the camera expand Tracked Pose Driver (New Input System) 3. Double click on centerEyeRotation [XR HMD] under Rotation Action 4. Change the Path to XR HMD > XR Simulated HMD > centerEyeRotation 5. The Rotation action binding should now show centerEyeRotation [XR Simulated HDR] 6. Make sure that Tracking Type is set to Rotation And Position.
@yuanthony51993 жыл бұрын
Mayber it is with "Shift" key not "Ctrl" key
@robertanetzova7953 жыл бұрын
@@yuanthony5199 shift is used to control the right hand controller, so it would not work for head rotation.
@quangnguyen36633 жыл бұрын
@@przemeks9899 you are right ... Amazing good job bro
@haritharajeev7108 Жыл бұрын
I am getting experimental package in use for MockHMD XR Plugin. What should I do?
@Un4eseen3 ай бұрын
did you solve the issue?
@Ralzone2 жыл бұрын
imagine if someone makes a game in pair with into the radius or half life alyx without a vr headset, it would be cool asf ngl.
@usernamecantbeblank___49562 жыл бұрын
Super tutorial! Helped me a lot!:) But I have an issue with scrolling the mouse wheel. In play mode, the camera won't Zoom in or out. Any suggestions how to fix it?
@ChaosContrl2 жыл бұрын
How would you go about manipulating HTC Vive Trackers during mockup, for example?
@srikantramesh45533 жыл бұрын
Very nice video, Hats off.. Can you please make some more videos like this without VR Headset... Where did you get the hands, Is it there in standard assets?
@benemy9 Жыл бұрын
I have this weird bug where I can, for example grab objects with the "G" key, and move the camera with holding right click and moving the mouse, but whatever buttons I press I cannot move the VR hands.
@user-ou4yt9qf8e3 жыл бұрын
Can someone help? The only input working for me is the right click to move the camera around, that's it, even the scroll is not working. I don't know how to fix it, I followed all the steps. ok really dumb mistake, turns out I didn't save it so when I click to play it doesn't work
@Mlop2213 жыл бұрын
Thanks that is really helpful!
@vilelminigotsi40643 жыл бұрын
You are the best person in the whole world
@lolous-studio3 жыл бұрын
Thank you so much !
@dianacarolinaquintero6633 жыл бұрын
Thank you!
@swastikdev61813 жыл бұрын
Dani's reaction after watching this : fuck wasted time and 700$
@tinytea33233 жыл бұрын
I cant seem to make the camera rotation work :( any idea how to fix this?
@aloknarula8033 жыл бұрын
I am facing similar issue
@przemeks98993 жыл бұрын
I had the same problem and for me it was enough to change the rotation binding for the Tracked Pose Driver of the Main Camera to centerEyeRotation [XR Simulated HMD]: 1. In the Hierarchy panel, under "XR Rig > Camera Offset", select Main Camera 2. In the Inspector panel for the camera expand Tracked Pose Driver (New Input System) 3. Double click on centerEyeRotation [XR HMD] under Rotation Action 4. Change the Path to XR HMD > XR Simulated HMD > centerEyeRotation 5. The Rotation action binding should now show centerEyeRotation [XR Simulated HDR] 6. Make sure that Tracking Type is set to Rotation And Position.
@ligacaopeptidica75243 жыл бұрын
@@przemeks9899 Helped a lot, thanks!
@docandree48183 жыл бұрын
@@przemeks9899 May God bless you. I have struggling with this for days!
@Gazeld3 жыл бұрын
@@docandree4818 so have I ! :(
@skippy56523 жыл бұрын
This tutorial is wonderful. It's clear and easy to follow. Do you know if it is now possible to toggle between an active HMD and the Mock HMD while the game is running? If so then a tutorial on how to set up the script would be amazing!
@GeeCeeAte Жыл бұрын
Anyone ever figure this out?
@skippy5652 Жыл бұрын
@@GeeCeeAte Not realy. I ended up making some work around where i would have both a VR rig and the mock rig in the same game object then forcibly swap the object's control from one to the other. I think it's a bit easier to do now since there are more tools and extensions in the OpenXR for this, but it is not a feature built into unity. It will require code.
@yanmin77313 жыл бұрын
12:45 does anyone know what is "left caps button"? how did he get the left cube to start moving?
@test-qm5vt3 жыл бұрын
try left shift
@Mr77igor3 жыл бұрын
im with the same problem
@sillyfella20093 жыл бұрын
You will need: Milk Phone Knife Patience
@vomitshot28963 жыл бұрын
And Don't Forget *UNITY'S PARTICLE SYSTEM*
@moishirand53243 жыл бұрын
it's very important, thanks
@Akka50003 жыл бұрын
im getting a pcvr soon so im looking at this video
@UrMom-tq9hb3 жыл бұрын
Hey Valem i like your content and its really helping me but could you make a tutorial how to copy my character like a window . So when i move the clone is moving too and things like that ?
@saltytree7293 жыл бұрын
Hey valem! I am the most beginner level programmer ever and your channel is amazing! I want to learn to make games as a hobby. Do you have a Roadmap of what I need to learn to become even half as good as you!? I am also going to subscribe to your patron in hopes to learn how to code and stuff! Is there a good book to learn or can a total beginner not do this and needs to go to school to learn computer science :(? Hope all is well in these horrible times my friend
@GarrettHoyos3 жыл бұрын
You're a saint
@sumankumar-wk5gb2 жыл бұрын
Which key you have pressed that is holding the object and which key to drop the object on table. Because when I press shift+G it is simply moving from one place to other and dropping simply, could not hold for more time.
@abhinavsaha33423 жыл бұрын
I followed all the steps till 11:15 but the camera doesn't move for me using left mouse button please help!
@lucidity71453 жыл бұрын
The left mouse button selects I believe, try using the right one if you haven't happened to figure it out yet xD
@abhinavsaha33423 жыл бұрын
@@lucidity7145 thanks for your comment! I did something donno what and it started working lol
@lucidity71453 жыл бұрын
@@abhinavsaha3342 Aight great!
@hafsasheikh95113 жыл бұрын
Please suggest me any of your playlist which I should watch to learn VR game development from scratch As I don't know a single word and I have to create my final year project within 2 months.
@bassamaboallaban2 жыл бұрын
I cant move anything when in the game mode using my mouse, I followed every step carefully - Please help!
@muhiramadhan5913 жыл бұрын
Hi just a question, with this way do we still need a real vr device (oculus, vive, or other) to do the settings or using the HMD mock is enough to guarantee everything work in editor is also work in real device?
@prathamsinhmedhat20303 жыл бұрын
Please make tutorial a cricket batting vr game
@m.muhajirin773 жыл бұрын
How to make VR Game with 5DT data Glove ? Should you give us some tutorial about it
@shreyasshevale68115 ай бұрын
Still works! just in case..
@marcelogoycochea81952 жыл бұрын
does it support m1 chip? becouse i tried doing these step and when i go on play mode the screen flickers
@waleedsaeed75213 жыл бұрын
Can you guide how can i walk in all directions of unity terrain using oculus quest???
@user-eg5jd9mw2n2 жыл бұрын
it didn't tell me about the device active is true even I followed everything Valem you've done... how to get that msg out? I'm afraid I'm falling on the first part
@anubis5203 жыл бұрын
I think I am losing my mind. xr interaction toolkit does not show up for me in the package manger under unity registry, is there something else I need to enable?
@Manish-be2pj2 жыл бұрын
you need to enable the preview
@nrb24882 жыл бұрын
kzbin.info/www/bejne/oZ_Qan-fhtSqn5Y Enable isn't enough (developpers are really dumbs)
@jayhenstridge7519 Жыл бұрын
how do you get the xr settings in the player settings???
@anonymoussloth6687 Жыл бұрын
How did you change the controllers to hands??
@mrslake70963 жыл бұрын
does the code for handling input change when using the action based xr rig ? Thanks
@mrslake70963 жыл бұрын
Thx
@dasskla82 жыл бұрын
Where do you get the xr interaction toolkit? its not in the asset store
@nrb24882 жыл бұрын
kzbin.info/www/bejne/oZ_Qan-fhtSqn5Y
@sxzdarkwrath2 жыл бұрын
If I build this game for pc vr, can I still play it without a pc vr headset??
@shashwatsharma5803 жыл бұрын
I can't access the eye resolution in vr studio, can anyone help me.
@r1pfake5213 жыл бұрын
What's the best way to pause a VR game (for example while a menu is open)? Usually you can set the time scale to 0, but then my tracking scripts will also stop, do I have to manually disable all other (non VR) scripts / animators in the whole scene just to pause the game or am I missing something easy?
@yoshiegg65373 жыл бұрын
That depends on the game, but yes, pause all animators and transport the player to a black bubble or something in the scene somewhere with menus. Its complicated because unity's XR doesn't offer a build in solution yet.
@zohaibgamer24843 жыл бұрын
Make video on VR multiplayer game
@Louuloutre3 жыл бұрын
Can we test the Game without the headset but with the Vr controller?
@corbinsteinmuller98612 жыл бұрын
5 mins in and stuck with the following error; Assets\HMDinfomanager.cs(11,52): error CS0117: 'XRSettings' does not contain a definition for 'isDeactiveActive' is there an updated version? thanks for the content :)
@halildogan70752 жыл бұрын
it's "isDeviceActive" , you typed "isDeactiveActive" . spelling problem. fix this and its all good to go
@user-og8fo3nl2v4 ай бұрын
How about Unreal Engine
@Manish-be2pj2 жыл бұрын
the hands will fall down if i add the rigidbody :(
@nrb24882 жыл бұрын
Huge problem, the camera dosen't work for, even when I change the path in the input
@nrb24882 жыл бұрын
I found it, I just had to declick the pause bouton after entering the game mode
@catriona60492 жыл бұрын
@@nrb2488 you saved my life mate, may God bless you
@levexis3 жыл бұрын
if you buy vr addict do you get everything?
@nrb24882 жыл бұрын
How to avoid objects of falling after rigidbody ?
@nrb24882 жыл бұрын
I found it, you must add a collider on your sphere and another on your cube
@HexOverride3 жыл бұрын
Yup
@mohammadrazakhan38523 жыл бұрын
So i can make the game the i can even use it with headset and its controller
@mariyavesna2074 Жыл бұрын
why when I go to Player I don't have XR Settings there?
@jayhenstridge7519 Жыл бұрын
me too
@alexasoryu7613 жыл бұрын
Hopely someone will answer my question, anyone else know how to build menu setting vr without headshet and vr with headshet in one apk?
@MetaversoJuliXR3 жыл бұрын
What is that VR SDK and how to install it?
@ejoojoo2 жыл бұрын
how to export webXR using this?
@cursetin98332 жыл бұрын
Hi there! I need help, how do u move the perspective of the player by moving the phone itself? I've been searching for a tutorial but I cant find it anywhere :( my team is making a VR mobile game but we would like to have 2 viewing options. One with the VR headset like google cardboard and the other is just normal screen view but with the same UI system. can anyone help pls?
@fukukyun782 жыл бұрын
Hey, hope you figured it out by now, but if not, Valem also has a Google Cardboard tutorial here, I watched it months ago kzbin.info/www/bejne/p4vdmYt-pr2AY8k I have it working, I haven't used it in awhile, but I'm also pretty sure the Google Cardboard SDK comes with a "Toggle" function with a button that let's you switch between VR and normal phone movement, so it's probably exactly what you're looking for.
@cursetin98332 жыл бұрын
@@fukukyun78 Hi there ! yes we used this too but sadly the switch view does not work :'') we are still trying to find a solution, do u know any codes that might help?
@cursetin98332 жыл бұрын
@@fukukyun78 we were planning to have 2 buttons once selected they will be able to switch from 2d view or the stereoscopic views
@fukukyun782 жыл бұрын
@@cursetin9833 Ah, sorry to hear that. I'm not too familiar with VR... But, I hope this helps you figure it out, I believe you can find the function for switching in the camera pointer script? I believe there's a function that disables VR mode. I hope that helps you out.
@cursetin98332 жыл бұрын
@@fukukyun78 Ill check that out, Thank you so much for the help!!
@ChazMations3 жыл бұрын
Is this possible to run on Mac? and the newest version of unity???
@JayneJacobs3 жыл бұрын
I am having no luck with using HMD simulator on Mac
@manishjadhav6685 Жыл бұрын
Its quit complicated procedure i would say. XR interaction tool kit always makes things complicated os there anyone else who thinks the same