Unity and VRPN integration ?

1,734 views
Skip to first unread message

Totti Anh Nguyen

unread,
Jun 18, 2013, 2:20:56 AM6/18/13
to vr-g...@googlegroups.com
Hello VR Geeks,

Has anyone implemented the integration between Unity 3D and VRPN ?
Unity is now a popular game engine, but unfortunately, its support for optical tracking (like OptiTrack) or other VR devices like gloves.. is not seamless at the moment.
Not sure if anyone has experienced with such an integration.

Your sharing would be very much appreciated !

Thanks

Marwan Badawi

unread,
Jun 18, 2013, 5:07:38 AM6/18/13
to VR-Geeks
It works well for our needs. Hope it suits yours.

Good luck!

Marwan


--
You received this message because you are subscribed to the Google Groups "VR Geeks" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vr-geeks+u...@googlegroups.com.
Visit this group at http://groups.google.com/group/vr-geeks.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Totti Anh Nguyen

unread,
Jun 19, 2013, 2:44:17 AM6/19/13
to vr-g...@googlegroups.com
Thank you for your sharing Marwan. I appreciate it. :)

Mohamed-Amine ABIDI

unread,
Jun 23, 2013, 6:14:50 AM6/23/13
to vr-g...@googlegroups.com
Hi Marwan,

I have a question please.
I Build the project and i have many error (Library do not exist: smft31.lib, smftcpp.lib, pthreadVC2.lib, SharedMem.lib).

Did i miss anything please?
Thank's.

Marwan Badawi

unread,
Jun 23, 2013, 12:57:34 PM6/23/13
to vr-g...@googlegroups.com
Weird, never had this error. Are you building with Unity Pro?
--
Sent from my bidule.
Message has been deleted

Mohamed-Amine ABIDI

unread,
Jun 23, 2013, 3:49:45 PM6/23/13
to vr-g...@googlegroups.com
Yes, i use a Unity Pro.
Out put :
DllNotFoundException: C:/......../uart-code-51-trunk/uart-code-51-trunk/Projects/VRPNWrapper/Assets/Plugins/VRPNWrapper/VRPNWrapper.dll
VRPNManager.Start () (at Assets/Plugins/VRPNWrapper/VRPNManager.cs:145)

Ben Chang

unread,
Jun 24, 2013, 4:53:25 PM6/24/13
to vr-g...@googlegroups.com
We also got a DllNotFoundException.  Until we get it figured out, we're doing it in a slightly roundabout way.  We had some code in Panda3D already set up to use VRPN with Vicon Tracker, so we just took that and forwarded the data on to Unity using OSC.

Marwan Badawi

unread,
Jun 25, 2013, 3:50:40 AM6/25/13
to VR-Geeks
Sorry it took so long to reply, I've been away for a while.

It's been a long time since we nitegrated this and I don't recall any problems. Looking at our project's directory structure, I notice that we don't have a VRPNWrapper subfolder in our Plugins folder. The VRPNWrapper.dll and all the .cs files are directly stored in the Assets/Plugins folder. Maybe it will help if you do this?

Don't forget to change the DllImport directives from [DllImport ("VRPNWrapper/VRPNWrapper")] to [DllImport ("VRPNWrapper")].

Hope it helps,

Marwan

Mohamed Amine Abidi

unread,
Jun 25, 2013, 3:55:13 AM6/25/13
to vr-g...@googlegroups.com
Thank you very match Marwan, I'll test it :)
thx

Sincerely,
Mohamed-Amine ABIDI.
-----------------------------------------------------
Ph.D student in virtual reality in Ecole Nationale d'Ingénieur de Saint-Etienne.
Computer Engineer specializing in Digital Imaging & Virtual Reality.
-----
Laboratoire de Tribologie et Dynamique des Systèmes.
74, rue des acièries 42000 Saint-Etienne.
Mobile : +33 (0)6 68 67 04 57.

E-mail : abidi.m...@gmail.com.
----------------------------------------------------
-----------------------------------------


2013/6/25 Marwan Badawi <marwan...@gmail.com>
You received this message because you are subscribed to a topic in the Google Groups "VR Geeks" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vr-geeks/N6nCoDpj5eQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to vr-geeks+u...@googlegroups.com.

Ben Chang

unread,
Jun 26, 2013, 8:57:47 PM6/26/13
to vr-g...@googlegroups.com
Hi,

