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 - Ігри
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
Valem Will Do!
Please add Voice using Vivox not Photon Voice...
Maybe the second part can have item grabbing if it doesn't work here?
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)
@@UniProgrammer yea I'd like to see that as well
You are literally changing the world of new VR developers.
@@ProgNoizesB just downgrade the asset
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.
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. 🙁
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!
That was a great request ! Thank you for suggesting this! :)
@@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! :)
@@curranh.8328 that comment went directly to my heart thank you man
Possibly the most brilliant tutorial i've ever done. Well done, Valem.
Thank you for making such fantastic tutorials. very happy to be supporting you on Patreon! Money well spent in my opinion
Thanks for supporting my work Zaney you're the best !
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 😁
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
This channel will be huge in upcoming years with the quality content being delivered with the same consistency, in XR domain.
Yessssssssssssss finally!! Thanks Valem!
Ah i was just testing this out on my own, glad to see it all in one video
Awesome video! very clear, well paced and easy to understand. Thanks so much!
thank u for the good tutorial I've been trying to figure this out for days
As usual, thank you so much for your great tutorials. You’re the best 👍👍
You are so great...
One day you will become famouss on youtube for sure...
Keep working like that😁
That is an awesome tutorial. I keep coming back to it!
Your videos are the best! I am really thankful, I learned a lot!
DUDE! You are a legend! I needed this!❤
why do all the good vr devs who actually make helpful videos have such THICC accents lmao
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.
Yey. Great subject! Thanks for the video.
This tutorial is really amazing. Thanks!!
This is such great content!!
You are a legend my friend ❤
Merci Valem pour ce tutorial!! Simple et rapide... top
Avec plaisir Ralph ! 😀
Brilliant! :) Thanks Valem!
Thank you so much for this!
Thank you for this tutorial. Its awesome.
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
For anyone wondering the XR rig has been changed into the XR origin :)
Thank you soooooooooo much for the tutorial and the hands
Thank you for helping begginers, you video so cool! Liked every video
You are the best vr unity ytber ever!
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!
DUDE THIS IS EXACTLY WHAT I WAS LOOKING FOR
did you get the network player script working?
im geting a oculus quest 2 im exited to start following your tutorials
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.
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
Then before a
31:00 is a good way to check network lag :-) anyhow ... great video .. thankyou mr Valem!
luckily you make these long tutorials!
Excellent :) Merci ! J'espère que tu resteras sur le Quest 1 et qu'on pourra profiter encore longtemps de tes tutos !
Oh ben bonne nouvelle, tous mes tutos qui fonctionnent sur quest 1 marchent aussi pour quest 2 ! :)
@@ValemVR croissant croissant
@@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)
Can't wait to make some content and plays with the boys. Guns are always a good time in VR. :D
Thank you so much, you saved my life.
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 ;)
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?
I LOVE YOU MAN!
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?
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?
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
great video!
Great tutorial! Any way to do this with HandTracking on Quest?
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?
I had a similar thing... my device controllers were XR Controller (Action-based) but changing it to XR Controller (Device-based) fixed it
Change from XR Interactions Toolkit from 1.0.0 to 0.9.4 That should fix it!
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 ?
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 :)
Wow t’est video sont vraiment genial
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 ?
Great video ! What about hand tracking in multiplayer ?
@Valem what can you do a similar tutoria,but using instead the oculus integration asset instead of that of XR?
amazing thank you
thank you very much 😊 you truly deserve a patreon support, here i go
Thanks for the support man it really is appreciated
Very creative scripts. Any reason not to use Tracked Pose Driver for the VR transform syncing?
I made my own game thanks to you
Excellent bro
Thank you sairajuprabhu
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.
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?
Do you know why photon isn't "showing" in visual studio 2019?
ty :)
Will we need to add a transform view to every gameObject that will change or move? also how about the values and scripts
it's just perfect.
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?
Is there any reference to map the hands to Oculus integration hand tracking? Instead of XR
Hii Valem can you do that how to change the avatars that diffrent between the players
This Tutorial works in VR Crossplatform?? (Oculus, Vive, etc)
Nice!!
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
Can you make tutorial vr multiplayer with leap motion please? It will be great if you make it, thank you
Can this be done to connect two Oculus Quests together?
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?
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.
Hello Valem, can you make a tutorial to create the whole body of networkplayer?
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!
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?
thank you for helping me create Banana bash! i hope all of you love it
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?
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
I guess I am a little late to ask, but, would this tutorial also work if I use photon Fusion?
What option should I take to test this in my HoloLens2 ?
Can you remake your tutorial on VR Bodies using the new Unity XR Tutorial
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!
which tutorial is this covered in? I can see my hands, but they are to low and they dont move with the controllers. Thanks!
Nice one mate
i can't run the game twoi time like you , there is some settings to do ?
But if you instantiate the player why you leave the XR rig on scene too?
Does this also work for The Oculus quest integration?
Hi nice video can you pleas make a tutorial how to drive something (jet,car,boat) thanks
thx
When I was testing my game my hands did not move with my controller. How do I fix this?
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
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
Does this work with Unity 5.6.3? Im tryimg to make a multiplayer mod for a game
at 18:54 how does he function the monobehaviourPunCallbacks??
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?
Can you make a video on how to set up vr in unity 2020
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..