How do I use the WaveVR simulator?

appnori
Settler

How do I use the WaveVR simulator?

How do I use the WaveVR simulator?

 

- After a yellow screen with "Simulator server is running.", It will not proceed anymore.

_images/image5.png
- We are testing using Unity (2018.1.2 / 2017.4.2 / 5.6.3).
- The usual Android build on Unity is OK.
- https://hub.vive.com/en-US/profile/documents <- I could not find information about the Simulator except here.
- What is the function of "Simulator"?

Vive Staff

Re: How do I use the WaveVR simulator?

Hi,

 

What kind of error code you have from WVR_Init_S?

Normally it should be SIM_InitError_None.

Simulator_error.png

appnori
Settler

Re: How do I use the WaveVR simulator?

debug.png

It floats like the above.

Vive Staff

Re: How do I use the WaveVR simulator?

From your screenshot, it seems there is no connection between Unity and HMD.

 

Please make sure following things:

 

  1. USB line is plugin between HMD and PC.
  2. adb devices is workable.
  3. Simulator server is started. (yellow page should be shown on the HMD, and don’t go to suspend/pause) <- very important

 

After all above things are ready, please try again.

Thanks.

appnori
Settler

Re: How do I use the WaveVR simulator?

1.USB line is plugin between HMD and PC.
- I changed the line.
- I changed the USB port.
- I changed the PC.

appnori
Settler

Re: How do I use the WaveVR simulator?

2. adb devices is workable.

numnumnum.png

appnori
Settler

Re: How do I use the WaveVR simulator?

3. Simulator server is started. (yellow page should be shown on the HMD, and don’t go to suspend/pause) <- very important

- The yellow page will pop up, but no further progress is possible here.

screen.png

Vive Staff

Re: How do I use the WaveVR simulator?

In order for security protection, we don't provide option to enable/disable P sensor for external developer and customers.

That's why your HMD goes into suspend very soon so the connection is broken.

Please use a sticker to block P sensor to disable auto-detect suspend/resume, so the HMD will always be ON then you can enjoy simulator function.

Let me know if it works for you or not.

Thanks.

 

appnori
Settler

Re: How do I use the WaveVR simulator?

vivevive.png

Does "P sensor" in the picture above mean this?

It did, but it did not work.

 

 

debug12121212.png

And if the simulator is successful, what happens to the HMD screen and Unity's edit screen?
What can developers get from the simulator?
What does the simulator do?

 

 

 

Vive Staff

Re: How do I use the WaveVR simulator?

Simulator is the function to provide you to see the result (simulate) without building apk under Unity Editor if you just change some setting, parameters etc.

This means when you change something from Editor, you could see the change result on HMD.

 

appnori
Settler

Re: How do I use the WaveVR simulator?

Oh, thank you for your answer.
Help us use that cool feature.

appnori
Settler

Re: How do I use the WaveVR simulator?

By any chance, can't I get any more answers?

frgaj1
Contributor

Re: How do I use the WaveVR simulator?

Does this require the computer and HMD to be on the same wifi network?

string ipaddr = "";
//WaveVR_Utils.SIM_ConnectType type = WaveVR_Utils.SIM_ConnectType.SIM_ConnectType_USB; System.IntPtr ptrIPaddr = Marshal.StringToHGlobalAnsi(ipaddr);

Is the USB line commented out because it's always USB or because it's always Wifi?

 

 

I'm getting a SIM_InitError_Device_Not_Found error with my HMD plugged in, showing in ADB and ADM.

 

Vive Staff

Re: How do I use the WaveVR simulator?

Hi @frgaj1,

 

Currently we don't enable connection from wifi since the performance isn't good for feature support.

Please make sure your USB connection is established successfully first so you can use adb to connect.

Thanks.

Shang
Settler

Re: How do I use the WaveVR simulator?

 


@Tony PH Lin wrote:

Hi,

 

What kind of error code you have from WVR_Init_S?

Normally it should be SIM_InitError_None.

Simulator_error.png


Hi Tony,

I'm keep get the error as below, what's wrong with my SDK settings?

WVR_Init_S failed System.DllNotFoundException: WaveVR_Simulator
  at (wrapper managed-to-native) WaveVR_Utils:WVR_SetPrintCallback_S (WaveVR_Utils/debugcallback)
  at WaveVR..ctor () [0x000ae] in /Users/shanghuang/Workspace/WVR_05/Assets/WaveVR/Scripts/WaveVR.cs:134 
UnityEngine.Debug:Log(Object)
WaveVR:.ctor() (at Assets/WaveVR/Scripts/WaveVR.cs:149)
WaveVR:get_Instance() (at Assets/WaveVR/Scripts/WaveVR.cs:33)
WaveVR_Render:Awake() (at Assets/WaveVR/Scripts/WaveVR_Render.cs:410)