How To Make a Multiplayer Game in VR? - Photon

Sdílet
Vložit
  • čas přidán 16. 07. 2024
  • Join our in-person XR Hackathon in Berlin and win up to $25k in funding and prizes 👉🏽: www.xrcc.events/
    Want to build a fulfilling and well paid career in AR/VR (Spatial Computing)? 👀
    Our best tips, strategies, and secrets from teaching AR and VR since 2016 - everything distilled in one Free Course 👉🏽: bit.ly/48MBgT0
    Do you want to land your dream job in AR/VR? 👉🏽 bit.ly/3NnTAsh
    Multiplayer fundamentals👇🏽
    • How Do Online Multipla...
    Unity Base Project👇🏽
    github.com/immersive-insiders...
    Link for Scripts👇🏽
    drive.google.com/drive/folder...
    Are you serious about becoming an XR Developer?
    Check out learn.immersive-insiders.com/
    ✅ XR Programming & Design Courses
    ✅ Private Discord community
    ✅ Optional 1on1 Coaching
    ✅ Interactive Live Classes
    ✅ and much more
    🔔Subscribe to our channel to get started in AR/VR for Development, Business, Design, and much, much more: 👉 / @dineshpunni
    🔻Let's connect!
    Website: immersive-insiders.com/
    LinkedIn: / univrsitas
    🔻Let's collaborate!
    If you have any questions leave them in the comments below,
    for business inquiries contact us via e-mail: dinesh@dineshpunni.com
    Timestamps:
    00:00 - Introduction
    00:21 - Downloading Photon Fusion
    00:41 - Importing the SDK
    00:57 - Creating Photon App
    01:21 - Fusion Setup in Unity
    01:41 - Scene Setup
    03:56 - VR Multiplayer Setup
    09:45 - Building and Testing
    11:05 - Testing Using Simulator
    11:56 - Final Thoughts
  • Věda a technologie

