with the new Unity 5.6, even with the Steam Vr_Update Poses on Camera (eye), it doesnāt work. Actually on this version, the controllers seems jumping really fast on different positions and the object connected with the fixed joint when grabbed jump merrily everywhere
Wow that definitely shouldnāt happen. Does it do this when you run the final project as well? This sounds like a collider/rigidbody problem, could it be possible the colliders on the controllers arenāt marked as triggers?
Yes I am banging my head on this one. I load the version 5.5 project and the controllers work (I can grab and teleport) but some of my objects lost textures. I upgrade Unity to 5.6 and load my project and the objects have textures but my controllers dont show up anymore. I will try your suggestion and report back.
Hi, Iām really happy to have found this article & tutorial as Iām just beginning my VR development experience. I noticed something odd that others havenāt mentioned and I think Iām doing it correctly. Iām using Unity 5.6.0f3 and Iām getting the following error when entering
void Awake()
{
trackedObj = GetComponent();
}
Assets/Scripts/ViveControllerInputTest.cs(18,22): error CS0305: Using the generic method UnityEngine.Component.GetComponent<T>()' requires 1ā type argument(s)
I placed it just above the Update void:
void Awake()
{
trackedObj = GetComponent();
}
// Update is called once per frame
void Update()
{
You may want to start with the scripting tutorial before diving into VR to avoid mistakes like these.
@skylabs01@stephanfitch
I still have to check what exactly has been broken by 5.6 for this tutorial, it seems it introduced more bugs than I expected. Let me know if you guys find any solutions.
Are we getting any closer to finding out what went loopy with 5.60f3 that caused our controller scripts to take a hiatus from the scene? . I tried adding update poses to camera eye and suddenly I could see their shadows in the scene. I looked up to see them floating above my head. The laser and reticle appear when I trigger, but teleporting isnāt working. Hummm? Any ideas?
Iāll see if I can take a look when I get home. It sounds like their position is being offset or something.
Iām working on the next Vive tutorial at the moment (in 5.6) and everything works once I add the poses script to the camera eye.
This leads me to believe my code for this one might be relying on something that has been broken in the new version. Hopefully itās a quick fix.
@skylabs01@stephanfitch
Iāve found the issue. It seems something about how layers are saved has changed in the newest version of Unity.
Can you guys expand the Level GameObject, select Floor and set its layer to CanTeleport again? I know itās already set to CanTeleport, but for some reason this fixes it.
I also did the following:
Updated SteamVR (delete the SteamVR folder from the Assets folder first!)
Deleted Main Camera (not needed)
Added Steam VR_Update Poses component to [CameraRig] \ Camera (head) \ Camera (eye).
Iāll do a quick update to the tutorial with this fix included. Iām planning on doing a big update to this tutorial soon as well.
Thanks Eric. I will try it. Was there anything specific about the CanTeleport layer? I donāt think your tutorial shared information about this? It was a component of your tutorial without details.
That layer is referenced at the end of the tutorial, itās used by the Teleport Mask to decide what objects you can use the laser/teleport on. Itās just a simple layer used as a flag I added beforehand to keep things simple, I never expected it to have an impact like this after a Unity update.
thank you for the fix. But the problem was with the grabbing object and youāre talking of the can teleport layer. I donāt see what is the link with the shaking controller ^^
Can you grab and play smoothly with your controller and object with your scene in Unity 5.6 ?
Update the controller and HMD firmware using the SteamVR desktop app (SteamVR > Devices > Update Firmware)
Open the final project in Unity, let it upgrade to 5.6
Add the Update_Poses component to Camera (eye)
Update the SteamVR unity plugin to the newest version from the Asset Store
That should make your environment about the same as mine. Let me know if that helps!
Also be sure to try playing a Vive game and see if youāve got the issue there too, if yes, itās almost definitely a firmware issue.
I am also experiencing the same grabbing issue as @skylabs01; I cannot pick up objects. I have an executable of my project made in 5.5, and the grabbing works fine within that game. I have done everything youāve listed. Teleportation works for me.
Do you have any other suggestions? I really appreciate your help!
Thanks!
Edit: Heh. Fixed. I forgot to add the Rigidbody and box collider to the controller; everything is fine!
Dears, my problem is that I cannot see trackers in the headset (or play view), only in the scene view ;/ When I press the āoptionā button, the trackers reapear in the headset with menu showing, but disapear once I hide the menu. Any help is greatly appreciated.
PS: The tracking in the scene view is also a bit weird, since controllers seems to be parented to camera so they move with camera.
@tomitrescak
Could you try adding a Steam Vr_Update Poses component to [CameraRig] \ Camera (head) \ Camera (eye) and see if that helps? Some weird bugs were introduced since Unity 5.6.
WOW very nicely done tutorial, I too had to make some changes to make the controllers show up, and they are just white ghost shapes at the moment but its all good and all a learning experience!!!..
OK Now for the minor criticism, The one thing I have always disliked about this type of tutorial is that there is A LOT of prework that you put into getting this ready for us to download and start.
Do you have another tutorial that shows how you did that? I would really like to see a here is what I did to begin with a brand new install of Unity.
Now when I start fresh I might have some clue how to go from point A to B, also what would be helpful is how to go from C to D, as in I have a completed "game or project now howdo I export everything needed to send to Steam or a friend to āplayā it???
BUT again this is great and my first time I got to do a AHA! moment with programming for this.
I have downloaded and installed blender and Google sketch up as I am fairly sure they will be great tools for making the 3D objects for use in VR Games / projects, anyone have any other must have programs I need to check out.