How to Make a VR Multiplayer Game - PART 1

Поділитися
Вставка
  • Опубліковано 6 лип 2024
  • 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
  • Ігри

КОМЕНТАРІ • 358

  • @ValemVR
    @ValemVR  3 роки тому +41

    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 роки тому +1

      Please add Voice using Vivox not Photon Voice...

    • @peng6220
      @peng6220 3 роки тому +2

      Maybe the second part can have item grabbing if it doesn't work here?

    • @UniProgrammer
      @UniProgrammer 3 роки тому +2

      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 роки тому +1

      @@UniProgrammer yea I'd like to see that as well

  • @conraddugger4165
    @conraddugger4165 3 роки тому +147

    You are literally changing the world of new VR developers.

  • @cedricknapp2889
    @cedricknapp2889 3 роки тому +54

    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 роки тому +14

      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. 🙁

  • @soareverix
    @soareverix 3 роки тому +43

    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 роки тому +7

      That was a great request ! Thank you for suggesting this! :)

    • @curranh.8328
      @curranh.8328 3 роки тому +1

      @@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 роки тому +1

      @@curranh.8328 that comment went directly to my heart thank you man

  • @CitizenPurpelios
    @CitizenPurpelios 3 роки тому

    Possibly the most brilliant tutorial i've ever done. Well done, Valem.

  • @ZaneyOG
    @ZaneyOG 3 роки тому +8

    Thank you for making such fantastic tutorials. very happy to be supporting you on Patreon! Money well spent in my opinion

    • @ValemVR
      @ValemVR  3 роки тому +1

      Thanks for supporting my work Zaney you're the best !

  • @matthewbal1
    @matthewbal1 3 роки тому +1

    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 😁

  • @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

  • @adso9889
    @adso9889 3 роки тому +1

    This channel will be huge in upcoming years with the quality content being delivered with the same consistency, in XR domain.

  • @RealSweetRevenge
    @RealSweetRevenge 3 роки тому +5

    Yessssssssssssss finally!! Thanks Valem!

  • @M1ke
    @M1ke 3 роки тому

    Ah i was just testing this out on my own, glad to see it all in one video

  • @hernandonj
    @hernandonj 2 роки тому

    Awesome video! very clear, well paced and easy to understand. Thanks so much!

  • @ChimpDev
    @ChimpDev 2 місяці тому

    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 👍👍

  • @ramanchaudhary1737
    @ramanchaudhary1737 3 роки тому +3

    You are so great...
    One day you will become famouss on youtube for sure...
    Keep working like that😁

  • @angelikaprzeliorz8325
    @angelikaprzeliorz8325 Рік тому

    That is an awesome tutorial. I keep coming back to it!

  • @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!❤

  • @Kranckys
    @Kranckys 3 роки тому +14

    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. UA-camrs teaching UA-camrs. These ppl suck and usually try to get ppl to download there malware.

  • @mesopable
    @mesopable 3 роки тому

    Yey. Great subject! Thanks for the video.

  • @digitalstudioCL
    @digitalstudioCL 3 роки тому

    This tutorial is really amazing. Thanks!!

  • @paulsventure
    @paulsventure 3 роки тому +2

    This is such great content!!

  • @t0urister
    @t0urister 3 роки тому

    You are a legend my friend ❤

  • @ralphsayah2453
    @ralphsayah2453 3 роки тому +1

    Merci Valem pour ce tutorial!! Simple et rapide... top

    • @ValemVR
      @ValemVR  3 роки тому +1

      Avec plaisir Ralph ! 😀

  • @IPete2
    @IPete2 3 роки тому

    Brilliant! :) Thanks Valem!

  • @peng6220
    @peng6220 3 роки тому +1

    Thank you so much for this!

  • @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

  • @dawaysss7987
    @dawaysss7987 2 роки тому +6

    For anyone wondering the XR rig has been changed into the XR origin :)

  • @fishgethirsty6377
    @fishgethirsty6377 3 роки тому

    Thank you soooooooooo much for the tutorial and the hands

  • @TimKarlMarxLenin
    @TimKarlMarxLenin 2 роки тому

    Thank you for helping begginers, you video so cool! Liked every video

  • @nace6849
    @nace6849 3 роки тому

    You are the best vr unity ytber ever!

  • @Break.
    @Break. 3 роки тому +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!

  • @NaviYT
    @NaviYT 2 роки тому

    DUDE THIS IS EXACTLY WHAT I WAS LOOKING FOR

    • @_Dbxizms
      @_Dbxizms 2 роки тому +1

      did you get the network player script working?

  • @callmeartbot9939
    @callmeartbot9939 3 роки тому

    im geting a oculus quest 2 im exited to start following your tutorials

  • @M0TYSHIZ
    @M0TYSHIZ 3 роки тому +4

    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.

  • @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

  • @retrobullet588
    @retrobullet588 3 роки тому

    31:00 is a good way to check network lag :-) anyhow ... great video .. thankyou mr Valem!

  • @KimboKG14
    @KimboKG14 3 роки тому

    luckily you make these long tutorials!

  • @apocatas4990
    @apocatas4990 3 роки тому +1

    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 роки тому +2

      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)

  • @bren4409
    @bren4409 3 роки тому

    Can't wait to make some content and plays with the boys. Guns are always a good time in VR. :D

  • @qoodor
    @qoodor 2 роки тому

    Thank you so much, you saved my life.

  • @r1pfake521
    @r1pfake521 3 роки тому +2

    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 ;)

  • @emilypeek1
    @emilypeek1 3 роки тому +1

    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?

  • @erasmobellumat3973
    @erasmobellumat3973 3 роки тому +1

    I LOVE YOU MAN!

  • @Bricksalive
    @Bricksalive 3 роки тому +1

    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?

  • @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?

  • @sammygoh
    @sammygoh 3 роки тому +2

    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

  • @vrtools
    @vrtools 3 роки тому

    great video!

  • @matiasbrunacci
    @matiasbrunacci 3 роки тому +3

    Great tutorial! Any way to do this with HandTracking on Quest?

  • @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!

  • @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 ?

  • @twistedsagedk
    @twistedsagedk 3 роки тому +1

    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 :)

  • @NetFelixOfficiel
    @NetFelixOfficiel 3 роки тому

    Wow t’est video sont vraiment genial

  • @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 ?

  • @RideAlexScoot
    @RideAlexScoot 3 роки тому +2

    Great video ! What about hand tracking in multiplayer ?

  • @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?

  • @bobbyzeno8889
    @bobbyzeno8889 3 роки тому

    amazing thank you

  • @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

  • @joshuahyatt9465
    @joshuahyatt9465 2 роки тому

    Very creative scripts. Any reason not to use Tracked Pose Driver for the VR transform syncing?

  • @limitman
    @limitman 3 роки тому

    I made my own game thanks to you

  • @sairajuprabhusairajuprabhu4209
    @sairajuprabhusairajuprabhu4209 3 роки тому

    Excellent bro

    • @ValemVR
      @ValemVR  3 роки тому +1

      Thank you sairajuprabhu

  • @vishalnaruka4360
    @vishalnaruka4360 3 роки тому +10

    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.

  • @Runix1
    @Runix1 3 роки тому +1

    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?

  • @karolstepien8213
    @karolstepien8213 3 роки тому +3

    Do you know why photon isn't "showing" in visual studio 2019?

  • @greatfreeapps
    @greatfreeapps Рік тому +1

    ty :)

  • @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

  • @tugayakdeniz8754
    @tugayakdeniz8754 2 роки тому

    it's just perfect.

  • @ur4n1um
    @ur4n1um 3 роки тому +2

    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?

  • @anjalia2246
    @anjalia2246 Рік тому

    Is there any reference to map the hands to Oculus integration hand tracking? Instead of XR

  • @infinitegamer171
    @infinitegamer171 3 роки тому

    Hii Valem can you do that how to change the avatars that diffrent between the players

  • @_Zantler
    @_Zantler 2 роки тому +3

    This Tutorial works in VR Crossplatform?? (Oculus, Vive, etc)

  • @JoshY01
    @JoshY01 2 роки тому

    Nice!!

  • @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

  • @257faiz
    @257faiz 3 роки тому +1

    Can you make tutorial vr multiplayer with leap motion please? It will be great if you make it, thank you

  • @ClarkyXR
    @ClarkyXR 3 роки тому +1

    Can this be done to connect two Oculus Quests together?

  • @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?

  • @malintis2882
    @malintis2882 11 місяців тому

    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.

  • @renaldylawongan2175
    @renaldylawongan2175 10 місяців тому

    Hello Valem, can you make a tutorial to create the whole body of networkplayer?

  • @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!

  • @queenb3730
    @queenb3730 2 місяці тому

    I dont know if this is a stupid question, but when I press on play to see the VR stuff, do I need VR glasses?`Are you seeing the hands bc you have ur oculus connected?

  • @Max-mm1gl
    @Max-mm1gl 2 роки тому

    thank you for helping me create Banana bash! i hope all of you love it

  • @carafurry7862
    @carafurry7862 3 роки тому +1

    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 роки тому +1

      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

  • @albertoaltozano8354
    @albertoaltozano8354 Рік тому

    I guess I am a little late to ask, but, would this tutorial also work if I use photon Fusion?

  • @SilasC
    @SilasC 3 роки тому

    What option should I take to test this in my HoloLens2 ?

  • @silveridgevr
    @silveridgevr 3 роки тому

    Can you remake your tutorial on VR Bodies using the new Unity XR Tutorial

  • @jbiggins1049
    @jbiggins1049 3 роки тому +1

    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

  • @adrienalard9870
    @adrienalard9870 3 роки тому

    i can't run the game twoi time like you , there is some settings to do ?

  • @starbuck3980
    @starbuck3980 2 роки тому

    But if you instantiate the player why you leave the XR rig on scene too?

  • @JRScreative
    @JRScreative 3 роки тому

    Does this also work for The Oculus quest integration?

  • @kxtrxn_bbayr3832
    @kxtrxn_bbayr3832 3 роки тому

    Hi nice video can you pleas make a tutorial how to drive something (jet,car,boat) thanks

  • @jaames2570
    @jaames2570 2 роки тому +1

    thx

  • @RustaVR
    @RustaVR Рік тому +1

    When I was testing my game my hands did not move with my controller. How do I fix this?

  • @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

  • @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

  • @frityet2840
    @frityet2840 3 роки тому

    Does this work with Unity 5.6.3? Im tryimg to make a multiplayer mod for a game

  • @RRGage
    @RRGage 2 роки тому

    at 18:54 how does he function the monobehaviourPunCallbacks??

  • @breadedbooty2810
    @breadedbooty2810 3 роки тому

    I'm getting "error CS0201: Only assignment, call, increment, decrement, await, and new object expressions can be used as a statement." and I'm pretty sure my code is the same. Any fixes?

  • @bryangamingOG
    @bryangamingOG 3 роки тому

    Can you make a video on how to set up vr in unity 2020

  • @haraldgundersen7303
    @haraldgundersen7303 7 місяців тому +1

    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..