How To Make a Multiplayer Game in VR? - Photon
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
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.
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.
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
U jus uploaded this in right time
Very nice video. Prefab workflow explained very well!
amazing tutorial, thank you!
Good content, thank you so much.
Thanks for this amazing video. You mentioned voice chat and other topics. Would you please make videos on those topics?
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? 🤗
Thanks a lot :D
Yes, we have some plans to add interaction and voice chat as well in the future :)
Excellent looking forward ! @@immersiveinsiders
Nice Video. Please post related videos I'm really waiting for your upcoming videos related to hand tracking and interaction , animation and more
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.
Do you think pvp free roam fps has future ? Which company has the best PvP for free roam currently?
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?
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
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
hey Can you add meta avatar in this multiplayer in next part ?
I just need help for my users being able to leave the room and enter the session again from the main menu
I need help leaving the room back to the main menu. Can you help with that or someone can please?
Thank you It was so uesfull. If possible can you make it using the Netcode
Yes, we have that already over here: czcams.com/video/sPKS3vjwvpU/video.htmlsi=mObwJ1DLuXXM1Yhz
if im gonna grab object do he gonna see it?
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!
I am not really sure what the problem could be. It worked perfectly fine for me. What we did was android builds as well.
I would like to ask in advance for this tutorial using what architecture from fuison? Is it server, host or shared?
Shared!
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?
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.
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?
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
@@immersiveinsiders I downloaded it and imported all the samples and I think they removed it
You can find it here: drive.google.com/file/d/1vgTGs2nYmoTP-0va_Ap2JwjbRJ6UFfS0/view?usp=sharing
I could not find UIhelpers prefab. Can you please let me know where can I find it ?
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.
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?
You need to import the sample package
assetstore.unity.com/packages/tools/integration/meta-xr-interaction-sdk-ovr-samples-268521
@@immersiveinsiders Hi Sorry, I did import it but am still missing the Assets, how come?
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?
same pblm
@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.
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
@@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.
@@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.
I do not have the prefabs you are using, like the room and the RigOVR
Have you selected the search to "All"?
@@immersiveinsiders yes
I need to be able to spawn at a specific place when they join or create a room. How do I do that?
In the PlayerSpawner script, there is a variable called spawn position, you can set that to a specific value.
How to unable controller ray in simulator?
If you have a ray interactor, it will be enabled automatically
@@immersiveinsiders Thanks
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".
That could happen if you have not added the photon app id correctly.
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
You can find the updated scripts on our Discord server : discord.gg/bacJfZuY