Jump to content
 
h-shirakami

Vive Focus Teleport using VIU

Recommended Posts

I use VIU to create Vive Focus Plus content.

The VIU teleport moves to a position slightly higher than the cursor position.

How can I teleport to the height of the cursor position?

The attached image has the Vive Focus Plus controller on the floor.
It is in a state of floating about 10cm.

Is this a problem with Vive Focus Plus?
Or is it a VIU problem?

Screenshot_20191108_145113.png

 

 

@chengnay

Share this post


Link to post
Share on other sites

@h-shirakami If your controller lies on the floor, but in your scene, your controller seems to float in the air, it is because the height is not adjusted correctly.

Previously, in this post, I did mention about how is the height setup in Vive Focus Plus,

On 6/13/2019 at 11:04 AM, chengnay said:

I got feedback from Wave SDK team,

They said correct way of using VIVE Focus/Focus Plus will be as follows,

1. Device in suspend mode

2. Put your HMD on while standing

3. Launch app while standing

 

This way, the height(default value is 175cm, cannot calibrate) in VR world will be correct.

 

Since the default value of Vive Focus Plus is 175cm, it might depends on how you put on the HMD.

If you are putting on while standing up, and the floor is still not the right height, you simply can adjust by using the Assets\HTC.UnityPlugin\ViveInputUtility\Examples\Shared\Scripts\CustomDeviceHeight.cs from VIU.

You can refer to VIU's example scene, Teleport scene,

VROrigin>DeviceHeight, here is the script that you can adjust the height.

 

NOTE: Remember to add below code

On 6/14/2019 at 1:52 PM, chengnay said:

In Assets\HTC.UnityPlugin\ViveInputUtility\Examples\Shared\Scripts\CustomDeviceHeight.cs,

public void UpdateHeight()
{
    var pos = transform.localPosition;

    switch (VRModule.activeModule)
    {

        ...
        case VRModuleActiveEnum.WaveVR:
            transform.localPosition = new Vector3(pos.x, m_height, pos.y);
            break;
    }
}

 

EDIT: @h-shirakami To double confirm I understood your question,

You mean after you teleport, then your position seems to move higher than original position?

Before you teleport, does your controller floating in the air or lie on the ground?

Share this post


Link to post
Share on other sites

Please sign in to comment

You need to be a member in order to leave a comment

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...