Group Group Group Group Group Group Group Group Group

HTC Vive Tutorial for Unity | raywenderlich.com


#4

Thanks for the response! I’m using Unity version 5.6.3. Reimporting those models doesn’t solve the problem for me, I’m afraid.


#5

Upgraded to 2018.3 and the assets some through fine. Thanks for the assistance!


#6

Hi there, Thanks a lot for the tutorial!!!

I have only one question about the last part. For the laser pointer ‘Teleport Mask’ I cannot see the option for ‘CanTeleport’. Did I miss a configuration?


#7

@blackdragonbe Can you please help with this when you get a chance? Thank you - much appreciated! :]


#8

This needs to be added to the tutorial for 2018.3

Open the Package Manager (Window->Package Manager), select “OpenVR” in the package list and click install. Restart Unity


#9

Also the STEAMVR for unity 2018.3 can be found here:


#10

Hey, thanks for the help mate.

I’ve reinstalled the package and plugin, restarted the system but the ‘CanTeleport’ option still not available.

Once I try teleporting in game, it is very weird. I will keep trying to fix it, I might have missed something simple.


#11

Hi!

CanTeleport is a layer that I included with the project. I know Unity likes to remove those after some version upgrades.
Can you check if the CanTeleport layer exists in the Edit > Project Settings > Tags and Layers menu? It should be assigned to “User Layer 8”. If it’s not there, fill in the text field next to User Layer 8 with CanTeleport.

The OpenVR package isn’t necessary to follow along with this tutorial, all you need is the most recent version of SteamVR from Github or the Asset Store.

Let me know if you have any questions or issues.

Cheers!
Eric


#12

HI @blackdragonbe

Thanks for the update I’m running through the tutorial now but I have hit a snag. The ActionTest scrip is running correctly but my controllers which having functioning Rigid Bodies are not grabbing the objects. I loaded up the completed version of the tutorial to check for errors but when playing this i see a different issue the controllers vanish as soon as the game starts. I copied your completed script (.cs and .cs.meta) into my project using windows explorer and remove ControllerGrabObject I had made, assuming I misplaced a line of code. the result is the same, the controllers can push objects but can grab them. Just run through the SteamVR and binding inputs steps again with no change. any suggestions of what the issue could be?


#13

Hi Ben,

If the controllers can push the objects, it sounds like the colliders on them aren’t marked as triggers. Can you tick the Is Trigger checkboxes of the Box Collider components on both controllers and try again?
I haven’t heard of the vanishing controller bug before that you encountered in the final project, I’ll check out what might be the problem.

Cheers,
Eric

EDIT: Ben contacted me by PM, the problem was solved by checking the Is Trigger checkboxes. :smile:


#14

Hi @blackdragonbe

All complete. I noticed two minor things that were not clear or not mentioned and I though I’d let you know. The CanTeleport layer needed to be created (as you mention) but it also needs to be applied to the floor and table without this not only could i not teleport but i could not create/ see my lasers (any everyone loves lasers!). Next you save a little time by applying the same inputs to the Right and Left controllers and then change the hand type of one of the controllers, you also need to change the controller pose which for me applied the same hand to both controller with interesting results (I could control the action and direction of the laser with the opposing hand.
All the best I’m off to build myself some virtual furniture. Thanks for creating this tutorial!


#15

Thank you for updating this tutorial for SteamVR 2.0! I really appreciate it :slight_smile:


#16

@blackdragonbe Do you have any feedback about this? Thank you - much appreciated! :]


#17

Thanks for pointing that out Ben!
I’ll take another look at the tutorial to see if I can fix those issues.

Cheers!
Eric


#18

Hello,
Great tutorial! I have a question though. When I try to bind the controlls the localhost page won’t load. Keeps saying that localhost cannot be reached. Any ideas on how to fix this issue?

Thanks!


#19

@blackdragonbe Can you please help with this when you get a chance? Thank you - much appreciated! :]


#20

i’m at Binding Action and i have this issue, i must have missed something, or maybe an update broke the tutorial flow…

Edit: it might be because of a missing Actions.json, ill update my message if adding it manually fixes the issue (once i find where it needs to go)

Edit 2: nvm the json files are at the right place with the right action in them…

Edit 3: i had to change the skeleton from skeleton to pose for it to work, is it normal or it will break something on the long run?


#21

Hi!

Is the newest version of SteamVR running in the background while you’re trying to load the localhost page?

Cheers!


#22

Using Pose should be fine, it tracks a position and rotation in 3D so that’s exactly what you need. I’ll check my instructions to see if I missed anything.

Cheers!


#23

Updated steamvr is running in the background, everything says they are connected.