Komentáře • 62

  • @immersiveinsiders
    @immersiveinsiders  Před 3 měsíci

    The SDK have been updated and you can find the updated scripts/UI Prefab in the resource channel of our Discord server: discord.gg/nx6rcb4kDc.

  • @TheAntimon13
    @TheAntimon13 Před 8 měsíci

    Wow! This was really nice. Thank you so much for creating this video. I would definitely be interested in getting additional tutorials about voide chat and all the other topics you mentioned.

  • @ganapathiasiddharth3654
    @ganapathiasiddharth3654 Před 8 měsíci

    its really impresive video, till now i was stopped at certain point because I don't have oculus device but by your tutorials related to stilumator will help us who can't effort for the device. Please post related videos I'm really waiting for your upcoming videos related to hand tracking and interaction and more.Thank you so much

  • @colorfullife2223
    @colorfullife2223 Před 8 měsíci

    U jus uploaded this in right time

  • @mohammadalikhadem4515
    @mohammadalikhadem4515 Před 6 měsíci

    Very nice video. Prefab workflow explained very well!

  • @CanadianCannabisSociety
    @CanadianCannabisSociety Před 6 měsíci

    amazing tutorial, thank you!

  • @gdv05
    @gdv05 Před 8 měsíci

    Good content, thank you so much.

  • @ar.stufff
    @ar.stufff Před 7 měsíci

    Thanks for this amazing video. You mentioned voice chat and other topics. Would you please make videos on those topics?

  • @WaenglTaengl
    @WaenglTaengl Před 8 měsíci

    That is a really good tutorial! The way you show the prefab workflow is really helpful! And there are not many videos out there that show VR and Networking in such clear and easy to follow manner! Well done! 🚀
    Will there be synchronized multiplayer interaction videos in the future, like handing over a tool to another player, manipulating objects locally but it is synced over the network etc? 🤗

    • @immersiveinsiders
      @immersiveinsiders  Před 8 měsíci

      Thanks a lot :D
      Yes, we have some plans to add interaction and voice chat as well in the future :)

    • @xulipaTV
      @xulipaTV Před 6 měsíci

      Excellent looking forward ! @@immersiveinsiders

  • @gamedevelopersukanta414
    @gamedevelopersukanta414 Před 2 měsíci

    Nice Video. Please post related videos I'm really waiting for your upcoming videos related to hand tracking and interaction , animation and more

  • @user-pi7gq6np5v
    @user-pi7gq6np5v Před dnem

    The video is very helpful. I can't find simple capsule with stick movement. And my network transform is different from the one in your video. Can you give me some advice. Thank you very much.

  • @ShamrozeKhan
    @ShamrozeKhan Před 5 měsíci +1

    Do you think pvp free roam fps has future ? Which company has the best PvP for free roam currently?

  • @TkMe2Mrz
    @TkMe2Mrz Před 4 měsíci

    Is there any way to do this without creating a UI to create a room and join? Can users just start in a centralized location/scene and use the UI menu I have created to transition to scenes more like a free-roam type of environment to hang out and explore?

  • @AmanChaudhary-tb7ly
    @AmanChaudhary-tb7ly Před měsícem

    hey can you continue this tutorial for grabbing an object also any other task for control by player by request authority, how to two or three players grab object

    • @immersiveinsiders
      @immersiveinsiders  Před měsícem

      Right now no plans on making that video, however we are working on videos that uses Photon and Meta avatars where you can grab objects. Check out this video:
      czcams.com/video/FYiN4_fpvM4/video.htmlsi=HxfRUtRGDBh4hB8l

  • @user-ld1nt5io8n
    @user-ld1nt5io8n Před 8 měsíci

    hey Can you add meta avatar in this multiplayer in next part ?

  • @rexMetaverse
    @rexMetaverse Před 4 měsíci

    I just need help for my users being able to leave the room and enter the session again from the main menu

  • @rexMetaverse
    @rexMetaverse Před 4 měsíci

    I need help leaving the room back to the main menu. Can you help with that or someone can please?

  • @just8989
    @just8989 Před 5 měsíci

    Thank you It was so uesfull. If possible can you make it using the Netcode

    • @immersiveinsiders
      @immersiveinsiders  Před 5 měsíci

      Yes, we have that already over here: czcams.com/video/sPKS3vjwvpU/video.htmlsi=mObwJ1DLuXXM1Yhz

  • @user-wu5ob7je7e
    @user-wu5ob7je7e Před 5 měsíci

    if im gonna grab object do he gonna see it?

  • @davidrainder6620
    @davidrainder6620 Před 6 měsíci

    Hi! Very useful tutorial! However, I'm experimenting a lot of trouble when it comes to starting/joining a session from a builded application in the Meta Quest 3. It just can't seem to be working and the server never starts running. If I build the app for PC and then run it using the Quest 3, it works! The server runs smooth and I can connect with other players.
    Do you happen to know what's going on with my Android builds?
    Thank you beforehand!

    • @immersiveinsiders
      @immersiveinsiders  Před 6 měsíci

      I am not really sure what the problem could be. It worked perfectly fine for me. What we did was android builds as well.

  • @nurulsyafika4716
    @nurulsyafika4716 Před měsícem

    I would like to ask in advance for this tutorial using what architecture from fuison? Is it server, host or shared?

  • @EliasArnn
    @EliasArnn Před 3 měsíci

    Ive already got a whole VR rig system up that doesnt use the oculus integration, how will i add the keyboard and the raycaster with the XR Interaction plugin?

    • @immersiveinsiders
      @immersiveinsiders  Před 3 měsíci

      With the updated SDK, you can set up the canvas easily in a few clicks. Check out this video:
      czcams.com/video/PLEESpBjVFI/video.htmlsi=Z_cdK_UcrH3vnoWC
      To enable the keyboard, in the OVR Camera Rig there's a component called OVR Manager, in the component look for "Requires System Keyboard" and enable that.
      But remember that this will work only on build.

  • @user-gc1nr8gc4v
    @user-gc1nr8gc4v Před 5 měsíci

    Thank you for your efforts, the ui helpers are no longer availabe in the meta xr all in one, the simple capsule too isn't there, my project didn't work even after following all of the instructions, are any of them related? i created a room and joined a room but i didn't see the other headset, is it a visual issue?

    • @immersiveinsiders
      @immersiveinsiders  Před 5 měsíci +1

      You should be able to find the UI Helpers in this package that has to be installed separately : assetstore.unity.com/packages/tools/integration/meta-xr-interaction-sdk-ovr-samples-268521

    • @user-gc1nr8gc4v
      @user-gc1nr8gc4v Před 5 měsíci

      @@immersiveinsiders I downloaded it and imported all the samples and I think they removed it

    • @immersiveinsiders
      @immersiveinsiders  Před 4 měsíci +1

      You can find it here: drive.google.com/file/d/1vgTGs2nYmoTP-0va_Ap2JwjbRJ6UFfS0/view?usp=sharing

  • @sharadpoudel7116
    @sharadpoudel7116 Před 3 měsíci

    I could not find UIhelpers prefab. Can you please let me know where can I find it ?

    • @immersiveinsiders
      @immersiveinsiders  Před 3 měsíci

      With the latest SDK, you don't need UI helpers, you can set up Ray Canvas in a few clicks. Here's the video: czcams.com/video/PLEESpBjVFI/video.html
      However, if you are using older versions, you can head over to our Discord server, and in the Resources channel you'll find the UI Helper Unity package.

  • @user-ry4bi4hr4q
    @user-ry4bi4hr4q Před 4 měsíci

    I do not have the prefabs you are using, like the room and the RigOVR. Do I have to import thme or are they supposed to come with the Photon package?

    • @immersiveinsiders
      @immersiveinsiders  Před 4 měsíci +1

      You need to import the sample package
      assetstore.unity.com/packages/tools/integration/meta-xr-interaction-sdk-ovr-samples-268521

    • @user-ry4bi4hr4q
      @user-ry4bi4hr4q Před 4 měsíci

      @@immersiveinsiders Hi Sorry, I did import it but am still missing the Assets, how come?

    • @user-ry4bi4hr4q
      @user-ry4bi4hr4q Před 4 měsíci

      Can I do it in another way? Like I dont really need the assets for my multiplayer game becuse I will crate my own enviroment but it would be good with the RigOVR i suspect?

    • @mathiolia5877
      @mathiolia5877 Před 4 měsíci

      same pblm

  • @PravinMane-we8cf
    @PravinMane-we8cf Před 2 měsíci

    @immersiveinsiders , I did exactly followed the each step but still when I created room from one device and goes into mainGame, and join the same room from another device jumped into mainGame scene, Cant see each other and not even own touch control joysticks, any help would be much appreciated.

    • @immersiveinsiders
      @immersiveinsiders  Před 2 měsíci

      You can download the project from here, it's been setup with the latest photon and Meta SDK : github.com/immersive-insiders/Muliplayer_Fusion_VR.git

    • @PravinMane-we8cf
      @PravinMane-we8cf Před 28 dny

      @@immersiveinsiders thanks for quick help much appreciated, Now see in that demo the Players are represented as sphere as head and cubes as hands, Is there chance to replace that whole thing with rig humanoid character to represent the players..., please help me out.

    • @immersiveinsiders
      @immersiveinsiders  Před 28 dny

      ​@@PravinMane-we8cf Yes it's possible, by networking all the bones of the avatar. You'll have to 1st rig the avatar for VR and then just like how the cube is networked, you'll have to network the whole avatar and reach bones.

  • @mathiolia5877
    @mathiolia5877 Před 4 měsíci +1

    I do not have the prefabs you are using, like the room and the RigOVR

  • @rexMetaverse
    @rexMetaverse Před 4 měsíci

    I need to be able to spawn at a specific place when they join or create a room. How do I do that?

    • @immersiveinsiders
      @immersiveinsiders  Před 4 měsíci

      In the PlayerSpawner script, there is a variable called spawn position, you can set that to a specific value.

  • @RMWaqas21
    @RMWaqas21 Před 23 dny

    How to unable controller ray in simulator?

    • @immersiveinsiders
      @immersiveinsiders  Před 22 dny +1

      If you have a ray interactor, it will be enabled automatically

    • @RMWaqas21
      @RMWaqas21 Před 22 dny

      @@immersiveinsiders Thanks

  • @dirtazaVR
    @dirtazaVR Před 2 měsíci

    Hi i followed all your steps to the dot but when i start the app from the pc side, i get the debug.log "runner shutdown".

    • @immersiveinsiders
      @immersiveinsiders  Před 2 měsíci

      That could happen if you have not added the photon app id correctly.

  • @I_riders
    @I_riders Před 4 měsíci +1

    Assets\Photon Scripts\HardwareRig.cs(66,34): error CS0539: 'HardwareRig.OnDisconnectedFromServer(NetworkRunner)' in explicit interface declaration is not found among members of the interface that can be implemented, Assets\Photon Scripts\ConnectionManager.cs(6,14): error CS0101: The namespace '' already contains a definition for 'ConnectionManager' this type i have plz salv

    • @immersiveinsiders
      @immersiveinsiders  Před 4 měsíci

      You can find the updated scripts on our Discord server : discord.gg/bacJfZuY