quintesse / playovr Goto Github PK
View Code? Open in Web Editor NEWA Unity demo project using VRTK, PhotonNetwork and PUNVoice
License: MIT License
A Unity demo project using VRTK, PhotonNetwork and PUNVoice
License: MIT License
Or at least the reparented ones I guess. I didn't test with all grab types.
using code runtime Allocate phton ViewID (temp dynamic load from ab):
if (PhotonNetwork.isMasterClient)
{
int idx = PhotonNetwork.AllocateViewID();
temp.GetComponent().viewID = idx;
view.RPC("SetDynamicID", PhotonTargets.OthersBuffered, temp.name, idx);
}
when client joinded master room and player using controller pick up object are broken and show info.
need your help,thanks!
Info:
NullReferenceException: Object reference not set to an instance of an object
NetBase.NetworkBehaviour+PropertyEventHandler.OnPhotonCustomRoomPropertiesChanged (ExitGames.Client.Photon.Hashtable props) (at Assets/_Script/NetBase/NetworkBehaviour.cs:53)
UnityEngine.GameObject:SendMessage(String, Object, SendMessageOptions)
NetworkingPeer:SendMonoMessage(PhotonNetworkingMessage, Object[]) (at Assets/Photon Unity Networking/Plugins/PhotonNetwork/NetworkingPeer.cs:2816)
Room:SetCustomProperties(Hashtable, Hashtable, Boolean) (at Assets/Photon Unity Networking/Plugins/PhotonNetwork/Room.cs:320)
NetBase.NetworkBehaviour:SetProperties(Hashtable) (at Assets/_Script/NetBase/NetworkBehaviour.cs:70)
NetVRTK.NetworkGrabManager:SendState() (at Assets/_Script/NetVRTK/NetworkGrabManager.cs:83)
I update the unity version from 2018.2.2 to 2018.2.8 and i got this error. i have the same problem when i update to 2019.1.9
C:/Users/Marios/Desktop/PlayoVR-master/Library/PackageCache/[email protected]/Scripts/Runtime/TMP_Text.cs(2252,75): error CS1644: Feature `out variable declaration' cannot be used because it is not part of the C# 4.0 language specification
Any idea please?
Appreciate it :)
VRTK v4.0.0 seems to be really far a long. It may be worth looking into upgrading: https://github.com/thestonefox/VRTK/tree/release/v4.0.0
Does the current version of PlayoVR work with VRTK 3.3.0? I'm getting some strange errors from VRTK Artificial Slider when I add Network Object and Photon Viewer to a slider control gameobject. It seems to cause a call to an artificial slider method that hasn't been initialized right, so missing object reference error:
NullReferenceException: Object reference not set to an instance of an object
VRTK.Controllables.ArtificialBased.VRTK_ArtificialSlider.SetPositionWithNormalizedValue (Single givenTargetPosition, Single speed) (at Assets/Libraries/VRTK/Source/Scripts/Interactions/Interactables/Controllables/Artificial/VRTK_ArtificialSlider.cs:351)
VRTK.Controllables.ArtificialBased.VRTK_ArtificialSlider.SetPositionTarget (Single newPositionTarget, Single speed) (at Assets/Libraries/VRTK/Source/Scripts/Interactions/Interactables/Controllables/Artificial/VRTK_ArtificialSlider.cs:129)
VRTK.Controllables.ArtificialBased.VRTK_ArtificialSlider+c__Iterator0.MoveNext () (at Assets/Libraries/VRTK/Source/Scripts/Interactions/Interactables/Controllables/Artificial/VRTK_ArtificialSlider.cs:277)
UnityEngine.SetupCoroutine.InvokeMoveNext (IEnumerator enumerator, IntPtr returnValueAddress) (at C:/buildslave/unity/build/Runtime/Export/Scripting/Coroutines.cs:17)
i have followed the setup instructions, press run, and it plays within the unity editor... i move my oculus headset around, and it moves on the screen as expected... however, putting the oculus on my head, i can see the Oculus Home thing... the game isnt running in my headset?
I see in update: 2017-07-18 you "Removed Oculus Ultilities and Avatar"... does this mean this PlayoVR no longer supports Oculus? or do i need to import this myself still (which causes errors), or is there a setting needed... or is this a bug?
The NetworkSnapManager script doesnt actually do anything because the SendState() method is never called
I'm stuck with this.Please help me!
Amazing work, really happy to have a networked project up and running! I noticed that networked objects appear to move at a lower framerate. I see the objects have their transforms set to lerp but it isn't smoothing out the movement. Since you mention that your scripts for this aren't actually necessary, I tried the default Photon scripts instead which work great, so I will just use them moving forward. Still, I am curious about why your script isn't working, and the potential benefits if I can get it working.
I'm noticing and issue with VRTK_Door when the game is networked with two people.
The Master client can open and close the door fine, but the client can't grab the door at all. I think this may be a ownership issue ( the same as the VRTK_InteractableObject.
I was using PlayoVR for a number of years - many thanks to the creator!!! You have no idea how useful this was for an educator with limited coding experience. Unfortunately something has broken in all of my Unity projects that were using PlayoVR. I suspect it is something to do with PUN/Photon - all of the scripts in Unity now say they are missing.
I've tried a few times (including a complete re-install of my Unity editor) to fix this, to no avail.
Hello great work. Did you plan to make an update with latest version of unity? I'm trying to make a multiplayer VR game and i need something that working on Unity 2019.3 or later and with the latest SteamVR. with VRTK you cant use latest version of SteamVR. So I have lot of errors. Can you help with that pls?
This is some really great stuff. Would be helpful to know what license you're providing for the repo.
Hi,
I tested out last night and worked great... my friend had an issue where his grip didnt work for his right controller (but that may be a separate issue anyway, or may be a fault with his controller), also, the door is locked closed (but i guess that is a puzzle thing maybe)?
Only issue i noticed, was when my friend picked up the gun... i was suddenly holding a gun also... same for a green cube (and probably other objects)
I havent had a chance to look into the reason yet, but let me know if you have any ideas
As I followed the directions "To test locally without another computer you can create a standalone Non-VR build:",
adding -novr
option for shortcut-properties-target did not work
The executable just started with vr mode-(with my case, steam vr has lauched) and interrupted the unity editor play mode.
However the directions in "Command line arguments" did work, so instead of adding -novr
, adding -vrmode none
worked for me.
Perhaps the instructions for "Testing locally" in the readme file are not updated properly..?
p.s. This is a really good project for unity-VR-multiplay newbies and thank you for makin this public!
VRTK v4.0.0 is now in BETA.
Can you update this great example?
Thank you very much.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.