Let me start with something positive: I am able to connect the Focus 3 with the direct preview server.
The problem is that it stays at "Connecting...".
I keep getting an error in the direct preview log on the focus 3: ERROR streaming] [rrClient]OnVideoData() packet NULL pooIdx:-1
I am using the newest wave plugin version but I've also tried it with 4.3
I am using Unity 2019.4.12f1
I have an Nvidia Geforce 1080 & 2 screens
My coworker used the same steps and gets exactly the same result.
I've documented every step I took:
install visual studio code
install the adb file manager plugin and follow the tutorial to setup the plugin
on your physical focus 3 device: stick something to the sensor right in the upper middle of the glasses so it won’t turn off while being connected to the computer or executing adb commands
turn the Focus3 on
connect the device to your computer
make sure you’ve set up the environmental variable for adb
open the command line
type “adb tcpip 5555” (without “”) to start adb in network mode
type “adb shell ip addr show wlan0”
copy the ip displayed there. This is your focus 3 device ip which we will connect to
type “adb connect INSERT-COPIED-IP” where INSERT_COPIED_IP = your copied ip
unplug the USB cable from the focus 3
open your unity project
open the direct preview window through Wave -> DirectPreview
set the connection type to Wi-Fi. USB does not work (some people say it only works through normal USB but I am using USB-C which did not work)
in Device Wi-Fi IP type in the ip address that you copied before
set the render target device to FOCUS+
the default port that is being listened to is 6555. So open your router settings. If you’re using a fritz, the website is fritz.box
go to your port forwarding settings and open the port 6555 for TCP & UDP
open your advanced firewall settings
add an inbound rule for the port 6555 as TCP and another one for UDP. You can call them as you like
open visual studio code
if you’ve set up the adb file manager plugin correctly you should see Android Device Files under the explorer tab. Go to the DirectPreview folder and open config.json
Inside IP remove the IP address. This will by default be set to your local IP address but it is not possible to connect to local IP addresses through the direct preview
go to the website https://www.whatismyip.com/de/
copy the IP address that is shown there for you computer
back in visual studio: paste the IP address that you just copied into the IP property. Do not forget to keep the “”
save the file
go back to the unity direct preview window and click on Start streaming server
click on install device APK and wait until it was installed (several windows open and close)
make sure your focus 3 is on and click on Start Device APK
your focus 3 will now connect to your server. You can check if it worked by looking at the terminal that was opened. If it’s printing new messages then the focus 3 is connected
to further check if there are any errors inside the focus 3: go to visual studio code and open the DirectPreview log
hit play in the unity editor
Problems:
ERROR streaming] [rrClient]OnVideoData() packet NULL pooIdx:-1
On my end it seems like the focus3 is not able to connect to my GPU.