I tried moving VRPNWrapper.dll and the .cs files into Assets/Plugins and updating the DLLImport directive, but I still get the "DLL not found" error. 
What's odd is that the error says "DLL not found" and gives the exact correct path of the DLL.  I'm wondering if the problem is a secondary dependency?  Maybe VRPNWrapper.dll is trying to link to something else which is not being found, and that's what throws the error.  I tried looking at it with a DLL dependency walker tool but don't understand Windows linking well enough to know what to do with its output.

Marwan Badawi

unread,
Jun 27, 2013, 2:15:34 AM6/27/13
to vr-g...@googlegroups.com
Maybe try to build the dll yourself then? The link to the source SVN are on the VRPNWrapper website.

Good luck and sorry I can't help more than that.

%M

Mohamed Amine Abidi

unread,
Jun 27, 2013, 3:29:11 AM6/27/13
to vr-g...@googlegroups.com
Hi,

yes me too, I did the same operation you.
and now I'm trying to compile the project to generate VRPNPlugin nouvreau the DLL.
I install the Pthread lib and Boost ...... / and I try again, if I can sth I made you sign.
@+

Sincerely,
Mohamed-Amine ABIDI.
-----------------------------------------------------
Ph.D student in virtual reality in Ecole Nationale d'Ingénieur de Saint-Etienne.
Computer Engineer specializing in Digital Imaging & Virtual Reality.
-----
Laboratoire de Tribologie et Dynamique des Systèmes.
74, rue des acièries 42000 Saint-Etienne.
Mobile : +33 (0)6 68 67 04 57.

E-mail : abidi.m...@gmail.com.
----------------------------------------------------
-----------------------------------------


2013/6/27 Ben Chang <bench...@gmail.com>

Koorosh Vaziri

unread,
Aug 5, 2013, 10:42:54 AM8/5/13
to vr-g...@googlegroups.com
Hello,
 
I had several problems in compiling vrpnwrapper.dll from vrpnplugin project, and in case anyone is interested, I've posted a detailed how to in their support forum: https://sourceforge.net/p/vrpnwrapper/discussion/1087054/thread/020a5275/ 
 
Regards,
 
Koorosh

Mohamed Amine Abidi

unread,
Aug 7, 2013, 7:58:36 AM8/7/13
to vr-g...@googlegroups.com
Thank you Koorosh, 

Koorosh thank you, I'll test it, and if it does not work I return to you, thank you very much.

Sincerely,
Mohamed-Amine ABIDI.
-----------------------------------------------------


2013/8/5 Koorosh Vaziri <koor...@gmail.com>

asema....@gmail.com

unread,
Oct 29, 2015, 6:32:55 AM10/29/15
to VR Geeks
Hi, I am sorry for asking here too late. As its an old post. But I am trying to Integrate Vicon Tracker 2.0 with Unity3D. And I found this thread. So, can you please tell me if there  is any documentation for your VPRNWrapper available and is it possible to get data of Vicon Tracker through this wrapper? 

asema....@gmail.com

unread,
Oct 29, 2015, 6:35:33 AM10/29/15
to VR Geeks
Hi Koorosh,

I have checked out your post this:  https://sourceforge.net/p/vrpnwrapper/discussion/1087054/thread/020a5275/  how to configure VPRN wrapper with Windows. Do you have any idea about how to do that in MAC OSX as well? As I have having the same issue vprnwrapper.dll not found.

Jan Ciger

unread,
Oct 29, 2015, 6:44:39 AM10/29/15
to vr-g...@googlegroups.com
Hello,

On Thu, Oct 29, 2015 at 11:32 AM, <asema....@gmail.com> wrote:
> Hi, I am sorry for asking here too late. As its an old post. But I am trying
> to Integrate Vicon Tracker 2.0 with Unity3D. And I found this thread. So,
> can you please tell me if there is any documentation for your VPRNWrapper
> available and is it possible to get data of Vicon Tracker through this
> wrapper?
>

You realize you are replying to a 2 years old post, right? It is
probably better to start a new topic in such case.

Re VRPN and Unity - calling VRPN libraries from C# is not that
difficult, but today I would rather recommend you to use the
maintained OSVR bindings for Unity. OSVR can act as a bridge for an
external VRPN server (e.g. your Vicon).

Regards,

Jan

George Stavrou

unread,
Jul 25, 2016, 5:23:37 PM7/25/16
to VR Geeks
Hi my thesis is in a VR project with VRPN Server and VRPNWrapper as well. Everything works fine in Unity5.3 64bit and Unity 4.6 32bit, if you are still interesting in this send me a message.
Reply all
Reply to author
Forward
0 new messages