Hello, I made a VR game in Unity that works flawlessly between Unity and Openvibe; I use TCP/IP for communication; (I cannot use LSL as that's already occupied). The issue is with the Unity game when I press play and I see events/triggers being sent from OpenVibe; but as soon as I Build and run it in Oculus Quest 2; it has issues; there are no events/triggers/output classifier seen as TCP/IP communication; I assume the connection is not build or either I am forgetting something. I was wondering if anyone has knowledge about this and can help?
Regards!
Unity-Oculus-OpenVibe
-
- Posts: 18
- Joined: Tue Apr 04, 2023 9:14 am
Re: Unity-Oculus-OpenVibe
Hello.
Let me clarify your issue.
Does it mean you built your Unity project through your quest, which is an Android application, not a Windows one?
If so, it can happen depending on your TCP/IP setup.
If you haven't specified your IP, the default is the localhost (127.0.0.1). In the Unity editor, your Unity project tries connecting to OpenViBE through localhost and a specific port number. However, when you build your project to Meta Quest, you should specify the IP address of your PC running OpenViBE, as it is no longer the localhost. Also, you need to make sure your Quest and PC are connected to the same router, or you need to setup port forwarding.
A simple test would be building your project as a Windows application, and you can run it through the Meta Quest link (or Air link if a wireless connection is mandatory).
Best regards,
Let me clarify your issue.
Does it mean you built your Unity project through your quest, which is an Android application, not a Windows one?
If so, it can happen depending on your TCP/IP setup.
If you haven't specified your IP, the default is the localhost (127.0.0.1). In the Unity editor, your Unity project tries connecting to OpenViBE through localhost and a specific port number. However, when you build your project to Meta Quest, you should specify the IP address of your PC running OpenViBE, as it is no longer the localhost. Also, you need to make sure your Quest and PC are connected to the same router, or you need to setup port forwarding.
A simple test would be building your project as a Windows application, and you can run it through the Meta Quest link (or Air link if a wireless connection is mandatory).
Best regards,