How to Make a VR Multiplayer Game - PART 1

  Рет қаралды 147,756

Valem

Valem

Күн бұрын

A step by step guide to make your first VR multiplayer application with Unity and Photon.
▶ Get access to the source code: / valemvr
▶ Join the Discord channel: / discord
Download the Hand Presence Unity Package :
drive.google.com/file/d/1xFBs...
TIMESTAMPS:
0:00 VR Setup
8:46 Photon Setup
11:53 Server Connection
18:24 Network Player Spawn
23:24 Network Player Setup
#vr #vrdev #madewithunity

Пікірлер: 356
@ValemVR
@ValemVR 3 жыл бұрын
Hi guys I hope you enjoyed this tutorial. Sorry for the lack of upload in the previous two week, I took some vacation and I'm now ready more than ever to make some great content. As always, if you have any suggestion for the second part of the VR multiplayer you can comment bellow. I've also put different section in the video to help you if you want to skip a certain part for example. Have fun and see you in the next one
@LunarN0v4
@LunarN0v4 3 жыл бұрын
Valem Will Do!
@EnricoSperanza
@EnricoSperanza 3 жыл бұрын
Please add Voice using Vivox not Photon Voice...
@peng6220
@peng6220 3 жыл бұрын
Maybe the second part can have item grabbing if it doesn't work here?
@UniProgrammer
@UniProgrammer 3 жыл бұрын
Can you go over syncronzing objects in the scene for all players in the lobby? For example, if one player rolls a ball then the other players can see and hear the ball rolling. (if it has sound of course)
@peng6220
@peng6220 3 жыл бұрын
@@UniProgrammer yea I'd like to see that as well
@conraddugger4165
@conraddugger4165 3 жыл бұрын
You are literally changing the world of new VR developers.
@amiibojeremiah809
@amiibojeremiah809 3 жыл бұрын
@@ProgNoizesB just downgrade the asset
@cedricknapp2889
@cedricknapp2889 3 жыл бұрын
Patron dollars well spent, you're a legend! In the weird days of Brackeys shutting down his channel, you're such a bright light shining through. Keep up the amazing work man! You help SO MANY people every day!! The impact you make is MASSIVE. Please keep doing what you're doing. ♥️ From the VR developers and VR consumers. Please never forget how influential and benefitial you are on the industry and us as individuals.
@ValemVR
@ValemVR 3 жыл бұрын
Thank you so much cedric for that wholesome message it means a lot. Brackeys shutting down was really sad news to me. He was the inspiration for starting this channel. 🙁
@matthewbal1
@matthewbal1 3 жыл бұрын
Dude I had no idea doing multiplayer in VR could be so easy. I've got unity experience making mobile apps but it seems that the skills transfer much more than I thought! You've inspired me to make a VR game 😁
@soareverix
@soareverix 3 жыл бұрын
I remember requesting this as a Patreon along with a bunch of other people and now I'm so excited that it's becoming real!
@ValemVR
@ValemVR 3 жыл бұрын
That was a great request ! Thank you for suggesting this! :)
@curranh.8328
@curranh.8328 3 жыл бұрын
@@ValemVR This tutorial convinced me to become a patron, as well! The work you're doing and the availability you're bringing to the table is INCREDIBLE! I fully believe you're starting to change the world because the tutorials you create are so well crafted and so well hand-picked and so focused!! That capability and ability to teach demonstrates a lot more to me than just being a good teacher -- But those you teach with what you create is definitely shaping the future by catching those VR devs before guiding their journeys, and I feel like that future is good and safe in your hands! :)
@ValemVR
@ValemVR 3 жыл бұрын
@@curranh.8328 that comment went directly to my heart thank you man
@KotieDev
@KotieDev 3 жыл бұрын
Absolutely amazing tutorial. I've recently bought an Oculus Rift S and I love game development so obviously making a VR game was a good idea. Gone through all of your introduction tutorials and this one now. I cannot wait for more episodes :D
@CitizenPurpelios
@CitizenPurpelios 3 жыл бұрын
Possibly the most brilliant tutorial i've ever done. Well done, Valem.
@ZaneyOG
@ZaneyOG 3 жыл бұрын
Thank you for making such fantastic tutorials. very happy to be supporting you on Patreon! Money well spent in my opinion
@ValemVR
@ValemVR 3 жыл бұрын
Thanks for supporting my work Zaney you're the best !
@adso9889
@adso9889 3 жыл бұрын
This channel will be huge in upcoming years with the quality content being delivered with the same consistency, in XR domain.
@M1ke
@M1ke 3 жыл бұрын
Ah i was just testing this out on my own, glad to see it all in one video
@Kranckys
@Kranckys 3 жыл бұрын
why do all the good vr devs who actually make helpful videos have such THICC accents lmao
@cedricvillani8502
@cedricvillani8502 3 жыл бұрын
They're NOT good devs, one is and they all copy and voice over them. KZfaqrs teaching KZfaqrs. These ppl suck and usually try to get ppl to download there malware.
@dawaysss7987
@dawaysss7987 2 жыл бұрын
For anyone wondering the XR rig has been changed into the XR origin :)
@RealSweetRevenge
@RealSweetRevenge 3 жыл бұрын
Yessssssssssssss finally!! Thanks Valem!
@hernandonj
@hernandonj 2 жыл бұрын
Awesome video! very clear, well paced and easy to understand. Thanks so much!
@StickBonelab
@StickBonelab 3 ай бұрын
thank u for the good tutorial I've been trying to figure this out for days
@younesl885
@younesl885 3 жыл бұрын
As usual, thank you so much for your great tutorials. You’re the best 👍👍
@angelikaprzeliorz8325
@angelikaprzeliorz8325 Жыл бұрын
That is an awesome tutorial. I keep coming back to it!
@ramanchaudhary1737
@ramanchaudhary1737 3 жыл бұрын
You are so great... One day you will become famouss on youtube for sure... Keep working like that😁
@petroskontrazis5369
@petroskontrazis5369 3 жыл бұрын
Your videos are the best! I am really thankful, I learned a lot!
@zeroplayz5525
@zeroplayz5525 Жыл бұрын
DUDE! You are a legend! I needed this!❤
@Break.
@Break. 3 жыл бұрын
Oh damn I have been using Mirror to make my multiplayer vr game but I will still try to take some concepts from this video to put into mine!
@ralphsayah2453
@ralphsayah2453 3 жыл бұрын
Merci Valem pour ce tutorial!! Simple et rapide... top
@ValemVR
@ValemVR 3 жыл бұрын
Avec plaisir Ralph ! 😀
@mesopable
@mesopable 3 жыл бұрын
Yey. Great subject! Thanks for the video.
@paulsventure
@paulsventure 3 жыл бұрын
This is such great content!!
@digitalstudioCL
@digitalstudioCL 3 жыл бұрын
This tutorial is really amazing. Thanks!!
@peng6220
@peng6220 3 жыл бұрын
Thank you so much for this!
@IPete2
@IPete2 3 жыл бұрын
Brilliant! :) Thanks Valem!
@fishgethirsty6377
@fishgethirsty6377 3 жыл бұрын
Thank you soooooooooo much for the tutorial and the hands
@Mtech7752
@Mtech7752 3 жыл бұрын
Thank you for this tutorial. Its awesome.
@mario123mario123
@mario123mario123 2 жыл бұрын
Very nice Tutorial :) I liked it a lot :P I have now a beginning of a multiplayer VR game :) on to the next lesson :D
@nace6849
@nace6849 3 жыл бұрын
You are the best vr unity ytber ever!
@retrobullet588
@retrobullet588 3 жыл бұрын
31:00 is a good way to check network lag :-) anyhow ... great video .. thankyou mr Valem!
@ginoantenucci6424
@ginoantenucci6424 3 жыл бұрын
Thank you so much it helped a ton because of you now I'm encouraged to start learning more stuff a making a vr game I I'm so thankful for you thank you
@ginoantenucci6424
@ginoantenucci6424 3 жыл бұрын
Then before a
@callmeartbot9939
@callmeartbot9939 3 жыл бұрын
im geting a oculus quest 2 im exited to start following your tutorials
@bren4409
@bren4409 3 жыл бұрын
Can't wait to make some content and plays with the boys. Guns are always a good time in VR. :D
@t0urister
@t0urister 3 жыл бұрын
You are a legend my friend ❤
@NaviYT
@NaviYT 2 жыл бұрын
DUDE THIS IS EXACTLY WHAT I WAS LOOKING FOR
@_Dbxizms
@_Dbxizms 2 жыл бұрын
did you get the network player script working?
@r1pfake521
@r1pfake521 3 жыл бұрын
For debug/testing you can add some logic to offset the "other" player (by checking the IsMine property) position forward a little and offset rotation by 180, then you can play with a mirrior version of yourself ;)
@TimKarlMarxLenin
@TimKarlMarxLenin 3 жыл бұрын
Thank you for helping begginers, you video so cool! Liked every video
@M0TYSHIZ
@M0TYSHIZ 3 жыл бұрын
Someone finally made one! I was going to do it soon if there wasn't one by the end of the year. Fantastic job, my dude.
@apocatas4990
@apocatas4990 3 жыл бұрын
Excellent :) Merci ! J'espère que tu resteras sur le Quest 1 et qu'on pourra profiter encore longtemps de tes tutos !
@ValemVR
@ValemVR 3 жыл бұрын
Oh ben bonne nouvelle, tous mes tutos qui fonctionnent sur quest 1 marchent aussi pour quest 2 ! :)
@warrior-e_x_e1240
@warrior-e_x_e1240 2 жыл бұрын
@@ValemVR croissant croissant
@alexandrevalentin8587
@alexandrevalentin8587 Жыл бұрын
@@ValemVR Est-ce que la configuration que tu as monté dans la video marche avec tous les casques compatibles SteamVR (je pense particulierement aux casques Pico)
@KimboKG14
@KimboKG14 3 жыл бұрын
luckily you make these long tutorials!
@pixelb0i255
@pixelb0i255 3 жыл бұрын
One of the many reasons I became a Patreon supporter. So very helpful. Hope you enjoyed your vacation. What inspired this aside from multiple requests? Also, a request to go along with this. Can you incorporate the Oculus Avatar hands and body?
@erasmobellumat3973
@erasmobellumat3973 3 жыл бұрын
I LOVE YOU MAN!
@vrtools
@vrtools 3 жыл бұрын
great video!
@qoodor
@qoodor 2 жыл бұрын
Thank you so much, you saved my life.
@XRelabs
@XRelabs 3 жыл бұрын
thank you very much 😊 you truly deserve a patreon support, here i go
@ValemVR
@ValemVR 3 жыл бұрын
Thanks for the support man it really is appreciated
@vishalnaruka4360
@vishalnaruka4360 3 жыл бұрын
Love your tutorials... If you are making this serie🙄, please make sure to make it like you create a room and invite your friends to it and enter in online multiplayer together like pubg, cod, fall guys, etc. It'll be very helpful to everyone.
@bobbyzeno8889
@bobbyzeno8889 3 жыл бұрын
amazing thank you
@malintis2882
@malintis2882 Жыл бұрын
Unity 2023 has huge updates in their multiplayer support. If it could make XR multiplayer easier to develop, it might be a neat idea to see an updated tutorial on the best approach of XR multiplayer in 2023.
@NetFelixOfficiel
@NetFelixOfficiel 3 жыл бұрын
Wow t’est video sont vraiment genial
@greatfreeapps
@greatfreeapps Жыл бұрын
ty :)
@emilypeek1
@emilypeek1 3 жыл бұрын
Great tutorial, I really admire you! Is it possible to combine this with the How to Make a Body project or would it require a totally different approach?
@limitman
@limitman 3 жыл бұрын
I made my own game thanks to you
@sairajuprabhusairajuprabhu4209
@sairajuprabhusairajuprabhu4209 3 жыл бұрын
Excellent bro
@ValemVR
@ValemVR 3 жыл бұрын
Thank you sairajuprabhu
@Max-mm1gl
@Max-mm1gl 2 жыл бұрын
thank you for helping me create Banana bash! i hope all of you love it
@tugayakdeniz8754
@tugayakdeniz8754 2 жыл бұрын
it's just perfect.
@JoshY01
@JoshY01 2 жыл бұрын
Nice!!
@PhilippeGauthier
@PhilippeGauthier 3 жыл бұрын
Thanks a lot Valem ! As always it's a great tutorial. Do you happen to know any self hosting server solution for multiplayer, if I don't want to share the data on internet ?
@sammygoh
@sammygoh 3 жыл бұрын
Hello. Thanks for your tutorial. I was wondering if you could do another vr multiplayer tutorial using newly released MLAPI in unity 2021? Any help much appreciated
@exposuresound6239
@exposuresound6239 3 жыл бұрын
hello, great video .. very nice to see. i also have one question.... if we dont use the same controllers that you have but the standard htc vive controllers.. we can also use unityengine.XR with and the transform target, XR line in our NetworkPlayer script ? or we do need something else ?
@haraldgundersen7303
@haraldgundersen7303 8 ай бұрын
It would bevery useful to see how a client can direct grab a network interactable, take ownership so all clients experiences the movement of the interactable the same way..
@RideAlexScoot
@RideAlexScoot 3 жыл бұрын
Great video ! What about hand tracking in multiplayer ?
@matiasbrunacci
@matiasbrunacci 3 жыл бұрын
Great tutorial! Any way to do this with HandTracking on Quest?
@twistedsagedk
@twistedsagedk 3 жыл бұрын
Hi Valem. I've done a lot of Unity multiplayer games, and a lot of VR. Usually I have two different control modes, so I can test network, without having a bunch of headsets ;) Can you recommend any tools? I've tried the VR emulation driver and VR emulation software, and it doesn't work so well. The best option would be some VR emulator, that makes the app think there is a real headset and controller connected, but so far I haven't found anything good :)
@257faiz
@257faiz 3 жыл бұрын
Can you make tutorial vr multiplayer with leap motion please? It will be great if you make it, thank you
@kingfhd2424
@kingfhd2424 3 жыл бұрын
wooooooooohoooooooooooo
@jbiggins1049
@jbiggins1049 3 жыл бұрын
For those replicating this and not seeing the hand controllers move, I had to remove the default XR controller component too and re-add the device-based one. He covers this difference in his other tutorial. Great video as always!
@stephenprosso
@stephenprosso 3 жыл бұрын
which tutorial is this covered in? I can see my hands, but they are to low and they dont move with the controllers. Thanks!
@stevehall4292
@stevehall4292 3 жыл бұрын
Nice one mate
@kxtrxn_bbayr3832
@kxtrxn_bbayr3832 3 жыл бұрын
Hi nice video can you pleas make a tutorial how to drive something (jet,car,boat) thanks
@Bricksalive
@Bricksalive 3 жыл бұрын
Question: could photon be used if I wanted to make a game that connects to a phone app for local multiplayer, kinda like acron attack of the squirrels?
@ur4n1um
@ur4n1um 3 жыл бұрын
Other player joins and i can see them, but they are a puddle on the floor and do not move? photon view component is on them, any ideas?
@mahado-limited
@mahado-limited 3 жыл бұрын
@Valem what can you do a similar tutoria,but using instead the oculus integration asset instead of that of XR?
@jaames2570
@jaames2570 2 жыл бұрын
thx
@bencrystalofficial
@bencrystalofficial Жыл бұрын
Does anyone know the best way to map the position of Meta hands through hand tracking to another player? I'm struggling because it's not an XRNode but the hands don't spawn in ahead of time afaik so I can't use a standard transform either, although there's probably something I'm missing there! I want to just get like the wrist joint position for now to move on with the tutorial, thank you!
@EEGAR
@EEGAR 3 жыл бұрын
FINALLY
@AdrianMeredith
@AdrianMeredith 3 жыл бұрын
YES!
@soareverix
@soareverix 3 жыл бұрын
If you're getting an error because 'Photon.Pun' doesn't exist (visual studio draws a red line under it), the solution I found is to move it into a different folder that has the Photon scripts in it. For some reason, this works. Hope this helps.
@yuribiasi2606
@yuribiasi2606 3 жыл бұрын
Oh man, I tried to move the script to several folders, but I can't find Photon.Pun
@soareverix
@soareverix 3 жыл бұрын
@@yuribiasi2606 Yeah. This didn't end up fixing the problem, either, as monobehavior didn't extend. So if you find a solution, let me know!
@soareverix
@soareverix 3 жыл бұрын
@@yuribiasi2606 I found a solution: make sure that you're using Pun 2 instead of Pun classic, and it will work! Use this asset: assetstore.unity.com/packages/tools/network/photon-unity-networking-classic-free-1786?q=photon+pun&orderBy=1
@Runix1
@Runix1 3 жыл бұрын
So for some reason Unity's XR toolkit doesn't register any input from my index/knuckles controllers, it only gets position and rotation. Any idea what could cause this?
@vrcxmeta4598
@vrcxmeta4598 3 жыл бұрын
im using unity version 2020.3, and instead of all the options under XR, there is just one option that says "Convert Main Camera To XR Rig" and when i click on it, it does what it says, but the LeftHand Controller and RightHand Controller GameObjects are missing
@renaldylawongan2175
@renaldylawongan2175 11 ай бұрын
Hello Valem, can you make a tutorial to create the whole body of networkplayer?
@karolstepien8213
@karolstepien8213 3 жыл бұрын
Do you know why photon isn't "showing" in visual studio 2019?
@joshuahyatt9465
@joshuahyatt9465 3 жыл бұрын
Very creative scripts. Any reason not to use Tracked Pose Driver for the VR transform syncing?
@_Zantler
@_Zantler 2 жыл бұрын
This Tutorial works in VR Crossplatform?? (Oculus, Vive, etc)
@aregbedavid8007
@aregbedavid8007 2 жыл бұрын
Will we need to add a transform view to every gameObject that will change or move? also how about the values and scripts
@saichinni5155
@saichinni5155 3 жыл бұрын
Waiting for continuing tutorial
@ThatGuyVR
@ThatGuyVR Жыл бұрын
i love you
@16-bitpotato9
@16-bitpotato9 3 жыл бұрын
so i want my game to be cross platform for rift S and oculus quest 2 and when i went to the second option to allow vr support XR didnt show up. i uninstalled then reinstalled and still it didnt work
@cedricknapp2889
@cedricknapp2889 3 жыл бұрын
For some reason my networked hands are about 1/3 of the normal hands scale... They're like baby hands, but I'm not sure what's causing that to happen.
@infinitegamer171
@infinitegamer171 3 жыл бұрын
Hii Valem can you do that how to change the avatars that diffrent between the players
@anjalia2246
@anjalia2246 Жыл бұрын
Is there any reference to map the hands to Oculus integration hand tracking? Instead of XR
@TusharSoni-us6sc
@TusharSoni-us6sc Жыл бұрын
Please recreate this , many feature are changed , and we all cant figure out how to make it again now
@JefferyPlayz42
@JefferyPlayz42 Жыл бұрын
I'm getting an error under where you put the script saying 'The associated script can not be loaded. Please fix any compile errors and assign a valid script'. I am using the 2021.3.23 version and have no compile errors. Any help would be appreciated.
@xezienstudios
@xezienstudios Жыл бұрын
One thing i don't get, i have made a XR rig with full movement and everything would i just make that my Network Player?
@sohamkhunt7093
@sohamkhunt7093 2 жыл бұрын
Hello Guys, For development purpose, How can I run our VR game in unity editor window in MAC Or Windows instead of Oculus quest 2. I see this video, In this video you run the game in unity editor. So please help me for that..
@bradder1eggs670
@bradder1eggs670 Жыл бұрын
hiya im having a slight problem where the hands have the button functions but wont move and stay stuck to the floor any tips thanks
@ClarkyXR
@ClarkyXR 3 жыл бұрын
Can this be done to connect two Oculus Quests together?
@carafurry7862
@carafurry7862 3 жыл бұрын
I was thinking of implementing vr into a game I've been working on, however the player caricature isn't always the same, my game has an in game custom avatar maker, and so the avatars can very a lot, I was thinking maybe I could just make it a requirement that your caricature has to have hands and a head, however the arms is where its going to choke up, how would I go about making the arms move relative to the hands if I have no predictability on how long the arms are or were?
@aldozond
@aldozond 2 жыл бұрын
Use the anchor points for the hands as Animation Rigging targets - check out tutorials (Brackeys et al) on animation rigging in unity and it should solve your problem
@PhantomFearYT
@PhantomFearYT 3 жыл бұрын
Using a vive, the controllers do not track and remain seated on the floor, head moves fine, controllers react to button inputs. They just do not track hand position, any ideas?
@bala3608
@bala3608 3 жыл бұрын
I had a similar thing... my device controllers were XR Controller (Action-based) but changing it to XR Controller (Device-based) fixed it
@JuniDevs
@JuniDevs 3 жыл бұрын
Change from XR Interactions Toolkit from 1.0.0 to 0.9.4 That should fix it!
@abdullahbutt9419
@abdullahbutt9419 2 жыл бұрын
if i play the build the controller of mine are same of other player and i cant able to see other player movements or anything... Need Help...!☹
@imlogvn
@imlogvn 2 жыл бұрын
Can someone help me i am running 2019.4.37f1 and it is not working i do everthing correctly but it does have an option to create the rig. Pls Help Me
How to Make a VR Multiplayer Game - PART 2
27:13
Valem
Рет қаралды 58 М.
Fast and Furious: New Zealand 🚗
00:29
How Ridiculous
Рет қаралды 45 МЛН
MISS CIRCLE STUDENTS BULLY ME!
00:12
Andreas Eskander
Рет қаралды 20 МЛН
CHOCKY MILK.. 🤣 #shorts
00:20
Savage Vlogs
Рет қаралды 14 МЛН
5 Unity Assets for VR You Need to Know
9:55
Justin P Barnett
Рет қаралды 79 М.
World's Most Impossible Trickshots
20:53
Airrack
Рет қаралды 1,2 МЛН
I tried Discord Bot Makers...
14:19
FaceDev
Рет қаралды 112 М.
I turned my house into a VR Game
8:02
Valem
Рет қаралды 1,2 МЛН
A truly 2D game isn't what you think it is...
13:23
NivMiz
Рет қаралды 33 М.
Let's Make a VR Game Part 1 - VR Setup and Hand Presence
16:07
Valem Tutorials
Рет қаралды 46 М.
Complete VR Body Setup - Arms and Legs IK with Hand Animation
17:36
Valem Tutorials
Рет қаралды 58 М.
THE CRAZIEST GAME OF VR MINI GOLF | Heung-Min Son vs Harry Kane
20:57
Tottenham Hotspur
Рет қаралды 526 М.
How do non-euclidean games work? | Bitwise
14:19
DigiDigger
Рет қаралды 2,4 МЛН
Bringing GLaDOS to life with Robotics and AI
13:04
Dave's Armoury
Рет қаралды 827 М.