Skip to content

Common Issues

Chiakoo edited this page Sep 8, 2022 · 8 revisions

When I import SteamVR, the VR controllers are rendered in pink/mangenta

Problem:

When importing the SteamVR Unity package into this repository's Unity project, or into your own Unity project that uses HaRT, it might happen that the VR controllers are rendered in pink/mangenta.

Image of the pink VR controller

Solution:

To fix this issue, simply locate the Model GameObjects of the controllers in the [CameraRig] hierarchy:

The Model GameObject in the hierarchy

Now add the shader Standard (instead of None) as shown below.

Adding the shader to the VR controller model

Save your changes and re-start the scene. The controller should render correctly now.

The correctly displayed VR controller

When cloning the project the HaRT_core/ HaRT_Leap prefab is missing components

Problem:

The HaRT_core prefab cannot find the TargetCollisionManager script which should be attached to each fingertip of the realHand (missing mono script).
Furthermore it cannot find the ResetPosition prefab (missing prefab).

error-message-of-HaRT-prefabs

Solution:

  1. Go to the Player prefab which is in the HaRT_core prefab. Then go to the last child of each realHand fingertip. Then drag the TargetCollisionManager script onto the missing mono script field. (Hint: When pressing STRG you can mark all fingertips at once)
    Player-fingertips
    Player-missing-monoscript

  2. Go to the HaRT_core prefab and delete the missing ResetPosition prefab. Afterwards, drag the new ResetPosition prefab into the prefab again.
    HaRT_core-missing-prefab
    HaRT_core-fixed-prefab

When fixing the HaRT_Leap you can proceed as described in the solution above. (Note: The HaRT_Leap does not have a Player prefab - therefore the fingertip adjustments have to be done inside the HaRT_Leap prefab)

When adding the packages, the VR scenes do not show the real/ virtual view correctly.

Problem:

When adding the packages the layer sortings get lost. Therefore some gameObjects do not have the correct layer anymore.

Solution:

Go into the Physical Cube prefab and select the Physical Object layer.
Go into the Player prefab. Go to the Real Hand / Virtual Hand and select the Physical Hand / Virtual Hand Layer.
Then press yes to apply it to all children.
Go to the Real Camera / Virtual Camera (child of corresponding hand). Open the prefab, check the physical elements and uncheck the virtual & visualization elements / uncheck the physical & visualization elements and check the virtual elements.